Skip to content

Commit 6b0f368

Browse files
committed
Merge updates
2 parents f80548a + 6e2c9b6 commit 6b0f368

File tree

13 files changed

+2896
-1388
lines changed

13 files changed

+2896
-1388
lines changed

.eslintrc.js

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
module.exports = {
2+
env: {
3+
browser: true,
4+
es2021: true,
5+
jest: true,
6+
},
7+
extends: [
8+
"plugin:react/recommended",
9+
"airbnb",
10+
"plugin:react-hooks/recommended",
11+
],
12+
parserOptions: {
13+
ecmaFeatures: {
14+
jsx: true,
15+
},
16+
ecmaVersion: 12,
17+
sourceType: "module",
18+
},
19+
plugins: ["react"],
20+
rules: {
21+
"react/react-in-jsx-scope": 0,
22+
},
23+
overrides: [
24+
{
25+
files: ["cypress/**/*"],
26+
plugins: ["cypress"],
27+
env: {
28+
"cypress/globals": true,
29+
},
30+
rules: {
31+
"import/no-extraneous-dependencies": 0,
32+
},
33+
},
34+
],
35+
};

.github/workflows/pipeline.yml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: seechange pipeline
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
paths-ignore:
7+
- '**.md'
8+
- '.gitignore'
9+
- '.nvmrc'
10+
pull_request:
11+
branches: [ main ]
12+
paths-ignore:
13+
- '**.md'
14+
- '.gitignore'
15+
- '.nvmrc'
16+
17+
jobs:
18+
build:
19+
20+
runs-on: ubuntu-latest
21+
22+
steps:
23+
- name: Checkout repository
24+
uses: actions/checkout@v2
25+
26+
- name: set node version with nvm
27+
shell: bash --login {0}
28+
run: nvm install
29+
30+
- name: Cache dependencies
31+
uses: actions/cache@v2
32+
with:
33+
path: |
34+
**/node_modules
35+
key: ${{ runner.os }}-${{ hashFiles('**/package-lock.json') }}
36+
37+
- name: Install
38+
run: npm install
39+
40+
- name: Build
41+
run: npm run build --if-present
42+
43+
- name: Deploy to gh-pages
44+
run: |
45+
git config user.email hanqing.tan@gmail.com
46+
git config user.name hqtan
47+
git remote set-url origin https://"${github_token}"@github.com/${repository}
48+
npm run deploy
49+
env:
50+
user_name: 'civic-makerbot'
51+
user_email: 'civic-makerbot@users.noreply.github.com'
52+
github_token: ${{ secrets.ACTIONS_DEPLOY_ACCESS_TOKEN }}
53+
repository: ${{ github.repository }}

.gitignore

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,30 @@
1-
.DS_Store
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
3+
# IDE
4+
.vscode
5+
.idea
6+
7+
# dependencies
28
/node_modules
9+
/.pnp
10+
.pnp.js
11+
package-lock.json
12+
13+
# build
14+
/tmp
15+
16+
# testing
17+
/coverage
18+
/cypress/screenshots
19+
/cypress/videos
20+
21+
# misc
22+
.DS_Store
23+
.env.local
24+
.env.development.local
25+
.env.test.local
326
.eslintcache
27+
28+
npm-debug.log*
29+
yarn-debug.log*
30+
yarn-error.log*

client/README.md

Lines changed: 0 additions & 72 deletions
This file was deleted.

cypress.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"integrationFolder": "cypress",
3+
"baseUrl": "http://localhost:3000/",
4+
"video": false,
5+
"screenshot": false
6+
}

0 commit comments

Comments
 (0)