Build the logic too into the same hierarchy as it is unbuilt so it can be used either processed or unprocessed. Does involve having a dir called 'src' in the built products directory, and abusing jsx as a cross-platform version of cp (there is no jsx in the src dir).
parent
ed2cc33616
commit
63d7ff3ed6
|
@ -11,7 +11,9 @@
|
|||
"main": "src/index.js",
|
||||
"style": "bundle.css",
|
||||
"scripts": {
|
||||
"build:js": "jsx skins/base/views/ build",
|
||||
"build:skins": "jsx skins build/skins",
|
||||
"build:logic": "jsx src build/src",
|
||||
"build:js": "npm run build:skins && npm run build:logic",
|
||||
"start:js": "jsx -w skins/base/views/ build --source-map-inline",
|
||||
"build:css": "catw 'skins/base/css/**/*.css' -o bundle.css -c uglifycss --no-watch",
|
||||
"start:css": "catw 'skins/base/css/**/*.css' -o bundle.css -v",
|
||||
|
|
Loading…
Reference in New Issue