Skip to content

Commit

Permalink
ci: make package scripts more consistent
Browse files Browse the repository at this point in the history
  • Loading branch information
matmar10 committed Oct 24, 2021
1 parent 8f992af commit bb232cc
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
File renamed without changes.
16 changes: 9 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/matmar10/just-api.git"
"url": "https://github.com/matmar10/rest-ez.git"
},
"engines": {
"node": ">=7.10.0",
Expand All @@ -45,11 +45,13 @@
"dist:files": "npm run dist:files:json && npm run dist:files:css",
"dist:files:json": "mkdir -p src/schema/yaml && cp -r lib/schema/yaml/*.json src/schema/yaml/",
"dist:files:css": "mkdir -p src/reporters/html-src/assets && cp -r lib/reporters/html-src/assets/*.css src/reporters/html-src/assets/",
"clean": "rm -rf src",
"install_testapi": "cd test/api && npm install && cp db_original.json db.json",
"start_testapi": "npm run install_testapi && cd test/api && node server.js",
"clean_testlogs": "rm -rf test/cli/src/logs && mkdir test/cli/src/logs",
"test": "npm run clean_testlogs && ./node_modules/.bin/mocha --timeout 10000 test/cli/*.spec.js",
"clean": "npm run clean:src && npm run clean:test-logs",
"clean:src": "rm -rf src",
"clean:test-logs": "rm -rf test/cli/src/logs && mkdir test/cli/src/logs",
"test-api": "npm run test-api:install && npm run test-api:start",
"test-api:install": "cd test/api && npm install && cp db_original.json db.json",
"test-api:start": "npm run testapi:install && cd test/api && node server.js",
"test": "npm run clean:test-logs && mocha --timeout 10000 test/cli/*.spec.js",
"release": "release-it"
},
"dependencies": {
Expand Down Expand Up @@ -94,7 +96,7 @@
"release-it": "^14.10.1"
},
"bin": {
"just-api": "./bin/just-api"
"rest-ez": "./bin/rest-ez"
},
"files": [
"bin",
Expand Down

0 comments on commit bb232cc

Please sign in to comment.