-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
140 lines (140 loc) · 5.57 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
{
"name": "webapp-boilerplate",
"version": "1.2.0",
"main": "index.js",
"author": "George Gillams <[email protected]>",
"license": "MIT",
"repository": {
"type": "git",
"url": "git://github.com/georgegillams/webapp-boilerplate.git"
},
"scripts": {
"prebuild": "yarn build:clean",
"build:clean": "rimraf ./build",
"link-helpers:clean": "rm -f $(pwd)/src/helpers $(pwd)/server/helpers",
"dev": "redis-server & cross-env NODE_ENV=development SECRET_API_KEY=asdfghjkl STARTED_AT=$( date -u +%s ) BUILT_AT=$( date -u +%s ) ENABLE_SOFT_LINKS=true nodemon --ignore 'server/server_content/*' --ignore 'src/*' --ignore 'build/*' --exec babel-node --inspect ./server/app.js src",
"build:client": "next build",
"build:server:copy-assets": "cp next.config.js ./build/ && cp -R ./public ./build/ && cp package.json ./build/ && cp yarn.lock ./build/",
"build:shared": "cross-env babel -d ./build/shared ./shared -s --copy-files",
"build:server": "cross-env babel -d ./build/server ./server -s --copy-files && yarn build:server:copy-assets",
"build:replace-paths:linux": "find build -name \"*.js\" -exec sed -i 's/require(\"\\/.*\\/node_modules\\//require(\"/g' {} \\;",
"build:replace-paths:mac": "find build -name \"*.js\" -exec sed -i '.bak' 's/require(\"\\/.*\\/node_modules\\//require(\"/g' {} \\;",
"build:replace-paths": "if [[ \"$OSTYPE\" == \"darwin\"* ]]; then yarn build:replace-paths:mac; else yarn build:replace-paths:linux; fi;",
"build": "BUILT_AT=$( date -u +%s ) yarn build:client && yarn build:shared && yarn build:server && yarn build:replace-paths",
"build:for-deploy": "yarn build && mkdir -p deploy && mv build deploy/ && cp package* deploy/ && cp next.config.js deploy/ && cp -R config deploy/",
"build:test": "cross-env PORT=9001 PROJECT_UNDER_TEST=true yarn build",
"start": "yarn link-helpers:clean && cross-env STARTED_AT=$( date -u +%s ) NODE_ENV=production node ./build/server/app.js",
"start:test": "cross-env PORT=9001 PROJECT_UNDER_TEST=true yarn start",
"start:aws": "yarn start",
"test": "cross-env jest --coverage",
"test:watch": "cross-env jest --watchAll",
"test:debug": "node --inspect node_modules/.bin/jest --runInBand --watchAll",
"backstopjs:test": "yarn start:test & (sleep 15 && node ./scripts/backstopjs/backstop.js)",
"backstopjs:test:allow-failure": "yarn start:test & (sleep 15 && node ./scripts/backstopjs/backstop.js --allowFailure)",
"coveralls": "cat ./coverage/lcov.info | coveralls",
"lint": "yarn lint:js",
"lint:js": "eslint src --fix && eslint server --fix",
"prettier": "prettier --config .prettierrc \"./**/*.+(js|json|jsx)\" --write",
"clean:example": "rnb --c",
"analyze": "cross-env ANALYZE=true next build"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*.js": [
"eslint --fix"
],
"./**/*.+(js|json|jsx)": [
"prettier --write"
]
},
"dependencies": {
"@george-gillams/components": "^28.15.0",
"@george-gillams/webapp": "1.0.6",
"@next/bundle-analyzer": "^14.1.0",
"async-lock": "^1.4.1",
"bcrypt": "^5.1.1",
"body-parser": "^1.20.2",
"chalk": "^4.1.2",
"confetti-js": "0.0.18",
"cookie-parser": "^1.4.6",
"cors": "^2.8.5",
"cross-env": "^7.0.3",
"date-fns-tz": "^2.0.0",
"express": "^4.18.2",
"express-fileupload": "^1.4.3",
"express-slow-down": "^2.0.1",
"helmet": "^7.1.0",
"hoist-non-react-statics": "3.3.2",
"immer": "^9.0.16",
"immutable": "^4.3.5",
"invariant": "2.2.4",
"ip": "^2.0.1",
"ip-parse": "^1.0.5",
"konami": "^1.6.3",
"lodash": "^4.17.21",
"next": "^14.1.0",
"next-transpile-modules": "^10.0.1",
"nodemailer": "^6.9.10",
"normalize.css": "^8.0.1",
"react": "^18.2.0",
"react-cookies": "^0.1.1",
"react-dom": "^18.2.0",
"react-loadable": "^5.5.0",
"react-modal": "^3.16.1",
"react-photo-gallery": "^8.0.0",
"react-redux": "8.1.3",
"redis": "^3.1.2",
"redux": "4.2.1",
"redux-saga": "1.3.0",
"redux-saga-routines": "^3.2.3",
"reselect": "4.1.8",
"safe-compare": "^1.1.4",
"signale": "^1.4.0",
"styled-components": "^5.3.6",
"styled-normalize": "^8.1.1",
"wget-improved": "^3.4.0",
"whatwg-fetch": "^3.6.20"
},
"devDependencies": {
"@babel/cli": "^7.23.9",
"@babel/eslint-parser": "^7.23.10",
"@babel/node": "^7.23.9",
"@babel/preset-env": "^7.23.9",
"@babel/preset-react": "^7.23.3",
"@r-next-b/cli": "^0.1.1",
"@testing-library/jest-dom": "^6.4.2",
"@testing-library/react": "^14.2.1",
"babel-jest": "^29.7.0",
"babel-plugin-add-module-exports": "^1.0.4",
"babel-plugin-dynamic-import-node": "^2.3.3",
"babel-plugin-module-resolver": "^5.0.0",
"babel-plugin-styled-components": "^2.1.4",
"backstopjs": "^6.3.10",
"coveralls": "^3.1.1",
"css-loader": "^6.10.0",
"eslint": "^8.56.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-jest": "^27.9.0",
"eslint-plugin-jsx-a11y": "^6.8.0",
"eslint-plugin-prettier": "^5.1.3",
"eslint-plugin-promise": "^6.1.1",
"eslint-plugin-react": "^7.33.2",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-redux-saga": "^1.3.2",
"husky": "^9.0.11",
"jest-cli": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"jest-styled-components": "^7.2.0",
"lint-staged": "^15.2.2",
"nodemon": "^3.0.3",
"prettier": "^3.2.5",
"prompt": "^1.3.0",
"react-test-renderer": "^18.2.0",
"redis-mock": "^0.56.3"
}
}