mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2024-11-10 08:55:37 +08:00
parent
f4a9147308
commit
ccafcee72d
3 changed files with 30 additions and 1 deletions
20
.github/workflows/pr-check.yml
vendored
Normal file
20
.github/workflows/pr-check.yml
vendored
Normal 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
|
10
backend/package-lock.json
generated
10
backend/package-lock.json
generated
|
@ -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": {
|
||||
|
|
|
@ -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}'"
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue