Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added new react templates with ejs delimiter
- Loading branch information
zthomas
committed
Nov 9, 2019
1 parent
a45d4ab
commit 83a1374
Showing
128 changed files
with
5,727 additions
and
648 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,4 @@ main-packr.go | |
packrd | ||
/commit0 | ||
.history/ | ||
tmp/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# https://create-react-app.dev/docs/adding-custom-environment-variables | ||
REACT_APP_HOST=http://localhost:3000 | ||
REACT_APP_AUTH_DOMAIN= | ||
REACT_APP_AUTH_CLIENT_ID= | ||
REACT_APP_GRAPHQL_HOST=http://localhost:4000 | ||
REACT_APP_FILE_HOST=http://localhost:4000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
name: Build and Deploy | ||
|
||
on: push | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v1 | ||
|
||
# https://github.com/marketplace/actions/setup-node-js-for-use-with-actions | ||
- name: Setup Node | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: '12.x' | ||
|
||
- run: npm install | ||
|
||
- run: npm run build | ||
|
||
- name: upload build artifacts | ||
uses: actions/upload-artifact@v1 | ||
with: | ||
name: build | ||
path: build | ||
|
||
publish: | ||
needs: build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v1 | ||
with: | ||
fetch-depth: 1 | ||
|
||
- name: Download build artifacts | ||
uses: actions/download-artifact@v1 | ||
with: | ||
name: build | ||
|
||
# https://github.com/opspresso/action-s3-sync | ||
- name: Publish to AWS S3 | ||
uses: opspresso/action-s3-sync@master | ||
env: | ||
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
AWS_REGION: "us-west-2" | ||
FROM_PATH: "./build" | ||
DEST_PATH: "s3://<%= .Config.Frontend.App.Name %>" | ||
OPTIONS: "--acl public-read" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
node_modules | ||
.vscode | ||
build | ||
.expo | ||
.next | ||
assets | ||
static |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
module.exports = { | ||
semi: false, | ||
singleQuote: true, | ||
trailingComma: 'es5', | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,68 +1,81 @@ | ||
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app). | ||
|
||
## Available Scripts | ||
|
||
In the project directory, you can run: | ||
## Key Features | ||
|
||
### `npm start` | ||
- Dynamic loading of application | ||
- Session handling | ||
- Simple Routing using React Enroute | ||
- Redux state management | ||
- Simple server side rendering (React-snap) and SEO tag management (React-helmet) | ||
- Redux Saga for side effect management | ||
- Minimalist theme for MUI | ||
- Simple language management, designed to be compatible and easily swappable with i18next | ||
- Logger / analytics service | ||
- In memory Localstorage fallback | ||
- ScourJs as a immutability helper (optional) | ||
|
||
Runs the app in the development mode.<br /> | ||
Open [http://localhost:3000](http://localhost:3000) to view it in the browser. | ||
|
||
The page will reload if you make edits.<br /> | ||
You will also see any lint errors in the console. | ||
https://auth0.com/docs/universal-login | ||
https://trellis.auth0.com/authorize?response_type=token&client_id=e8Sk7ToG3y7fJMpNN006iVhEU1W2yONN&redirect_uri=http://localhost:3000/auth/callback&state=STATE | ||
&connection=CONNECTION | ||
|
||
### `npm test` | ||
## Code Formatting | ||
|
||
Launches the test runner in the interactive watch mode.<br /> | ||
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information. | ||
- following [AirBnB styleguide](https://github.com/airbnb/javascript) | ||
- linting is built into react-scripts (CRA config source)[https://github.com/facebook/create-react-app/blob/master/packages/eslint-config-react-app/index.js] | ||
- use prettier to automatically format code | ||
|
||
### `npm run build` | ||
## Styles | ||
|
||
Builds the app for production to the `build` folder.<br /> | ||
It correctly bundles React in production mode and optimizes the build for the best performance. | ||
We are using a hybrid approach to styling. The preferred system is CSS modules for its simplicity and statically compiled performance. However MUI forces us to use their style and theming system. | ||
|
||
The build is minified and the filenames include the hashes.<br /> | ||
Your app is ready to be deployed! | ||
- use MUI css-in-js styling for theme and theme dependent styling | ||
- use CSS modules for components that are independent and reusable. Can support using css variable overrides to customize it. | ||
- share variables using css variables | ||
- using some global styles for reset css and libraries like animate.css | ||
|
||
See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information. | ||
## Documentation | ||
|
||
### `npm run eject` | ||
- use http://documentation.js.org/ it supports Flow syntax | ||
|
||
**Note: this is a one-way operation. Once you `eject`, you can’t go back!** | ||
## Formatting | ||
|
||
If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project. | ||
## Tools: | ||
|
||
Instead, it will copy all the configuration files and the transitive dependencies (Webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own. | ||
We should strive to use minimalistic tools or write your own | ||
|
||
You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it. | ||
- https://bundlephobia.com/result?p=dayjs@1.7.8 | ||
- https://github.com/zalmoxisus/redux-devtools-extension | ||
|
||
## Learn More | ||
## Bundling / Codesplitting | ||
|
||
You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started). | ||
https://facebook.github.io/create-react-app/docs/code-splitting | ||
https://reactjs.org/docs/code-splitting.html | ||
|
||
To learn React, check out the [React documentation](https://reactjs.org/). | ||
|
||
### Code Splitting | ||
## Available Scripts | ||
|
||
This section has moved here: https://facebook.github.io/create-react-app/docs/code-splitting | ||
In the project directory, you can run: | ||
|
||
### Analyzing the Bundle Size | ||
### `npm start` | ||
|
||
This section has moved here: https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size | ||
Runs the app in the development mode.<br> | ||
Open [http://localhost:3000](http://localhost:3000) to view it in the browser. | ||
|
||
### Making a Progressive Web App | ||
The page will reload if you make edits.<br> | ||
You will also see any lint errors in the console. | ||
|
||
This section has moved here: https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app | ||
### `npm test` | ||
|
||
### Advanced Configuration | ||
Launches the test runner in the interactive watch mode.<br> | ||
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information. | ||
|
||
This section has moved here: https://facebook.github.io/create-react-app/docs/advanced-configuration | ||
### `npm run build` | ||
|
||
### Deployment | ||
Builds the app for production to the `build` folder.<br> | ||
It correctly bundles React in production mode and optimizes the build for the best performance. | ||
|
||
This section has moved here: https://facebook.github.io/create-react-app/docs/deployment | ||
The build is minified and the filenames include the hashes.<br> | ||
Your app is ready to be deployed! | ||
|
||
### `npm run build` fails to minify | ||
See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information. | ||
|
||
This section has moved here: https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify | ||
You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started). |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.