Last active
April 20, 2021 16:30
-
-
Save rw3iss/6a15f3068fef7f85f545ec7e571712d2 to your computer and use it in GitHub Desktop.
npm scripts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "", | |
"version": "1.0.0", | |
"description": "", | |
"main": "build/index.js", | |
"scripts": { | |
"setup": "npm install", | |
"serve": "node build/index.js", | |
"dev": "concurrently --kill-others \"npm run build-watcher\" \"npm run build-reload\"", | |
"build-watcher": "nodemon --watch './src/**/*' -e ts,tsx,js,jsx,scss,html,json,env --exec \"npm run build\"", | |
"build-reload": "nodemon --signal SIGTERM build/index.js", | |
"dev-scripts": "nodemon --watch './scripts/**/*' -e ts,js,json --exec \"node scripts/buildScripts\"", | |
"build": "node scripts/build", | |
"docker-build": "docker build -t brt-api .", | |
"docker-run": "docker run -d -p 8080:8080 brt-api", | |
"schema": "node node_modules/api-data-tools/build/generateMigrations.js --config=config --schema-file=config/schema.json --migrations-dir=scripts/migrations", | |
"migrate": "npm run schema && db-migrate up --migrations-dir=scripts/migrations", | |
"drop-db": "node scripts/dropDb.js && rm -rf scripts/migrations/* && rm -rf config/.curr.schema.json && npm run migrate" | |
}, | |
"author": "rw3iss@gmail.com", | |
"license": "ISC", | |
"private": true, | |
"engines": { | |
"node": ">=12.0.0" | |
}, | |
"dependencies": { | |
"api-data-tools": "^1.1.34", | |
"bcryptjs": "^2.4.3", | |
"body-parser": "^1.19.0", | |
"dotenv": "^8.2.0", | |
"jsonwebtoken": "^8.5.1", | |
"redis": "^3.0.2" | |
}, | |
"devDependencies": { | |
"db-migrate": "^0.11.12", | |
"db-migrate-mysql": "^2.1.2", | |
"esbuild": "^0.10.1", | |
"nodemon": "^2.0.7" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment