-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathpackage.json
109 lines (109 loc) · 3.88 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
{
"name": "g5-component",
"version": "3.1.1",
"description": "Browserify Component Scaffold",
"author": "Greg Babula <[email protected]>",
"contributors": [
"Adam Pirani <[email protected]>",
"George Fu <[email protected]>"
],
"license": "ISC",
"repository": {
"type": "git",
"url": "https://github.com/MajorLeagueBaseball/g5-component"
},
"bugs": {
"url": "https://github.com/MajorLeagueBaseball/g5-component/issues"
},
"publishConfig": {
"registry": "https://registry.npmjs.org"
},
"keywords": [
"base",
"component",
"scaffold",
"browserify",
"MVVM",
"events"
],
"main": "src/scripts/g5-component.js",
"module": "src/scripts/g5-component.js",
"engines": {
"node": ">=8",
"npm": ">=5"
},
"browserify": {
"transform": [
[
"babelify",
{
"presets": [
"es2015"
]
}
],
[
"hbsfy",
{
"extensions": [
"html"
]
}
]
]
},
"scripts": {
"serve": "npx http-server-legacy -c-1 -p 9966",
"start": "npm run build && npm run serve",
"start-dev": "npm run watch & npm run serve",
"precommit": "npm run lint; npm test",
"compress-images": "imagemin --progressive src/images/* src/images/build",
"postcompress-images": "echo 'imagemin complete'",
"build-js": "npx browserify src/scripts/g5-component.js --s 'g5-component' | npx uglifyjs --mangle --compress drop_console,drop_debugger,dead_code,unused > dist/g5-component.min.js",
"build-js-dev": "browserify src/scripts/g5-component.js --s 'g5-component' > dist/g5-component.js",
"build-js-all": "npm run build-js-dev && npm run build-js",
"build-css": "npx lessc --include-path=node_modules/bootstrap/less:src/styles src/styles/component.less > dist/g5-component.css",
"postbuild-css": "npm run minify-css && npm run gzip-css",
"build": "npm run build-js-all && npm run build-css && npm run compress-images",
"doc": "npx esdoc src/scripts",
"prebuild": "echo 'Running all builds...'",
"postbuild": "npm run disk-usage; echo 'Builds are ready!'",
"watch-js": "npx nodemon --debug -e js,html --watch src/scripts/ --watch src/template/ --exec 'npm run build-js-dev'",
"watch-css": "npx nodemon -e less -x 'npm run build-css'",
"minify-css": "cleancss --source-map -d -o dist/g5-component-min.css dist/g5-component.css",
"gzip-css": "gzip -c -f -9 dist/g5-component-min.css > dist/g5-component-min.css.gz",
"watch": "npm run watch-js & npm run watch-css",
"test": "npx mocha --require babel-core/register test/*",
"lint": "npx eslint src/scripts test",
"disk-usage": "du -sh ./dist/*",
"prelint": "echo 'Checking code via ESLint...'",
"build-js-composition-example": "browserify example/src/composition/g5-component-composition.js --s 'g5-component' > example/dist/g5-component-composition.js",
"build-js-simple-example": "browserify example/src/simple/g5-component-simple.js --s 'g5-component' > example/dist/g5-component-simple.js",
"build-examples": "npm run build-js-composition-example; npm run build-js-simple-example; du -sh ./example/dist/*",
"watch-examples": "npx nodemon --debug -e js,html --watch src/scripts/ --watch example/src/ --exec 'npm run build-examples'"
},
"dependencies": {
"bootstrap": "^3.3.7",
"handlebars": "^4.0.11",
"hbsfy": "^2.8.1",
"xmlhttprequest": "^1.8.0"
},
"devDependencies": {
"babel-core": "^6.26.0",
"babel-preset-es2015": "^6.24.1",
"babelify": "^7.3.0",
"browserify": "^14.5.0",
"clean-css": "^4.1.9",
"clean-css-cli": "^4.1.10",
"esdoc": "^1.0.4",
"esdoc-standard-plugin": "^1.0.0",
"eslint": "^4.11.0",
"husky": "^0.14.3",
"imagemin": "^5.3.1",
"imagemin-cli": "^3.0.0",
"less": "^2.7.3",
"mocha": "^4.0.1",
"nodemon": "^1.12.1",
"uglify-js": "^2.8.29"
}
}