generated from darby3/ready-set-fractal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
41 lines (41 loc) · 1.42 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
{
"name": "d3-sketchbook",
"version": "0.1.0",
"dependencies": {
"@frctl/fractal": "^1.5.11",
"chalk": "^4.1.2",
"ncp": "^2.0.0",
"node-sass": "^6.0.1",
"node-sass-magic-importer": "^5.3.2",
"npm-run-all": "^4.1.5",
"npm-watch": "^0.11.0",
"onchange": "^7.1.0",
"prompt": "^1.2.0",
"shelljs": "^0.8.4",
"unique-names-generator": "^4.6.0"
},
"watch": {
"sass": {
"patterns": [
"assets",
"components"
],
"extensions": "scss"
}
},
"scripts": {
"iterate": "node do-iterate-component",
"makeaname": "node do-make-a-name",
"sass": "node-sass --source-map=true --importer node_modules/node-sass-magic-importer/dist/cli.js --output-style='expanded' assets/scss/ --output public/css/",
"sass:prod": "node-sass --importer node_modules/node-sass-magic-importer/dist/cli.js --output-style='expanded' assets/scss/ --output public/css/",
"jsBasic:all": "find ./components -name \"*.js\" -exec cp {} ./public/js/components/ \\;",
"jsBasic:single": "onchange 'components/**/*.js' -- cp {{changed}} ./public/js/components/",
"fract": "fractal start --sync",
"watch": "npm-watch",
"predev": "run-p sass jsBasic:all",
"dev": "run-p fract watch jsBasic:single",
"build": "fractal build",
"preprod": "mkdir -p ./public/js/components/ && rm -f ./public/css/global.css.map",
"prod": "run-s sass:prod jsBasic:all build"
}
}