Skip to content
This repository was archived by the owner on Sep 3, 2024. It is now read-only.

Commit 8f8025b

Browse files
committed
Migrate to npm workspaces
1 parent 714f2db commit 8f8025b

File tree

9 files changed

+26014
-55368
lines changed

9 files changed

+26014
-55368
lines changed

.gitignore

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# dependencies
2+
node_modules
3+
4+
# testing
5+
/coverage
6+
7+
# production
8+
/build
9+
10+
# misc
11+
.DS_Store
12+
13+
npm-debug.log*
14+
15+
# Serverless (and plugins) directories
16+
.serverless
17+
.webpack
18+
.dynamodb
19+
20+
# Web custom environment
21+
web/src/env/env.ts
22+
web/src/env/local.ts
23+
# local is .gitignored so custom changes aren't committed accidentally
24+
# dev and prod configs can be public as they should not have secrets
25+
26+
# Server custom environment
27+
server/src/env/env.ts
28+
server/src/env/local.ts
29+
server/src/env/dev.ts
30+
server/src/env/prod.ts

package-lock.json

Lines changed: 25959 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
2+
{
3+
"name": "postal-vote",
4+
"workspaces": [
5+
"server",
6+
"web"
7+
],
8+
"private": true,
9+
"scripts": {
10+
"postinstall": "npm run postinstall --workspaces --if-present",
11+
"start": "npm run start --workspaces --if-present",
12+
"test": "npm run test --workspaces --if-present",
13+
"lint": "npm run lint --workspaces --if-present",
14+
"build": "npm run build --workspaces --if-present"
15+
}
16+
}
17+

server/.gitignore

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

server/package-lock.json

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

server/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
2-
"name": "@domdomegg/postal-vote-server",
2+
"name": "server",
33
"private": true,
44
"main": "serverless.ts",
55
"scripts": {
6-
"postinstall": "cp -n src/env/local.template.ts src/env/local.ts && cp -n src/env/local.ts src/env/env.ts",
6+
"postinstall": "shx cp -n src/env/local.template.ts src/env/local.ts && shx cp -n src/env/local.ts src/env/env.ts",
77
"start": "npm run start:local",
88
"start:local": "cp src/env/local.ts src/env/env.ts && serverless offline start",
99
"deploy:dev": "cp src/env/dev.ts src/env/env.ts && serverless deploy --verbose",
@@ -47,6 +47,7 @@
4747
"serverless-offline": "^12.0.3",
4848
"serverless-offline-ses-v2": "^1.0.1",
4949
"serverless-webpack": "^5.7.1",
50+
"shx": "^0.3.4",
5051
"ts-jest": "^27.0.7",
5152
"ts-loader": "^9.2.6",
5253
"ts-node": "^10.2.1",

web/.gitignore

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

0 commit comments

Comments
 (0)