Skip to content

Commit bb232cc

Browse files
committed
ci: make package scripts more consistent
1 parent 8f992af commit bb232cc

2 files changed

Lines changed: 9 additions & 7 deletions

File tree

File renamed without changes.

package.json

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"license": "MIT",
3131
"repository": {
3232
"type": "git",
33-
"url": "https://github.com/matmar10/just-api.git"
33+
"url": "https://github.com/matmar10/rest-ez.git"
3434
},
3535
"engines": {
3636
"node": ">=7.10.0",
@@ -45,11 +45,13 @@
4545
"dist:files": "npm run dist:files:json && npm run dist:files:css",
4646
"dist:files:json": "mkdir -p src/schema/yaml && cp -r lib/schema/yaml/*.json src/schema/yaml/",
4747
"dist:files:css": "mkdir -p src/reporters/html-src/assets && cp -r lib/reporters/html-src/assets/*.css src/reporters/html-src/assets/",
48-
"clean": "rm -rf src",
49-
"install_testapi": "cd test/api && npm install && cp db_original.json db.json",
50-
"start_testapi": "npm run install_testapi && cd test/api && node server.js",
51-
"clean_testlogs": "rm -rf test/cli/src/logs && mkdir test/cli/src/logs",
52-
"test": "npm run clean_testlogs && ./node_modules/.bin/mocha --timeout 10000 test/cli/*.spec.js",
48+
"clean": "npm run clean:src && npm run clean:test-logs",
49+
"clean:src": "rm -rf src",
50+
"clean:test-logs": "rm -rf test/cli/src/logs && mkdir test/cli/src/logs",
51+
"test-api": "npm run test-api:install && npm run test-api:start",
52+
"test-api:install": "cd test/api && npm install && cp db_original.json db.json",
53+
"test-api:start": "npm run testapi:install && cd test/api && node server.js",
54+
"test": "npm run clean:test-logs && mocha --timeout 10000 test/cli/*.spec.js",
5355
"release": "release-it"
5456
},
5557
"dependencies": {
@@ -94,7 +96,7 @@
9496
"release-it": "^14.10.1"
9597
},
9698
"bin": {
97-
"just-api": "./bin/just-api"
99+
"rest-ez": "./bin/rest-ez"
98100
},
99101
"files": [
100102
"bin",

0 commit comments

Comments
 (0)