Migrate to npm (#106)
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
# Description Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change. - Migrate to using npm #105 ## Type of change Please delete options that are not relevant. - [x] Bug fix (non-breaking change which fixes an issue) # How Has This Been Tested? Please describe the tests that you ran to verify the changes. Provide instructions so we can reproduce. Please also list any relevant details to your test configuration. # Checklist - [ ] My code follows the style guidelines of this project - [ ] I have performed a self-review of my own code - [ ] I have commented my code, particularly in hard-to-understand areas - [ ] I have made corresponding changes to the documentation - [ ] My changes generate no new warnings - [ ] I have added tests that provde my fix is effective or that my feature works - [ ] New and existing unit tests pass locally with my changes - [ ] Any dependent changes have been merged and published in downstream modules Reviewed-on: https://gitea.vylpes.xyz/External/card-drop/pulls/106 Reviewed-by: VylpesTester <tester@vylpes.com> Co-authored-by: Ethan Lane <ethan@vylpes.com> Co-committed-by: Ethan Lane <ethan@vylpes.com>
This commit is contained in:
parent
5a8cc955f6
commit
2091e326b8
5 changed files with 9994 additions and 5811 deletions
|
@ -51,14 +51,14 @@ steps:
|
||||||
- name: build
|
- name: build
|
||||||
image: node
|
image: node
|
||||||
commands:
|
commands:
|
||||||
- yarn install --frozen-lockfile
|
- npm ci
|
||||||
- yarn build
|
- npm run build
|
||||||
|
|
||||||
- name: test
|
- name: test
|
||||||
image: node
|
image: node
|
||||||
commands:
|
commands:
|
||||||
- yarn install --frozen-lockfile
|
- npm ci
|
||||||
- yarn test
|
- npm test
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
branch:
|
branch:
|
||||||
|
|
9982
package-lock.json
generated
Normal file
9982
package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load diff
|
@ -13,11 +13,11 @@ cd ~/apps/card-drop/card-drop_prod \
|
||||||
&& (pm2 stop card-drop_prod || true) \
|
&& (pm2 stop card-drop_prod || true) \
|
||||||
&& (pm2 delete card-drop_prod || true) \
|
&& (pm2 delete card-drop_prod || true) \
|
||||||
&& cp .prod.env .env \
|
&& cp .prod.env .env \
|
||||||
&& yarn clean \
|
&& npm run clean \
|
||||||
&& yarn install --frozen-lockfile \
|
&& npm ci \
|
||||||
&& yarn build \
|
&& npm run build \
|
||||||
&& docker compose --file docker-compose.prod.yml up -d \
|
&& docker compose --file docker-compose.prod.yml up -d \
|
||||||
&& echo "Sleeping for 10 seconds to let database load..." \
|
&& echo "Sleeping for 10 seconds to let database load..." \
|
||||||
&& sleep 10 \
|
&& sleep 10 \
|
||||||
&& yarn run db:up \
|
&& npm run db:up \
|
||||||
&& NODE_ENV=production pm2 start --name card-drop_prod dist/bot.js
|
&& NODE_ENV=production pm2 start --name card-drop_prod dist/bot.js
|
|
@ -13,11 +13,11 @@ cd ~/apps/card-drop/card-drop_stage \
|
||||||
&& (pm2 stop card-drop_stage || true) \
|
&& (pm2 stop card-drop_stage || true) \
|
||||||
&& (pm2 delete card-drop_stage || true) \
|
&& (pm2 delete card-drop_stage || true) \
|
||||||
&& cp .stage.env .env \
|
&& cp .stage.env .env \
|
||||||
&& yarn clean \
|
&& npm run clean \
|
||||||
&& yarn install --frozen-lockfile \
|
&& npm ci \
|
||||||
&& yarn build \
|
&& npm run build \
|
||||||
&& docker compose --file docker-compose.stage.yml up -d \
|
&& docker compose --file docker-compose.stage.yml up -d \
|
||||||
&& echo "Sleeping for 10 seconds to let database load..." \
|
&& echo "Sleeping for 10 seconds to let database load..." \
|
||||||
&& sleep 10 \
|
&& sleep 10 \
|
||||||
&& yarn run db:up \
|
&& npm run db:up \
|
||||||
&& NODE_ENV=production pm2 start --name card-drop_stage dist/bot.js
|
&& NODE_ENV=production pm2 start --name card-drop_stage dist/bot.js
|
Loading…
Reference in a new issue