-
Notifications
You must be signed in to change notification settings - Fork 2
/
package.json
executable file
·65 lines (65 loc) · 2.86 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
{
"title": "Techspardha2017",
"version": "1.0.0",
"description": "Front-end of the Techspardha 2017 website.",
"contributors": [
{
"name": "Divya Mamgai",
"email": "[email protected]",
"url": "https://github.com/divyamamgai"
},
{
"name": "Kaushik Sarma",
"email": "[email protected]",
"url": "https://github.com/kaushikSarma"
}
],
"main": "index.js",
"dependencies": {
"jquery": "latest",
"gsap": "latest",
"bootstrap": "latest"
},
"devDependencies": {
"jshint": "latest",
"fuse": "latest",
"uglify-js": "latest",
"stylus": "latest",
"nib": "latest",
"clean-css": "latest",
"html-minifier-cli": "latest",
"rimraf": "latest",
"replace": "latest",
"rename-files-cli": "latest"
},
"scripts": {
"prebuild:js": "jshint src/js",
"build:js": "fuse -i src/js/Main.js -o dist/resources/js/Main.js",
"build:css": "stylus -u nib src/styl/Main.styl -o dist/resources/css/Main.css",
"build": "npm run build:js && npm run build:css",
"predeploy": "npm run clean",
"deploy": "cp -r dist/* deploy/",
"postdeploy": "npm run minifyJS && npm run minifyCSS && npm run cdnJS && npm run cdnCSS",
"minifyJS": "uglifyjs deploy/resources/js/Main.js > deploy/resources/js/Main.min.js -mc && rimraf deploy/resources/js/Main.js && npm run sourceFixJS",
"sourceFixJS": "replace \"resources/js/Main.js\" \"resources/js/Main.min.js\" deploy -r --include=\"*.html\"",
"cdnJS": "npm run jQueryCDN && npm run TweenMaxCDN",
"jQueryCDN": "replace \"../node_modules/jquery/dist/jquery.min.js\" \"https://code.jquery.com/jquery-3.1.1.min.js\" deploy -r --include=\"*.html\"",
"TweenMaxCDN": "replace \"../node_modules/gsap/src/minified/TweenMax.min.js\" \"https://cdnjs.cloudflare.com/ajax/libs/gsap/1.19.0/TweenMax.min.js\" deploy -r --include=\"*.html\"",
"minifyCSS": "cleancss -o deploy/resources/css/Main.min.css deploy/resources/css/Main.css && rimraf deploy/resources/css/Main.css && npm run sourceFixCSS",
"sourceFixCSS": "replace \"resources/css/Main.css\" \"resources/css/Main.min.css\" deploy -r --include=\"*.html\"",
"cdnCSS": "npm run bootstrapCDN",
"bootstrapCDN": "replace \"../node_modules/bootstrap/dist/css/bootstrap.min.css\" \"https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css\" deploy -r --include=\"*.html\"",
"minifyHTML": "htmlmin -o deploy/index.min.html deploy/index.html && rimraf deploy/index.html && rename-files \"index.min.html\" \"index.html\" --path=deploy/",
"clean": "rimraf deploy/ && mkdir deploy"
},
"repository": {
"type": "git",
"url": "git+https://github.com/gawdsnitk/Techspardha2017.git"
},
"author": "",
"license": "MIT",
"bugs": {
"url": "https://github.com/gawdsnitk/Techspardha2017/issues"
},
"homepage": "https://github.com/gawdsnitk/Techspardha2017#readme"
}