forked from iconic/SVGInjector
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathpackage.json
executable file
·62 lines (62 loc) · 2.27 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
{
"name": "svg-injector-2",
"description": "forked version of iconic/SVGInjector, extended by the ability to use spritesheets and support for angularjs",
"version": "2.1.5",
"author": "",
"contributors": [
{
"name": "Iconic",
"email": "[email protected]",
"url": "https://useiconic.com/"
},
{
"name": "Florian Bacher",
"email": "[email protected]"
}
],
"main": "dist/svg-injector.min.js",
"homepage": "https://github.com/flobacher/SVGInjector2",
"repository": {
"type": "git",
"url": "https://github.com/flobacher/SVGInjector2.git"
},
"keywords": [
"SVG",
"Scalable Vector Graphics",
"SVG injector",
"images",
"img",
"html",
"DOM"
],
"license": "MIT",
"devDependencies": {
"browser-sync": "^2.18.6",
"github-changes": "^2.0.3",
"jshint": "^2.5.0",
"parallelshell": "^3.0.1",
"replace": "^0.3.0",
"uglify-js": "^2.4.13",
"watch": "^1.0.1"
},
"scripts": {
"// - end-user scripts ------- ": "",
"start": "parallelshell \"npm run browser-sync\" \"npm run watch\"",
"?release": "increase the version, triggers the version script and commits with the version as message",
"release": "npm version patch",
"push": "npm publish",
"// -------------------------": "",
"// - internal scripts ------": "",
"update-version-comment": "replace '\\$\\{VERSION\\}' $npm_package_version svg-injector.js ./dist/svg-injector.min.js",
"test": "jshint ./src/svg-injector.js",
"copy": "uglifyjs ./src/svg-injector.js -b --comments --output svg-injector.js",
"minify": "uglifyjs ./src/svg-injector.js --stats --compress drop_console=true --mangle --comments --output ./dist/svg-injector.min.js --source-map ./dist/svg-injector.map.js --source-map-include-sources",
"build": "npm run copy && npm run minify && npm run update-version-comment",
"watch": "watch \"npm run build\" ./src",
"changelog": "github-changes -o flobacher -r SVGInjector2 --use-commit-body --auth",
"add": "git add .",
"version": "npm run changelog && npm run test && npm run build && npm run add",
"prepush": "git push && git push --tags",
"browser-sync": "browser-sync start -s . -f ./dist/*.js --index --directory --startPath ./examples/index.html"
}
}