-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
34 lines (34 loc) · 1.19 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
{
"name": "ready-set-fractal",
"version": "2.0.0",
"dependencies": {
"@frctl/fractal": "^1.5.15",
"node-sass": "^9.0.0",
"node-sass-magic-importer": "^5.3.2",
"npm-run-all": "^4.1.5",
"npm-watch": "^0.11.0",
"onchange": "^7.1.0"
},
"watch": {
"sass": {
"patterns": [
"assets",
"components"
],
"extensions": "scss"
}
},
"scripts": {
"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/",
"js:all": "find ./components -name \"*.js\" -exec cp {} ./public/js/components/ \\;",
"js:single": "onchange 'components/**/*.js' -- cp {{changed}} ./public/js/components/",
"fract": "fractal start --sync",
"watch": "npm-watch",
"predev": "run-p sass js:all",
"dev": "run-p fract watch js:single",
"build": "fractal build",
"preprod": "mkdir -p ./public/js/components/ && rm -f ./public/css/global.css.map",
"prod": "run-s sass:prod js:all build"
}
}