Skip to content

Commit

Permalink
fix: move sops and local file creation to npm script
Browse files Browse the repository at this point in the history
  • Loading branch information
josmo committed Jan 31, 2024
1 parent 133bf96 commit e2fc203
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
},

// Use 'postCreateCommand' to run commands after the container is created.
"postCreateCommand": "sops -d github-app-pelostage-local-credentials.enc.yaml > github-app-pelostage-local-credentials.yaml && cp app-config.local-example.yaml app-config.local.yaml && yarn install --frozen-lockfile",
"postCreateCommand": "yarn install --frozen-lockfile",

// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
// "remoteUser": "root"
Expand Down
4 changes: 3 additions & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,6 @@ yarn dev

## Development (devContainer)


1. start devContainer
2. `yarn setup`
3. `yarn dev`
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"node": "18 || 20"
},
"scripts": {
"setup": "sops -d github-app-pelostage-local-credentials.enc.yaml > github-app-pelostage-local-credentials.yaml && cp app-config.local-example.yaml app-config.local.yaml",
"dev": "concurrently \"yarn start\" \"yarn start-backend\"",
"start": "yarn workspace app start",
"start-backend": "yarn workspace backend start",
Expand Down

0 comments on commit e2fc203

Please sign in to comment.