-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpackage.json
58 lines (58 loc) · 2.47 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
{
"name": "scorecard",
"version": "0.1.0",
"private": true,
"dependencies": {
"airtable": "^0.5.4",
"async": "^2.6.0",
"cheerio": "^1.0.0-rc.2",
"dotenv": "^5.0.1",
"faker": "^4.1.0",
"fetch-cached": "^2.0.3",
"file-system-cache": "^1.0.5",
"flexboxgrid": "^6.3.1",
"fs-extra": "^6.0.0",
"humanparser": "^1.5.0",
"lodash": "^4.17.10",
"node-fetch": "^2.1.2",
"query-string": "^6.0.0",
"react": "^16.3.2",
"react-dom": "^16.3.2",
"react-linkify": "^0.2.2",
"react-router-dom": "^4.2.2",
"react-scripts": "1.1.4",
"react-simple-popover": "^0.2.4",
"react-snap": "^1.13.0",
"react-spinners": "^0.3.2",
"request": "^2.86.0",
"rxjs": "^6.2.1",
"sharp": "^0.20.2",
"slug": "^0.9.1",
"smartcrop-sharp": "^2.0.3",
"undux": "^4.7.1",
"whatwg-fetch": "^2.0.4"
},
"scripts": {
"start": "REACT_APP_ENV=development react-scripts start",
"launch": "PORT=80 react-scripts start",
"build_env": ". ./.env.${REACT_APP_ENV} && react-scripts build && react-snap",
"build:staging": "REACT_APP_ENV=staging yarn build_env",
"build:production": "REACT_APP_ENV=production yarn build_env",
"build": "yarn build:production",
"deploy_env": ". ./.env.${REACT_APP_ENV} && aws s3 sync build/ s3://${AWS_S3_BUCKET_NAME} --acl public-read && aws s3 cp build/service-worker.js s3://${AWS_S3_BUCKET_NAME} --acl public-read --cache-control \"s-maxage=86400, max-age=0\" && aws cloudfront create-invalidation --distribution-id ${AWS_CLOUDFRONT_ID} --paths \"/*\"",
"deploy:staging": "REACT_APP_ENV=staging yarn deploy_env",
"deploy:production": "REACT_APP_ENV=production yarn deploy_env",
"deploy": "yarn deploy:production",
"build:deploy:staging": "yarn build:staging && yarn deploy:staging",
"build:deploy:production": "yarn build:production && yarn deploy:production",
"build:deploy": "yarn build:deploy:production",
"check-invalidations_env": ". ./.env.${REACT_APP_ENV} && aws cloudfront list-invalidations --distribution-id ${AWS_CLOUDFRONT_ID}",
"check-invalidations:staging": "REACT_APP_ENV=staging yarn check-invalidations_env",
"check-invalidations:production": "REACT_APP_ENV=production yarn check-invalidations_env",
"check-invalidations": "yarn check-invalidations:production",
"postbuild": "react-snap",
"test": "react-scripts test --env=jsdom",
"eject": "react-scripts eject",
"update-data": "node data-fetchers/scrape-legislator-bios.js"
}
}