-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
executable file
·68 lines (68 loc) · 3.2 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
{
"name": "@blockchainhub/coco",
"version": "2.2.1",
"description": "Modern CSS framework based on Flexbox.",
"keywords": [
"css",
"css-framework",
"framework",
"front-end",
"responsive",
"sass",
"scss",
"sass-framework",
"web"
],
"repository": {
"type": "git",
"url": "git+https://github.com/bchainhub/coco.git"
},
"bugs": {
"url": "https://github.com/blockchainhub/coco/issues"
},
"scripts": {
"autoprefixer": "postcss dist/*.css -u autoprefixer --replace --no-map",
"browser-sync": "browser-sync start --server --startPath \"preview/html/page/color.html\" --files \"**/*\" --directory --no-notify --no-open",
"delete:dev-folder": "del-cli --force dist",
"build": "npm-run-all add-version delete:dev-folder build:prod remove-version",
"build:prod": "npm-run-all sass:prod:expanded sass:prod:compressed autoprefixer",
"pug": "pug --obj preview/pug/assets/data.json --watch preview/pug/ --out preview/html/ --pretty",
"sass:preview": "sass --watch --update --style=expanded --no-source-map scss/coco-styles.scss:preview/assets/css/coco.css --load-path=scss",
"sass:prod:expanded": "sass --no-source-map --style=expanded scss/coco-styles.scss:dist/coco.css",
"sass:prod:compressed": "sass --no-source-map --style=compressed scss/coco-styles.scss:dist/coco.min.css",
"lint": "npm run add-version && stylelint --formatter github 'scss/**/*.scss' && npm run remove-version",
"sass:lint": "stylelint scss/**/*.scss",
"sass:lint:fix": "stylelint scss/**/*.scss --fix",
"start": "npm-run-all --parallel pug add-version sass:preview remove-version browser-sync",
"test": "jest",
"add-version": "node -e \"const fs = require('fs'); const version = require('./package.json').version; const filePath = 'scss/config/_info.scss'; let content = fs.readFileSync(filePath, 'utf8').split('\\n'); const text = '\\$v: \\''+version+'\\';'; if (content[0].startsWith('\\$v:')) { content[0] = text; } else { content.unshift(text+'\\n'); } fs.writeFileSync(filePath, content.join('\\n'), 'utf8');\"",
"remove-version": "node -e \"const fs = require('fs'); const filePath = 'scss/config/_info.scss'; let content = fs.readFileSync(filePath, 'utf8').split('\\n'); if (content[0].startsWith('\\$v:')) { content.shift(); if (content[0] === '') content.shift(); } fs.writeFileSync(filePath, content.join('\\n'), 'utf8');\""
},
"license": "CORE",
"devDependencies": {
"autoprefixer": "^10.4.20",
"browser-sync": "^3.0.3",
"del-cli": "^6.0.0",
"jest": "^29.7.0",
"jest-environment-node-single-context": "^29.4.0",
"npm-run-all": "^4.1.5",
"postcss-cli": "^11.0.0",
"pug-cli": "^1.0.0-alpha6",
"sass": "^1.80.4",
"sass-true": "^8.1.0",
"stylelint": "^16.10.0",
"stylelint-config-sass-guidelines": "^12.1.0",
"stylelint-order": "^6.0.4"
},
"jest": {
"testEnvironment": "jest-environment-node-single-context"
},
"unpkg": "dist/coco.css",
"style": "dist/coco.min.css",
"files": [
"dist",
"LICENSE",
"README.md"
],
"packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
}