UNPKG

3.88 kBJSONView Raw
1{
2 "name": "start-server-and-test",
3 "description": "Starts server, waits for URL, then runs test command; when the tests end, shuts down server",
4 "version": "1.7.2",
5 "author": "Gleb Bahmutov <gleb.bahmutov@gmail.com>",
6 "bugs": "https://github.com/bahmutov/start-server-and-test/issues",
7 "bin": {
8 "start-server-and-test": "bin/start.js",
9 "server-test": "bin/start.js",
10 "start-test": "bin/start.js"
11 },
12 "config": {
13 "pre-git": {
14 "commit-msg": "simple",
15 "pre-commit": [
16 "npm run deps",
17 "npm test",
18 "npm run ban"
19 ],
20 "pre-push": [
21 "npm run unused-deps",
22 "npm run secure",
23 "npm run license",
24 "npm run ban -- --all",
25 "npm run size"
26 ],
27 "post-commit": [],
28 "post-merge": []
29 }
30 },
31 "engines": {
32 "node": ">=6"
33 },
34 "files": [
35 "bin/*.js",
36 "src/*.js",
37 "!src/*-spec.js"
38 ],
39 "homepage": "https://github.com/bahmutov/start-server-and-test#readme",
40 "keywords": [
41 "ci",
42 "parallel",
43 "server",
44 "start",
45 "test",
46 "utility",
47 "wait"
48 ],
49 "license": "MIT",
50 "main": "src/",
51 "private": false,
52 "publishConfig": {
53 "registry": "http://registry.npmjs.org/"
54 },
55 "repository": {
56 "type": "git",
57 "url": "https://github.com/bahmutov/start-server-and-test.git"
58 },
59 "scripts": {
60 "ban": "ban",
61 "deps": "deps-ok && dependency-check --no-dev .",
62 "issues": "git-issues",
63 "license": "license-checker --production --onlyunknown --csv",
64 "lint": "standard --verbose --fix src/*.js bin/*.js",
65 "prelint": "npm run pretty",
66 "pretest": "npm run lint",
67 "pretty": "prettier-standard 'src/*.js' 'bin/*.js'",
68 "secure": "nsp check",
69 "size": "t=\"$(npm pack .)\"; wc -c \"${t}\"; tar tvf \"${t}\"; rm \"${t}\";",
70 "test": "npm run unit",
71 "unit": "mocha src/*-spec.js",
72 "unused-deps": "dependency-check --unused --no-dev .",
73 "semantic-release": "semantic-release",
74 "start": "node test/server.js",
75 "start-with-child": "node test/server-as-child.js",
76 "start-multiple": "node test/multiple-servers.js",
77 "start-https": "node test/https-server.js",
78 "start-fail": "node test/server-fail.js",
79 "test2": "curl http://127.0.0.1:9000",
80 "test3": "curl http://127.0.0.1:9000 && curl http://127.0.0.1:9001",
81 "test4": "curl --insecure https://127.0.0.1:9000",
82 "demo": "node bin/start.js http://127.0.0.1:9000",
83 "demo2": "node bin/start.js start http://127.0.0.1:9000 test2",
84 "demo3": "node bin/start.js start-with-child http://127.0.0.1:9000 test",
85 "demo4": "node bin/start.js 9000",
86 "demo5": "node bin/start.js start-with-child 9000",
87 "demo6": "node bin/start.js :9000",
88 "demo7": "node bin/start.js :9000 test2",
89 "demo8": "node bin/start.js start-multiple \":9000|:9001\" test3",
90 "demo9": "node bin/start.js start-https \"https://127.0.0.1:9000\" test4",
91 "demo10": "node bin/start.js start-fail http://127.0.0.1:9000 test",
92 "travis-deploy-once": "travis-deploy-once"
93 },
94 "devDependencies": {
95 "ban-sensitive-files": "1.9.2",
96 "dependency-check": "3.2.0",
97 "deps-ok": "1.4.1",
98 "dont-crack": "1.2.1",
99 "git-issues": "1.3.1",
100 "license-checker": "20.2.0",
101 "mocha": "5.2.0",
102 "nsp": "3.2.1",
103 "pre-git": "3.17.1",
104 "prettier-standard": "8.0.1",
105 "semantic-release": "15.9.5",
106 "simple-commit-message": "4.0.3",
107 "standard": "11.0.1",
108 "travis-deploy-once": "5.0.2"
109 },
110 "dependencies": {
111 "bluebird": "3.5.2",
112 "check-more-types": "2.24.0",
113 "debug": "3.1.0",
114 "execa": "0.10.0",
115 "lazy-ass": "1.6.0",
116 "ps-tree": "1.1.0",
117 "wait-on": "3.0.1"
118 },
119 "release": {
120 "analyzeCommits": {
121 "preset": "angular",
122 "releaseRules": [
123 {
124 "type": "break",
125 "release": "major"
126 }
127 ]
128 }
129 }
130}