* Update package.json

* Update CONTRIBUTING.md

* Update install.cmd

* Update pr-check.yml
This commit is contained in:
Ferotiq 2022-02-20 15:29:39 -06:00 committed by GitHub
parent 7cbd9d2722
commit 1233d266a1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 6 additions and 6 deletions

View file

@ -59,7 +59,7 @@ jobs:
- name: Install dependencies
if: steps.filter.outputs.changes != '[]'
run: npm run install
run: npm run install:all
# - name: Run webpack
# run: npm run build:live

View file

@ -93,7 +93,7 @@ Follow these steps if you want to work on anything involving the database/accoun
Once you have completed the above steps, you are ready to build and run Monkeytype.
1. Run `npm run install` in the project root to install all dependencies.
1. Run `npm run install:all` in the project root to install all dependencies.
- If you are on Windows, use `npm run install:windows`.
- If none of this works, you will have to run `npm install` in root, frontend, and backend directories.
2. Run `npm run start:dev` (`npm run start:dev:fe` if you skipped the mongo section) to start a local dev server on [port 5000](http://localhost:5000). It will watch for changes and rebuild when you edit files in `src/` or `public/` directories. Note that rebuilding doesn't happen instantaneously so be patient for changes to appear. Use <kbd>Ctrl+C</kbd> to kill it.

View file

@ -1,7 +1,7 @@
npm ci
call npm ci
cd .\frontend
npm ci
call npm ci
cd ..\backend
npm ci
call npm ci
cd ..\
PAUSE

View file

@ -8,7 +8,7 @@
"start:dev:be": "cd backend && npm run start:dev",
"start:dev:fe": "cd frontend && npm run start:dev",
"deploy:live": "cd frontend && npm run deploy:live",
"install": "sh ./bin/install.sh",
"install:all": "sh ./bin/install.sh",
"install:windows": ".\\bin\\install.cmd",
"lint": "run-script-os",
"lint:windows": ".\\node_modules\\.bin\\eslint \"./backend/**/*.{ts,js}\" \"./frontend/src/scripts/**/*.{ts,js}\"",