-
Notifications
You must be signed in to change notification settings - Fork 6
/
package.json
91 lines (91 loc) · 3.64 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
{
"name": "chaarts",
"version": "0.0.1",
"description": "Charts with HTML & CSS",
"repository": {
"type": "git",
"url": "[email protected]:ffoodd/chaarts.git"
},
"author": {
"name": "Gaël Poupard",
"url": "https://www.ffoodd.fr",
"email": "[email protected]"
},
"license": "MIT",
"keywords": [
"charts",
"accessibility",
"front-end",
"markup",
"HTML",
"CSS",
"progressive enhancement"
],
"style": "dist/chaarts.min.css",
"sass": "src/chaarts.scss",
"ignore": [
"node_modules"
],
"scripts": {
"pretest": "npm run build && npm run build:docs",
"test": "concurrently \"npm:test:*\"",
"test:html": "html-validate \"docs/*.html\"",
"test:a11y": "pa11y-ci 'docs/*.html' -c .pa11yci.json",
"prestart": "npm run build && npm run build:docs",
"start": "concurrently --kill-others \"npm:watch\" \"npm:browser:start\"",
"browser:start": "servor docs --browse --reload --secure",
"build": "sass src/chaarts.scss:dist/chaarts.css --style expanded --source-map",
"postbuild": "postcss dist/chaarts.css -o dist/chaarts.min.css -u autoprefixer cssnano -m",
"prebuild:docs": "shx rm -rf docs/*",
"build:docs": "concurrently \"npm:build:docs:*\"",
"postbuild:docs": "shx cp -r _site/{favicon.svg,humans.txt} docs/ && shx cp -r dist/chaarts.min.{css,css.map} docs/css",
"prebuild:docs:html": "sass _site/scss/examples:_site/templates/css/examples/ --style expanded --quiet --no-source-map",
"build:docs:html": "nunjucks *.njk -p _site/templates -o docs",
"prebuild:docs:css": "sass _site/scss/styles.scss:docs/css/styles.css _site/scss/print.scss:docs/css/print.css --load-path=./node_modules --style expanded --quiet --source-map",
"build:docs:css": "postcss docs/css/{styles,print}.css --dir docs/css/ --ext .min.css -u autoprefixer cssnano -m",
"postbuild:docs:css": "purgecss --config purgecss.config.js",
"build:docs:img": "imagemin _site/img/*.{png,jpg} --out-dir=docs/img --plugin=pngquant --plugin=mozjpeg --plugin=pngcrush --plugin=zopfli",
"prebuild:docs:js": "shx mkdir docs/js",
"build:docs:js": "terser _site/js/script.js -o docs/js/scripts.min.js -c -m --source-map && terser node_modules/sseeeedd/_site/js/prism.js -o docs/js/prism.min.js -c -m --source-map",
"watch": "concurrently --kill-others \"npm:watch:*\"",
"watch:html": "nodemon --watch _site/templates --ext njk --exec \"npm run build:docs:html\"",
"watch:css": "nodemon --watch _site/scss --ext scss --exec \"npm run build:docs:css\"",
"watch:src": "nodemon --watch src/ --ext scss --exec \"npm run build && shx cp -r dist/chaarts.min.{css,css.map} docs/css\"",
"watch:svg": "nodemon --watch _site/img --ext svg --exec \"npm run build:docs:svg\"",
"watch:js": "nodemon --watch _site/js --ext js --exec \"npm run build:docs:js\"",
"lint": "concurrently \"npm:lint:*\"",
"lint:scss": "stylelint src/**/*.scss",
"lint:docs:scss": "stylelint _site/scss/**/*.scss",
"lint:js": "eslint _site/js/**/*.js"
},
"devDependencies": {
"autoprefixer": "^10.4.16",
"concurrently": "^8.2.2",
"cssnano": "^6.0.1",
"eslint": "^8.52.0",
"html-validate": "^8.7.0",
"imagemin-cli": "^7.0.0",
"imagemin-mozjpeg": "^10.0.0",
"imagemin-pngcrush": "^7.0.0",
"imagemin-pngquant": "^9.0.2",
"imagemin-zopfli": "^7.0.0",
"nodemon": "^3.0.1",
"nunjucks-cli": "^1.0.0",
"pa11y-ci": "^3.0.1",
"pa11y-ci-reporter-html": "^6.0.2",
"postcss": "^8.4.31",
"postcss-cli": "^10.0.0",
"purgecss": "^5.0.0",
"sass": "^1.69.5",
"servor": "^4.0.2",
"shx": "^0.3.4",
"stylelint": "^15.11.0",
"stylelint-config-standard-scss": "^11.0.0",
"stylelint-order": "^6.0.3",
"stylelint-scss": "^5.3.0",
"terser": "^5.23.0"
},
"dependencies": {
"sseeeedd": "^0.4.8"
}
}