-
Notifications
You must be signed in to change notification settings - Fork 108
/
package.json
61 lines (61 loc) · 2.12 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
{
"name": "magic-string",
"description": "Modify strings, generate sourcemaps",
"author": "Rich Harris",
"version": "0.20.0",
"repository": "https://github.com/rich-harris/magic-string",
"main": "dist/magic-string.cjs.js",
"module": "dist/magic-string.es.js",
"jsnext:main": "dist/magic-string.es.js",
"typings": "index.d.ts",
"license": "MIT",
"dependencies": {
"vlq": "^0.2.1"
},
"devDependencies": {
"buble": "^0.14.0",
"codecov.io": "^0.1.6",
"console-group": "^0.3.2",
"eslint": "^3.7.1",
"istanbul": "^0.4.5",
"mocha": "^3.1.0",
"remap-istanbul": "^0.6.4",
"resolve": "^1.1.7",
"rollup": "^0.36.1",
"rollup-plugin-buble": "^0.14.0",
"rollup-plugin-node-resolve": "^2.0.0",
"rollup-plugin-replace": "^1.1.1",
"source-map": "^0.5.6",
"source-map-support": "^0.4.3"
},
"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/*.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",
"build:es": "rollup -c --environment ES",
"build:umd": "rollup -c --environment DEPS",
"build": " npm run build:cjs && npm run build:es && npm run build:umd",
"prepublish": "rm -rf dist && npm test && npm run build:es && npm run build:umd",
"lint": "eslint src test",
"watch:cjs": "rollup -w -c",
"watch:es": "rollup -w -c --environment ES",
"watch:umd": "rollup -w -c --environment DEPS",
"watch": "npm run watch:es"
},
"files": [
"src/*",
"dist/*",
"README.md"
]
}