Skip to content

Commit b2b32f7

Browse files
authored
chore: #98 normalise webpack, jest and build scripts across project (#104)
* chore: #98 normalise webpack, jest and build scripts across project * chore: #98 ensure tests bail
1 parent 0be94e1 commit b2b32f7

File tree

132 files changed

+1363
-5550
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

132 files changed

+1363
-5550
lines changed

.editorconfig

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ trim_trailing_whitespace = true
1010
insert_final_newline = true
1111

1212
[*.md]
13-
trim_trailing_whitespace = false
13+
trim_trailing_whitespace = false

.github/workflows/deploy-develop.yml

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ env:
1111
AWS_SECRET_ACCESS_KEY: ${{secrets.AWS_SECRET_ACCESS_KEY}}
1212
AWS_REGION: ${{secrets.AWS_REGION}}
1313
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
14+
REAPIT_ENV: DEV
1415
CI: true
1516

1617
jobs:

.github/workflows/pull-request-ci.yml

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ env:
1010
AWS_SECRET_ACCESS_KEY: ${{secrets.AWS_SECRET_ACCESS_KEY}}
1111
AWS_REGION: ${{secrets.AWS_REGION}}
1212
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
13+
REAPIT_ENV: DEV
1314
CI: true
1415

1516
jobs:

.npmrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
//registry.npmjs.org/:_authToken=${NPM_TOKEN}
1+
//registry.npmjs.org/:_authToken=${NPM_TOKEN}

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Foundations
22

3+
![Pull Request](https://github.com/reapit/foundations/workflows/Pull%20Request/badge.svg)
4+
![Release develop](https://github.com/reapit/foundations/workflows/Release%20develop/badge.svg)
35
[![lerna](https://img.shields.io/badge/maintained%20with-lerna-cc00ff.svg)](https://lerna.js.org/)
46

57
## How to setup

package.json

+144-12
Original file line numberDiff line numberDiff line change
@@ -2,36 +2,133 @@
22
"name": "root",
33
"private": true,
44
"scripts": {
5-
"build": "lerna run build --parallel",
5+
"build": "lerna run build:prod --parallel",
66
"test": "lerna run test:ci --parallel",
77
"lint": "eslint --ext=jsx,ts,tsx packages --fix",
88
"fetch-config": "yarn config-manager getSecret reapit-marketplace-app-config",
9-
"release:develop": "lerna run release:develop --parallel"
9+
"release:dev": "lerna run release:dev --parallel"
10+
},
11+
"dependencies": {
12+
"@apollo/react-hooks": "^3.1.3",
13+
"@sentry/browser": "^5.11.1",
14+
"amazon-cognito-identity-js": "^3.0.13",
15+
"apollo-boost": "^0.4.7",
16+
"apollo-server": "^2.9.16",
17+
"aws-lambda": "^0.1.2",
18+
"aws-sdk": "^2.582.0",
19+
"bulma": "^0.7.5",
20+
"chart.js": "^2.9.3",
21+
"cors": "^2.8.5",
22+
"dataloader": "^2.0.0",
23+
"dayjs": "^1.8.19",
24+
"diff": "^4.0.1",
25+
"ejs": "^3.0.1",
26+
"express": "^4.17.1",
27+
"formik": "^2.0.4",
28+
"gitter-sidecar": "^1.5.0",
29+
"graphql": "^14.5.8",
30+
"graphql-depth-limit": "^1.1.0",
31+
"graphql-type-json": "^0.3.1",
32+
"hardtack": "^4.1.2",
33+
"himalaya": "^1.1.0",
34+
"jsonwebtoken": "^8.5.1",
35+
"little-loader": "^0.2.0",
36+
"localforage": "^1.7.3",
37+
"lodash.merge": "^4.6.2",
38+
"papaparse": "^5.1.1",
39+
"pell": "^1.0.6",
40+
"prop-types": "^15.7.2",
41+
"react": "^16.12.0",
42+
"react-chartjs-2": "^2.8.0",
43+
"react-datasheet": "^1.4.0",
44+
"react-datepicker": "^2.9.6",
45+
"react-dom": "^16.12.0",
46+
"react-google-map": "^3.1.1",
47+
"react-google-maps-loader": "^4.2.5",
48+
"react-icons": "^3.7.0",
49+
"react-redux": "^7.1.3",
50+
"react-router": "^5.1.2",
51+
"react-router-dom": "^5.1.2",
52+
"react-slick": "^0.24.0",
53+
"react-table": "7.0.0-alpha.35",
54+
"react-to-print": "^2.4.0",
55+
"redux": "^4.0.4",
56+
"redux-persist": "^5.10.0",
57+
"redux-saga": "^1.1.3",
58+
"styled-components": "^4.4.1",
59+
"swagger-ui-react": "^3.24.3",
60+
"uuid": "^3.3.3",
61+
"winston": "^3.2.1"
1062
},
1163
"devDependencies": {
64+
"@apollo/react-testing": "^3.1.3",
65+
"@babel/core": "^7.7.2",
66+
"@babel/polyfill": "^7.7.0",
67+
"@babel/preset-env": "^7.7.1",
1268
"@commitlint/cli": "^8.2.0",
1369
"@commitlint/config-conventional": "^8.2.0",
70+
"@cypress/webpack-preprocessor": "^4.1.1",
1471
"@octokit/rest": "^16.38.1",
1572
"@redux-saga/testing-utils": "^1.0.5",
73+
"@storybook/addon-actions": "^5.2.6",
74+
"@storybook/addon-docs": "^5.2.6",
75+
"@storybook/addon-info": "^5.2.6",
76+
"@storybook/addon-links": "^5.2.6",
77+
"@storybook/addon-storysource": "^5.2.6",
78+
"@storybook/addon-viewport": "^5.2.6",
79+
"@storybook/addons": "^5.2.6",
80+
"@storybook/cli": "^5.2.6",
81+
"@storybook/preset-typescript": "^1.1.0",
82+
"@storybook/react": "^5.2.6",
83+
"@storybook/storybook-deployer": "^2.8.1",
84+
"@storybook/theming": "^5.2.8",
1685
"@testing-library/jest-dom": "^4.2.4",
1786
"@testing-library/react": "^9.3.2",
87+
"@testing-library/react-hooks": "^2.0.3",
1888
"@testing-library/user-event": "^7.1.2",
89+
"@types/aws-lambda": "^8.10.39",
90+
"@types/diff": "^4.0.2",
91+
"@types/ejs": "^2.7.0",
1992
"@types/enzyme": "^3.10.3",
2093
"@types/enzyme-adapter-react-16": "^1.0.5",
94+
"@types/googlemaps": "^3.37.5",
95+
"@types/graphql-depth-limit": "^1.1.2",
96+
"@types/graphql-type-json": "^0.3.2",
2197
"@types/jest": "^24.0.23",
98+
"@types/jsonwebtoken": "^8.3.5",
99+
"@types/little-loader": "^0.2.0",
100+
"@types/lodash.merge": "^4.6.6",
101+
"@types/nanoid": "^2.1.0",
22102
"@types/node": "10.17.13",
103+
"@types/node-fetch": "^2.5.4",
104+
"@types/papaparse": "^5.0.3",
23105
"@types/react": "^16.9.0",
24106
"@types/react-dom": "^16.9.0",
25107
"@types/react-redux": "^7.0.9",
26108
"@types/react-router": "^5.1.3",
27109
"@types/react-router-dom": "^5.1.3",
110+
"@types/react-slick": "^0.23.4",
111+
"@types/storybook__react": "^4.0.2",
112+
"@types/styled-components": "^4.1.19",
113+
"@types/uuid": "^3.4.6",
114+
"@types/yaml": "^1.2.0",
28115
"@typescript-eslint/eslint-plugin": "^2.10.0",
29116
"@typescript-eslint/parser": "^2.10.0",
117+
"babel-loader": "^8.0.6",
118+
"babel-polyfill": "^6.26.0",
30119
"babel-plugin-import": "^1.13.0",
31120
"babel-plugin-styled-components": "^1.10.6",
32121
"babel-plugin-tailwind-components": "^0.5.10",
122+
"awesome-typescript-loader": "^5.2.1",
123+
"chromedriver": "^2.43.1",
33124
"compare-versions": "^3.5.1",
125+
"concurrently": "^4.1.1",
126+
"core-js": "^3.4.1",
34127
"cross-env": "^6.0.3",
128+
"css-loader": "^3.0.0",
129+
"cypress": "^3.8.0",
130+
"cypress-file-upload": "^3.5.1",
131+
"cypress-plugin-retries": "^1.5.2",
35132
"dotenv": "^8.2.0",
36133
"dotenv-webpack": "^1.7.0",
37134
"enzyme": "^3.10.0",
@@ -41,40 +138,75 @@
41138
"eslint-config-prettier": "^6.7.0",
42139
"eslint-plugin-prettier": "^3.1.1",
43140
"eslint-plugin-react": "^7.17.0",
141+
"favicons-webpack-plugin": "^2.1.0",
142+
"file-loader": "^3.0.1",
143+
"fork-ts-checker-notifier-webpack-plugin": "^1.0.0",
144+
"fork-ts-checker-webpack-plugin": "^1.3.4",
145+
"graphql-import": "^0.7.1",
146+
"graphql-tag": "^2.10.1",
147+
"html-webpack-plugin": "^3.2.0",
44148
"husky": "^4.2.0",
45149
"isomorphic-fetch": "^2.2.1",
46150
"jest": "^25.1.0",
47151
"jest-config": "^25.1.0",
48152
"jest-fetch-mock": "^2.1.2",
153+
"jest-transform-graphql": "^2.1.0",
49154
"lerna": "^3.19.0",
50155
"lint-staged": "^9.5.0",
156+
"loader-utils": "^1.2.3",
157+
"merge-package-json": "^0.1.3",
158+
"mini-css-extract-plugin": "^0.7.0",
159+
"mockdate": "^2.0.5",
160+
"node-sass": "^4.12.0",
161+
"nodemon": "^2.0.2",
51162
"prettier": "^1.19.1",
163+
"prettier-plugin-packagejson": "^2.0.1",
164+
"purgecss": "^1.3.0",
165+
"purgecss-whitelister": "^2.4.0",
166+
"purify-css": "^1.2.5",
52167
"query-string": "^6.9.0",
168+
"raw-loader": "^3.1.0",
169+
"react-docgen-typescript-loader": "^3.3.0",
170+
"react-test-renderer": "^16.12.0",
53171
"rimraf": "^3.0.0",
172+
"rollup": "1.27.13",
173+
"rollup-plugin-scss": "^1.0.2",
174+
"sass-loader": "^7.1.0",
54175
"semver": "^7.1.1",
176+
"serve": "^11.2.0",
177+
"source-map-loader": "^0.2.4",
178+
"style-loader": "^0.23.1",
55179
"sw2dts": "^2.6.2",
56180
"ts-jest": "^24.2.0",
181+
"tslib": "^1.10.0",
182+
"tsconfig-paths-webpack-plugin": "^3.2.0",
57183
"ts-loader": "^6.2.1",
184+
"ts-node": "^8.3.0",
185+
"ts-paths-to-webpack-alias": "^0.3.1",
186+
"tsdx": "^0.11.0",
58187
"typescript": "~3.7.2",
59188
"typescript-eslint": "^0.0.1-alpha.0",
60-
"webpack": "^4.41.5"
189+
"wait-on": "^3.3.0",
190+
"webpack": "^4.41.5",
191+
"webpack-cli": "^3.3.2",
192+
"webpack-dev-server": "^3.4.1",
193+
"whatwg-fetch": "^3.0.0",
194+
"workbox-webpack-plugin": "^4.3.1",
195+
"yeoman-generator": "^4.0.1",
196+
"yo": "^3.1.1",
197+
"yosay": "^2.0.2"
61198
},
62199
"workspaces": [
63200
"packages/*"
64201
],
65-
"dependencies": {
66-
"@sentry/browser": "^5.11.1",
67-
"dayjs": "^1.8.19",
68-
"react": "^16.12.0",
69-
"react-dom": "^16.12.0",
70-
"react-redux": "^7.1.3",
71-
"react-router": "^5.1.2",
72-
"react-router-dom": "^5.1.2"
73-
},
74202
"lint-staged": {
75203
"*.{ts,tsx}": [
76204
"yarn lint",
77205
"git add"
206+
],
207+
"**/cypress/**/*.{ts,tsx}": [
208+
"yarn lint:cypress",
209+
"git add"
78210
]
79211
},
80212
"husky": {

packages/aml-checklist/azure-pipelines.yml

-136
This file was deleted.

0 commit comments

Comments
 (0)