-
Notifications
You must be signed in to change notification settings - Fork 108
/
package.json
55 lines (55 loc) · 1.99 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
{
"name": "magic-string",
"description": "Modify strings, generate sourcemaps",
"author": "Rich Harris",
"version": "0.10.0",
"repository": "https://github.com/rich-harris/magic-string",
"main": "dist/magic-string.cjs.js",
"jsnext:main": "dist/magic-string.es6.js",
"license": "MIT",
"dependencies": {
"vlq": "^0.2.0"
},
"devDependencies": {
"babel-preset-es2015-rollup": "^1.0.0",
"codecov.io": "^0.1.6",
"console-group": "^0.1.2",
"es6-promise": "^3.0.2",
"eslint": "^1.10.3",
"istanbul": "^0.4.0",
"mocha": "^2.1.0",
"remap-istanbul": "^0.5.1",
"resolve": "^1.1.0",
"rollup": "^0.22.0",
"rollup-plugin-babel": "^2.2.0",
"rollup-plugin-npm": "^1.1.0",
"source-map": "^0.5.3",
"source-map-support": "^0.4.0"
},
"keywords": [
"string",
"string manipulation",
"sourcemap",
"templating",
"transpilation"
],
"scripts": {
"test": "mocha",
"pretest": "npm run build:cjs",
"pretest-coverage": "npm run build:cjs",
"test-coverage": "rm -rf coverage/* && istanbul cover --report json node_modules/.bin/_mocha -- -u exports -R spec test/index.js",
"posttest-coverage": "remap-istanbul -i coverage/coverage-final.json -o coverage/coverage-remapped.json -b dist && remap-istanbul -i coverage/coverage-final.json -o coverage/coverage-remapped.lcov -t lcovonly -b dist && remap-istanbul -i coverage/coverage-final.json -o coverage/coverage-remapped -t html -b dist",
"ci": "npm run test-coverage && codecov < coverage/coverage-remapped.lcov",
"build:cjs": "rollup -c -f cjs -o dist/magic-string.cjs.js",
"build:es6": "rollup -c -f es6 -o dist/magic-string.es6.js",
"build:umd": "export DEPS=true && rollup -c -f umd -o dist/magic-string.umd.js",
"build": " npm run build:cjs && npm run build:es6 && npm run build:umd",
"prepublish": "rm -rf dist && npm test && npm run build:es6 && npm run build:umd",
"lint": "eslint src"
},
"files": [
"src/*",
"dist/*",
"README.md"
]
}