Skip to content

Commit

Permalink
added an npm set config task for switching dev to sandbox
Browse files Browse the repository at this point in the history
  • Loading branch information
markfee committed Oct 6, 2023
1 parent 307cc57 commit d54239f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
node_modules
logs
server.json
server.snd.json
server.dev.json
server/public/assets
server/public/build
npm-debug.log
Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@
"unit-test-quiet": "lab -l -s",
"test": "npm run lint && npm run unit-test",
"postinstall": "npm run build",
"kill": "sudo kill -9 $(sudo lsof -t -i:3000)"
"kill": "sudo kill -9 $(sudo lsof -t -i:3000)",
"increment-version": "npm version prerelease --preid=pre -m \"Set Version to %s\"",
"set-config": "run(){ cp ./config/server.$1.json ./config/server.json; }; run"
},
"author": "defra",
"license": "ISC",
Expand Down

0 comments on commit d54239f

Please sign in to comment.