-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
114 lines (114 loc) · 4.76 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
{
"name": "seng-device-state-tracker",
"version": "1.1.4",
"description": "DeviceStateTracker is a utility class that tracks which media query is currently active using the matchMedia API.",
"main": "index.js",
"scripts": {
"prepublish": "npm run build:npm",
"test": "npm-run-all test:*",
"test:unit": "karma start --single-run --browsers PhantomJS",
"test:unit:dev": "karma start karma.conf.dev.js",
"validate": "npm-run-all -p lint test:unit -s validate:coverage",
"validate:coverage": "istanbul check-coverage --statement 1 --branches 1 --functions 1 --lines 1",
"lint": "npm-run-all lint:*",
"lint:ts": "tslint -c tslint.json \"src/**/*.ts\"",
"clean": "npm-run-all clean:*",
"clean:test": "shx rm -rf coverage",
"clean:npm": "shx rm -rf lib npm index.js index.d.ts",
"clean:dist": "shx rm -rf dist \"seng-*.@(zip|tar.gz)\"",
"compile": "npm-run-all compile:**",
"compile:npm": "npm run clean:npm && tsc -p ./ -d --outDir ./npm && shx mv \"./npm/*\" ./ && shx rm -rf ./npm",
"compile:dist:typescript:es6": "tsc -p ./ -t es6 -m es6 --outDir ./dist/es6/",
"compile:dist:webpack": "node script/webpack.js",
"doc": "npm-run-all -p doc:*",
"doc:typedoc": "typedoc --out docs/ src/ --mode file",
"generate": "npm-run-all clean compile test:unit doc",
"build": "npm-run-all clean compile",
"dev": "node script/webpack-dev.js",
"build:npm": "npm-run-all test compile:npm",
"build:dist": "npm-run-all clean:dist compile:dist:**"
},
"scriptsComment": {
"test": "Placeholder for all types of tests",
"test:unit": "Runs unit tests with Karma in PhantomJS",
"test:unit:dev": "Runs unit tests with Karma in PhantomJS (with the watch mode)",
"validate": "Runs all scripts that validate if the contents of this repos is correct",
"validate:coverage": "Checks if the code coverage results are above a defined minimun",
"lint": "Placeholder for all types if linting checks",
"lint:ts": "Lints the source files using tslint",
"clean": "Placeholder for all clean tasks, resets the checkout to a clean state",
"clean:test": "Remove all test related output",
"clean:npm": "Remove all npm related output",
"clean:dist": "Remove all dist related output",
"compile": "Placeholder for all tasks that compile code",
"compile:npm": "Compiles the code for npm. The output needs to end up in the current directory, but if we use that as outputPath in tsconfig.json it disables file-globbing for the includes array. That's why we are outputting it in a npm folder, and then moving it the this folder.",
"compile:dist:typescript:es6": "Compiles typescript to es6 code in the dist folder",
"compile:dist:webpack": "Compiles all dist bundles with webpack",
"doc": "Placeholder for all doc scripts",
"doc:typedoc": "Runs typedoc",
"generate": "Placeholder for all scripts that generate something (code, test, doc, etc)",
"build": "Cleans and compiles everything",
"dev": "Compiles browser dist bundle with webpack and starts server",
"build:npm": "Prepares the checkout for an npm publish",
"build:dist": "Prepares the checkout for travis deployments to github and s3"
},
"pre-push": [
"validate"
],
"author": "Jesse Linthorst <jesse@mediamonks.com> (jesse-mm)",
"homepage": "https://www.mediamonks.com/",
"license": "MIT",
"keywords": [
"seng",
"mediamonks",
"matchmedia"
],
"bugs": {
"url": "https://github.com/mediamonks/seng-device-state-tracker/issues"
},
"repository": {
"type": "git",
"url": "https://github.com/mediamonks/seng-device-state-tracker.git"
},
"devDependencies": {
"@types/chai": "^4.0.4",
"@types/mocha": "^2.2.43",
"@types/webpack": "^3.0.13",
"archiver": "^2.1.0",
"awesome-typescript-loader": "3.2.3",
"chai": "^4.1.2",
"coveralls": "^3.0.0",
"istanbul": "^0.4.3",
"istanbul-instrumenter-loader": "^3.0.0",
"karma": "^1.7.1",
"karma-chai": "^0.1.0",
"karma-coverage": "1.1.1",
"karma-coverage-istanbul-reporter": "^1.3.0",
"karma-mocha": "^1.1.1",
"karma-mocha-reporter": "^2.2.0",
"karma-phantomjs-launcher": "1.0.4",
"karma-source-map-support": "^1.1.0",
"karma-sourcemap-loader": "^0.3.7",
"karma-webpack": "^2.0.5",
"lodash": "^4.17.4",
"marked": "^0.3.5",
"match-media-mock": "^0.1.0",
"mocha": "^4.0.1",
"npm-run-all": "^4.1.1",
"phantomjs-prebuilt": "^2.1.15",
"pre-push": "^0.1.1",
"shx": "^0.2.2",
"tslint": "^5.8.0",
"tslint-config-airbnb": "^5.3.0",
"tsutils": "^2.12.1",
"typedoc": "^0.9.0",
"typescript": "^2.5.3",
"webpack": "^3.8.1",
"webpack-dev-server": "^2.9.3",
"webpack-system-register": "^1.3.2"
},
"dependencies": {
"seng-event": "^1.2.3",
"tslib": "^1.8.0"
}
}