-
Notifications
You must be signed in to change notification settings - Fork 6
/
package.json
43 lines (43 loc) · 1.61 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
{
"name": "viz-datagrid",
"version": "1.0.0",
"description": "",
"homepage": "https://github.com/ocha-dap/viz-datagrid.git",
"main": " ",
"scripts": {
"start": "http-server ./dist -c-1 -p 3000",
"scss": "sass src/scss/styles.scss:dist/css/styles.css",
"watch:data": "onchange 'src/data/*' -- npm run build:data",
"watch:html": "onchange 'src/*.html' -- npm run build:html",
"watch:css": "onchange 'src/scss/*.scss' -- npm run build:css",
"watch:js": "onchange 'src/js/*.js' -- npm run build:js",
"watch:assets": "onchange 'src/assets/**/*.*' -- npm run build:assets",
"watch": "npm-run-all --parallel watch:*",
"concat:js": "mkdir -p dist/js && concat -o dist/js/bundle.js ./app.js src/js/*.js",
"build:data": "mkdir -p dist/data/ && cp src/data/* dist/data/",
"build:html": "mkdir -p dist && cp src/*.html dist/",
"build:css": "sass src/scss/styles.scss:dist/css/styles.css",
"build:js": "npm run concat:js && browserify -t browserify-css dist/js/bundle.js | uglifyjs > dist/js/bundle.min.js",
"build:assets": "mkdir -p dist/assets && cp -r src/assets/ dist/assets/",
"prebuild": "rm -rf ./dist",
"build": "npm-run-all --parallel build:*",
"predeploy": "npm run build",
"deploy": "gh-pages -d dist"
},
"author": "Erika Wei",
"license": "ISC",
"dependencies": {
"browserify": "^17",
"browserify-css": "^0.15.0",
"concat": "^1.0.3",
"gh-pages": "^3.2.3",
"http-server": "^14",
"jquery": "^3.6.0",
"npm-run-all": "^4.1.5",
"onchange": "^6.0.0",
"uglify-js": "^3.14.3"
},
"devDependencies": {
"sass": "^1.83.0"
}
}