-
Notifications
You must be signed in to change notification settings - Fork 47
/
package.json
51 lines (51 loc) · 2.83 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
{
"name": "OpenWISP-Website",
"version": "1.0.0",
"main": "Makefile",
"license": "UNLICENSED",
"scripts": {
"build:fontawesome": "mkdir -p theme/static/webfonts && cp -r node_modules/@fortawesome/fontawesome-free/webfonts/* theme/static/webfonts/",
"build:sass": "sass --load-path=node_modules css/theme.scss theme/static/css/theme.css",
"build:postcss": "postcss theme/static/css/theme.css --output theme/static/css/theme.min.css --map",
"build:css": "npm run build:fontawesome && npm run build:sass && npm run build:postcss",
"build:js": "babel js/*.js js/activity/feed.js --out-dir theme/static/js && concat js/activity/*.min.js theme/static/js/feed.js -o theme/static/js/activity.js && rm theme/static/js/feed.js",
"minify:activity": "terser theme/static/js/activity.js --config-file .terserrc -o theme/static/js/activity.min.js",
"minify:theme": "terser theme/static/js/theme.js --config-file .terserrc -o theme/static/js/theme.min.js",
"minify:dark-theme": "terser theme/static/js/dark-theme.js --config-file .terserrc -o theme/static/js/dark-theme.min.js",
"minify:faq": "terser theme/static/js/faq.js --config-file .terserrc -o theme/static/js/faq.min.js",
"minify:modal": "terser theme/static/js/modal.js --config-file .terserrc -o theme/static/js/modal.min.js",
"minify:top-feature": "terser theme/static/js/index-top-feature.js --config-file .terserrc -o theme/static/js/index-top-feature.min.js",
"minify": "npm run minify:activity && npm run minify:theme && npm run minify:dark-theme && npm run minify:faq && npm run minify:modal && npm run minify:top-feature",
"build": "npm run build:css && npm run build:js && npm run minify",
"serve": "http-server -a 0.0.0.0 -p 8080 ./output/",
"start": "concurrently \"npm run serve\" \"npm run build:sass\" \"npm run build:postcss\"",
"prettify": "prettier -w *.json *.js css/* js/* content/**/*.html content/**/*.inc theme/templates/**/*.html",
"prettier:check": "prettier -c *.json *.js css/* js/* content/**/*.html content/**/*.inc theme/templates/**/*.html"
},
"dependencies": {
"@babel/cli": "^7.24.8",
"@babel/core": "^7.25.2",
"@babel/preset-env": "^7.25.3",
"@fortawesome/fontawesome-free": "^6.5.2",
"@fullhuman/postcss-purgecss": "^6.0.0",
"babel-plugin-remove-template-literals-whitespace": "^1.0.4",
"bulma": "^1.0.2",
"concat-cli": "^4.0.0",
"concurrently": "^8.2.2",
"cssnano": "^7.0.2",
"http-server": "^14.1.1",
"postcss-cli": "^11.0.0",
"postcss-import": "^16.1.0",
"postcss-import-url": "^7.2.0",
"postcss-prune-var": "^1.1.2",
"postcss-scss": "^4.0.9",
"postcss-variable-compress": "^3.0.0",
"prettier": "^3.3.3",
"prettier-plugin-jinja-template": "^1.4.1",
"sass": "^1.77.4",
"terser": "^5.31.6"
},
"resolutions": {
"string-width": "4.2.3"
}
}