Skip to content

Commit

Permalink
Merge pull request #135 from SamKomesarook/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
SamKomesarook authored Sep 15, 2020
2 parents 47b520f + e4a1afd commit 0df0ce0
Show file tree
Hide file tree
Showing 69 changed files with 8,751 additions and 6,900 deletions.
28 changes: 25 additions & 3 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,9 +1,31 @@
{
"presets": [
"@babel/preset-env",
[
"@babel/preset-env",
{
"modules": false,
"targets": {
"browsers": [
"last 2 Chrome versions",
"last 2 Firefox versions",
"last 2 Safari versions",
"last 2 iOS versions",
"last 1 Android version",
"last 1 ChromeAndroid version",
"ie 11"
]
}
}
],
"@babel/preset-react"
],
"plugins": [
"transform-class-properties"
]
"@babel/plugin-proposal-class-properties",
"@babel/plugin-transform-modules-commonjs"
],
"env": {
"test": {
"plugins": ["@babel/plugin-transform-runtime"]
}
}
}
1 change: 1 addition & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
SKIP_PREFLIGHT_CHECK=true
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
src/lang/grammar/**/*.js
33 changes: 33 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"env": {
"browser": true,
"es2020": true
},
"extends": [
"react-app",
"plugin:react/recommended",
"airbnb"
],
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 11,
"sourceType": "module"
},
"plugins": [
"react"
],
"rules": {
"linebreak-style": "off",
"react/jsx-filename-extension": ["warn", { "extensions": [".js", ".jsx"] }],
"no-unused-vars": "warn",
"no-console": "warn",
"no-restricted-syntax": "off",
"no-constant-condition": ["error", { "checkLoops": false }],
"no-underscore-dangle": "off",
"no-plusplus": ["error", { "allowForLoopAfterthoughts": true }],
"func-names": ["warn", "as-needed"],
"no-unused-expressions": ["error", { "allowTernary": true }]
}
}
29 changes: 29 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Google Cloud Continuous Deployment

on:
push:
branches: [ master ]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions/setup-node@master
with:
node-version: 12
- run: npm ci
- run: npm run prod

- name: Initialize Google Cloud SDK
uses: zxyle/publish-gae-action@master
with:
service_account_email: ${{ secrets.GCP_SA_EMAIL }}
service_account_key: ${{ secrets.GCP_SA_KEY }}
project_id: ${{ secrets.PROJECT_ID }}

- name: Publish app to Google App Engine
run: |
gcloud auth activate-service-account ${{ secrets.GCP_SA_EMAIL }} --key-file=client-secret.json
gcloud config set project ${{ secrets.PROJECT_ID }}
gcloud -q app deploy app.yaml --promote
75 changes: 0 additions & 75 deletions .github/workflows/google.yml

This file was deleted.

16 changes: 16 additions & 0 deletions .github/workflows/integrate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Continous Integration

on:
pull_request:
branches: [ master, develop ]

jobs:
test_pull_request:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 12
- run: npm ci
- run: npm run prod
70 changes: 4 additions & 66 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,68 +1,6 @@
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
## setPassword
PASS=~password~ npm run setPassword

## Available Scripts
example:

In the project directory, you can run:

### `npm start`

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.

### `npm test`

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.

### `npm run build`

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.

The build is minified and the filenames include the hashes.<br />
Your app is ready to be deployed!

See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.

### `npm run eject`

**Note: this is a one-way operation. Once you `eject`, you can’t go back!**

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.

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.

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.

## Learn More

You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).

To learn React, check out the [React documentation](https://reactjs.org/).

### Code Splitting

This section has moved here: https://facebook.github.io/create-react-app/docs/code-splitting

### Analyzing the Bundle Size

This section has moved here: https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size

### Making a Progressive Web App

This section has moved here: https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app

### Advanced Configuration

This section has moved here: https://facebook.github.io/create-react-app/docs/advanced-configuration

### Deployment

This section has moved here: https://facebook.github.io/create-react-app/docs/deployment

### `npm run build` fails to minify

This section has moved here: https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify
PASS=newpassword!123 npm run setPassword
23 changes: 10 additions & 13 deletions app.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
runtime: nodejs
env: flex

# This sample incurs costs to run on the App Engine flexible environment.
# The settings below are to reduce costs during testing and are not appropriate
# for production use. For more information, see:
# https://cloud.google.com/appengine/docs/flexible/nodejs/configuring-your-app-with-app-yaml
manual_scaling:
instances: 1
resources:
cpu: 1
memory_gb: 0.5
disk_size_gb: 10
runtime: nodejs12
handlers:
# Serve all static files with url ending with a file extension
- url: /(.*\..+)$
static_files: dist/\1
upload: dist/(.*\..+)$
# Catch all handler to index.html
- url: /.*
static_files: dist/index.html
upload: dist/index.html
Loading

0 comments on commit 0df0ce0

Please # to comment.