* fix

* Install all dependencies
This commit is contained in:
Bruce Berrios 2022-02-08 15:41:59 -05:00 committed by GitHub
parent f4a9147308
commit ccafcee72d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 30 additions and 1 deletions

20
.github/workflows/pr-check.yml vendored Normal file
View file

@ -0,0 +1,20 @@
name: PR Check
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v1
with:
node-version: "16.13.2"
- run: npm run install:all
- run: npm run lint
- run: npm run pretty

View file

@ -1,9 +1,13 @@
{
"name": "backend",
"name": "monkeytype-backend",
"version": "1.0.0",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "monkeytype-backend",
"version": "1.0.0",
"license": "GPL-3.0",
"dependencies": {
"cors": "2.8.5",
"cron": "1.8.2",
@ -23,6 +27,10 @@
"string-similarity": "4.0.4",
"ua-parser-js": "0.7.28",
"uuid": "8.3.2"
},
"engines": {
"node": "16.13.2",
"npm": "8.1.2"
}
},
"node_modules/@firebase/app-types": {

View file

@ -8,6 +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:all": "npm install && `cd ./frontend && npm install` && `cd ./backend && npm install`",
"lint": "./node_modules/.bin/eslint './backend/**/*.js' './frontend/src/js/**/*.js'",
"pretty": "prettier --check './backend/**/*.js' './frontend/src/**/*.{js,scss}' './frontend/static/**/*.{json,html}'"
},