This repository has been archived by the owner on Mar 26, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
49 lines (49 loc) · 2.49 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
{
"name": "site-montdenis",
"version": "0.0.4",
"description": "Site Pension et Elevage de Montdenis",
"main": "dist/index.html",
"scripts": {
"clean": "rm -rf ./dist && rm -rf ./tmp && mkdir ./tmp && mkdir -p ./dist/img",
"copy:robots": "cp ./src/robots.txt ./dist/",
"copy:favicon": "cp ./src/favicon/* ./dist/",
"copy:img": "cp ./src/img/* ./dist/img/",
"copy": "npm run copy:robots && npm run copy:favicon && npm run copy:img",
"style-css": "stylelint \"src/**/*.css\"",
"style-js": "eslint --fix src/js/nav.js",
"style": "npm run style-css && npm run style-js",
"js": "cat ./src/js/*.js | uglifyjs -c > ./tmp/index.js",
"css": "cat ./src/css/style.css | cleancss -O2 -o ./tmp/style.css",
"mustache": "./node_modules/js-index-builder/index.js -t \"src/html/**/*.html\" -b $(git rev-parse --short HEAD) -p \"src/partials/*.html\" -j ./tmp/index.js -c ./tmp/style.css -s ./src/img/logo_404.svg -o ./tmp",
"html-minify": "html-minifier --config-file ./html-minifier.json --input-dir ./tmp --output-dir ./dist",
"html": "npm run mustache && npm run html-minify",
"structure": "./node_modules/js-index-builder/sitemap.js -j \"src/html/**/*.json\" -s ./dist/sitemap.xml",
"build": "npm run clean && npm run style && npm run copy && npm run js && npm run css && npm run structure && npm run html",
"prestart": "go install github.com/ViBiOh/viws/cmd/viws-light@latest",
"start": "viws-light -directory ${INIT_CWD}/dist -csp \"default-src 'self'; base-uri 'self'; script-src 'self' 'unsafe-inline' *.mapbox.com; style-src 'self' 'unsafe-inline' cdn.jsdelivr.net/npm/normalize.css@8.0.0/ *.mapbox.com; img-src 'self' data: blob: ; child-src 'self' blob:; worker-src 'self' blob:; connect-src 'self' *.mapbox.com\" -headers X-UA-Compatible:ie=edge~content-language:fr"
},
"repository": {
"type": "git",
"url": "git://github.com/ViBiOh/site-montdenis.git"
},
"keywords": [],
"author": "Vincent Boutour",
"license": "MIT",
"bugs": {
"url": "https://github.com/ViBiOh/site-montdenis/issues"
},
"homepage": "https://github.com/ViBiOh/site-montdenis",
"devDependencies": {
"clean-css-cli": "5.6.2",
"eslint": "8.36.0",
"eslint-config-airbnb": "19.0.4",
"eslint-config-prettier": "8.8.0",
"eslint-plugin-import": "2.27.5",
"html-minifier": "4.0.0",
"js-index-builder": "ViBiOh/js-index-builder#main",
"stylelint": "15.3.0",
"stylelint-config-standard": "31.0.0",
"uglify-es": "3.3.9"
},
"dependencies": {}
}