-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
93 lines (93 loc) · 3.3 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
{
"name": "dota-hero-calculator",
"version": "1.6.1",
"description": "Dota 2 Hero Calculator",
"main": "src/js/index.js",
"scripts": {
"browserify": "node scripts/browserify.js",
"uglify": "node scripts/uglify.js",
"sass": "node-sass src/scss/app.scss www/app.css",
"preprocess:html": "node scripts/preprocess.js",
"data": "cp -r node_modules/dota-datafiles/dist/. www/data/",
"chmod": "node scripts/chmod.js",
"clean": "rm -rf dist/*",
"build:js": "npm run browserify -- development",
"build:css": "npm run sass",
"build:html": "npm run render && node scripts/preprocess.js",
"build": "npm run build:js && npm run build:css && npm run build:html && npm run data",
"watch:js": "node scripts/browserify.js -- development watch",
"watch:css": "nodemon -e scss --watch src/scss -x \"npm run sass\"",
"watch:j2": "nodemon -e j2 --watch src/template -x \"npm run render && npm run preprocess:html\"",
"watch": "npm run watch:js & npm run watch:css & npm run watch:j2",
"dist:js": "npm run browserify -- production && npm run uglify",
"dist:css": "npm run sass && cleancss www/app.css --skip-rebase -o dist/app-`git rev-parse --short HEAD`.min.css",
"dist:html": "npm run render && node scripts/preprocess.js -- production",
"dist:img": "mkdir -p dist/img && imagemin www/img/* --out-dir=dist/img",
"dist:copy": "cp www/*.php dist/ && cp www/*.txt dist/ && npm run data && npm run chmod",
"dist": "mkdir -p dist && npm run clean && npm run dist:js && npm run dist:css && npm run dist:html && npm run dist:img && npm run dist:copy",
"rollbar:sourcemap": "gulp rollbar:sourcemap",
"rollbar:deploy": "node scripts/rollbar_deploy.js",
"rollbar": "npm run rollbar:sourcemap && npm run rollbar:deploy -- production",
"deploy": "node scripts/deploy.js",
"deploy:prod": "npm run deploy -- production && npm run rollbar",
"render": "python scripts/render.py",
"test": "mocha"
},
"repository": {
"type": "git",
"url": "git+https://github.com/devilesk/dota-hero-calculator.git"
},
"author": "devilesk",
"license": "ISC",
"bugs": {
"url": "https://github.com/devilesk/dota-hero-calculator/issues"
},
"homepage": "https://github.com/devilesk/dota-hero-calculator#readme",
"devDependencies": {
"brfs": "^2.0.1",
"browserify": "^16.2.2",
"browserify-replace": "^0.9.3",
"browserify-shim": "^3.8.12",
"chmod": "^0.2.1",
"clean-css": "^4.2.1",
"clean-css-cli": "^4.2.1",
"del": "^3.0.0",
"exorcist": "^1.0.1",
"git-rev-sync": "^1.12.0",
"glob": "^7.1.3",
"gulp": "^3.9.1",
"gulp-rollbar": "^0.1.5",
"gulp-sourcemaps": "^2.6.4",
"imagemin-cli": "^3.0.0",
"node-sass": "^4.9.3",
"nodemon": "^1.18.4",
"preprocess": "^3.1.0",
"replace": "^1.0.0",
"request": "^2.88.0",
"uglify-js": "^3.4.9",
"watchify": "^3.11.0"
},
"dependencies": {
"chart.js": "^1.1.1",
"dota-datafiles": "*",
"jquery": "^3.3.1",
"jquery-ui": "^1.12.0",
"knockout": "^3.4.0",
"knockout-mapping": "^2.6.0",
"rollbar": "^2.4.5"
},
"browserify": {
"transform": [
"browserify-shim"
]
},
"browserify-shim": {
"knockout": "global:ko",
"jquery": "global:$",
"jquery-ui": {
"depends": [
"jquery:jQuery"
]
}
}
}