Skip to content

Commit

Permalink
prepare repo for course
Browse files Browse the repository at this point in the history
* upgrades dependencies
removes serverless
* implementation since it is expected to be done in following tasks
* adds hydration for initial queries until to work in static builds
  • Loading branch information
Guria committed Sep 29, 2022
1 parent f17de8e commit 1dbe390
Show file tree
Hide file tree
Showing 11 changed files with 9,572 additions and 4,528 deletions.
2 changes: 1 addition & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
node_modules
public
vite.config.ts
serverless.yml
dist
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ pnpm-debug.log*
lerna-debug.log*

node_modules
.serverless
coverage
dist
dist-ssr
Expand Down
145 changes: 0 additions & 145 deletions .serverless_plugins/serverless-single-page-app-plugin.js

This file was deleted.

41 changes: 8 additions & 33 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,20 @@ This is frontend starter project for nodejs-aws mentoring program. It uses the f
- [React-query](https://react-query-v3.tanstack.com/) as a data fetching library
- [Formik](https://formik.org/) as a form library
- [Yup](https://github.com/jquense/yup) as a validation schema
- [Serverless](https://serverless.com/) as a serverless framework
- [Vitest](https://vitest.dev/) as a test runner
- [MSW](https://mswjs.io/) as an API mocking library
- [Eslint](https://eslint.org/) as a code linting tool
- [Prettier](https://prettier.io/) as a code formatting tool
- [TypeScript](https://www.typescriptlang.org/) as a type checking tool

## Installation

To install dependencies with npm v8 need to run following command

```sh
npm i --legacy-peer-deps
```

## Available Scripts

### `start`
Expand All @@ -37,35 +44,3 @@ Runs tests in console, in browser or with coverage.
### `lint`, `prettier`

Runs linting and formatting for all files in `src` folder.

### `client:deploy`, `client:deploy:nc`

Deploy the project build from `dist` folder to configured in `serverless.yml` AWS S3 bucket with or without confirmation.

### `client:build:deploy`, `client:build:deploy:nc`

Combination of `build` and `client:deploy` commands with or without confirmation.

### `cloudfront:setup`

Deploy configured in `serverless.yml` stack via CloudFormation.

### `cloudfront:domainInfo`

Display cloudfront domain information in console.

### `cloudfront:invalidateCache`

Invalidate cloudfront cache.

### `cloudfront:build:deploy`, `cloudfront:build:deploy:nc`

Combination of `client:build:deploy` and `cloudfront:invalidateCache` commands with or without confirmation.

### `cloudfront:update:build:deploy`, `cloudfront:update:build:deploy:nc`

Combination of `cloudfront:setup` and `cloudfront:build:deploy` commands with or without confirmation.

### `serverless:remove`

Remove an entire stack configured in `serverless.yml` via CloudFormation.
Loading

0 comments on commit 1dbe390

Please sign in to comment.