forked from fat/zoom.js
-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathpackage.json
39 lines (39 loc) · 1.41 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
{
"name": "zoom-vanilla.js",
"version": "2.0.6",
"description": "Medium's image zoom in vanilla JS (no jQuery)",
"main": "dist/zoom-vanilla.min.js",
"repository": {
"type": "git",
"url": "[email protected]:spinningarrow/zoom-vanilla.js.git"
},
"keywords": [
"zoom",
"vanilla",
"vanilla-js",
"image"
],
"author": "spinningarrow <[email protected]>",
"license": "MIT",
"bugs": {
"url": "https://github.com/spinningarrow/zoom-vanilla.js/issues"
},
"homepage": "https://github.com/spinningarrow/zoom-vanilla.js",
"devDependencies": {
"autoprefixer": "^6.7.7",
"http-server": "^0.9.0",
"postcss-cli": "^3.0.0",
"uglify-js": "^2.7.3",
"watch": "^0.19.2"
},
"scripts": {
"_echo_done": "echo [`date`] \"\\033[1;32mzoom-vanilla.min.js rebuilt\\033[0m\"",
"compress": "uglifyjs --compress --mangle --source-map=dist/zoom-vanilla.min.js.map --source-map-url='/dist/zoom-vanilla.min.js.map' --source-map-root='/' --preamble=\"// $npm_package_name - $npm_package_version ($npm_package_homepage)\" js/zoom-vanilla.js > dist/zoom-vanilla.min.js",
"clean": "rm -rf dist/*",
"build": "npm run clean && npm run compress && npm run css",
"css": "postcss css/zoom.css --use autoprefixer -d dist/",
"start": "http-server",
"version": "npm run build && git add -u .",
"watch": "watch 'npm run compress && npm run _echo_done' js --ignoreDotFiles"
}
}