forked from canonical/vanilla-framework
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
83 lines (83 loc) · 3.54 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
{
"name": "vanilla-framework",
"version": "4.17.0",
"author": {
"email": "[email protected]",
"name": "Canonical Webteam"
},
"bugs": {
"email": "[email protected]",
"url": "https://github.com/canonical/vanilla-framework/issues"
},
"description": "A simple, extendable CSS framework.",
"homepage": "https://vanillaframework.io/",
"keywords": [
"ubuntu",
"vanilla",
"framework",
"CSS",
"SASS",
"SCSS",
"mixin",
"module"
],
"license": "LGPL-3.0",
"repository": {
"type": "git",
"url": "https://github.com/canonical/vanilla-framework"
},
"scripts": {
"start": "yarn build && yarn serve",
"build": "yarn build-scss && yarn build-js && yarn build-class-references",
"build-tokens": "((style-dictionary build --verbose --config ./sd.config.json) || true)",
"build-scss": "yarn build-tokens && sass --load-path=node_modules --embed-sources --style=compressed --silence-deprecation=mixed-decls scss:build/css && postcss --use autoprefixer --replace 'build/css/**/*.css' --map",
"build:essential": "yarn run build-js && sass --load-path=node_modules --embed-sources --style=compressed --silence-deprecation=mixed-decls scss/build.scss:build/css/build.css scss/docs:build/css/docs && postcss --use autoprefixer --replace 'build/css/**/*.css' --map",
"build-js": "mkdir -p build/js/modules && cp node_modules/@canonical/cookie-policy/build/js/cookie-policy.js build/js/modules && cp node_modules/@canonical/latest-news/dist/latest-news.js build/js/modules && cp node_modules/js-beautify/js/lib/beautify.js node_modules/js-beautify/js/lib/beautify-html.js node_modules/js-beautify/js/lib/beautify-css.js build/js/modules",
"build-class-references": "node scripts/create-class-references.js",
"cypress:open": "cypress open",
"cypress:run": "cypress run",
"serve": "./entrypoint 0.0.0.0:${PORT}",
"test-scss": "node -e 'require(\"./tests/parker\").parkerTest()'",
"test-spelling": "mdspell templates/docs/**/*.md -r -n -a --en-gb",
"test": "yarn lint-scss && yarn lint-prettier && yarn test-spelling && yarn test-scss && yarn jest",
"lint-prettier": "prettier -c .",
"lint-scss": "stylelint 'scss/**/*.scss'",
"watch:scss": "sass --load-path=node_modules --embed-sources --style=compressed --silence-deprecation=mixed-decls scss:build/css --watch",
"watch:essential": "sass --load-path=node_modules --embed-sources --style=compressed --silence-deprecation=mixed-decls scss/build.scss:build/css/build.css --watch",
"watch": "yarn build && yarn watch:scss",
"clean": "rm -rf build docs/static/css node_modules/ yarn-error.log",
"percy": "percy snapshot snapshots.js",
"icon-svgs-to-mixins": "node scripts/convert-svgs-to-icon-mixins.js icons"
},
"files": [
"_index.scss",
"/scss",
"!/scss/docs",
"!/scss/standalone",
"/templates/_macros"
],
"devDependencies": {
"@canonical/cookie-policy": "3.6.4",
"@canonical/latest-news": "1.5.0",
"@percy/cli": "1.29.4",
"@testing-library/cypress": "10.0.2",
"autoprefixer": "10.4.20",
"cypress": "13.15.0",
"jest": "29.7.0",
"js-beautify": "1.15.1",
"markdown-spellcheck": "1.3.1",
"parker": "0.0.10",
"postcss": "8.4.47",
"postcss-cli": "11.0.0",
"postcss-scss": "4.0.9",
"prettier": "3.3.3",
"sass": "1.79.4",
"style-dictionary": "4.1.2",
"stylelint": "16.9.0",
"stylelint-config-recommended-scss": "14.1.0",
"stylelint-order": "6.0.4",
"stylelint-prettier": "5.0.2",
"svgo": "3.3.2",
"yaml": "2.5.1"
}
}