Compare commits
2 Commits
b769d8bbe5
...
5d094ef7f5
Author | SHA1 | Date |
---|---|---|
Thomas Jund | 5d094ef7f5 | |
Thomas Jund | 7b91be1878 |
|
@ -5,14 +5,15 @@ const apps = [ 'combo', 'wcs', 'authentic'];
|
|||
|
||||
const param = process.argv.pop();
|
||||
const themeFolder = process.env.npm_package_config_themefolder;
|
||||
const theme = process.env.npm_package_config_theme;
|
||||
const app = apps.includes(param) ? param : process.env.npm_package_config_app;
|
||||
const appurl = pkgJson.config.url[app];
|
||||
|
||||
browserSync.init({
|
||||
proxy: appurl,
|
||||
files: [
|
||||
`${themeFolder}/static/**/*.css`,
|
||||
`${themeFolder}/templates/**/*`
|
||||
`${themeFolder}/static/${theme}/*.css`,
|
||||
`${themeFolder}/templates/{theme}/*`
|
||||
],
|
||||
logLevel: "debug"
|
||||
})
|
||||
|
|
13
package.json
13
package.json
|
@ -7,29 +7,30 @@
|
|||
"url": {
|
||||
"combo": "https://combo.dev.publik.love/",
|
||||
"authentic": "https://authentic.dev.publik.love/accounts/register/",
|
||||
"wcs": "https://wcs.dev.publik.love/form-test",
|
||||
"wcs": "https://wcs.dev.publik.love/tests/form-test",
|
||||
"agent-combo": "https://agent-combo.dev.publik.love/"
|
||||
},
|
||||
"themefolder": "publik-base-theme",
|
||||
"theme": "thomas",
|
||||
"theme": "naoned",
|
||||
"app": "combo"
|
||||
},
|
||||
"scripts": {
|
||||
"explore:css": "cd $npm_package_config_themefolder && postcss static/**/style.css --config postcss.config.js --dir /tmp/ > /tmp/explorecss.txt",
|
||||
"stop:memcache": "sudo systemctl stop memcached",
|
||||
"change:theme": "bash misc-tjund/change-theme.sh $npm_package_config_theme",
|
||||
"build:css": "cd $npm_package_config_themefolder && make static/$npm_package_config_theme/style.css",
|
||||
"build:css": "cd $npm_package_config_themefolder && sassc --sourcemap static/$npm_package_config_theme/style.scss static/$npm_package_config_theme/style.css",
|
||||
"build:css-gadjo": "cd gadjo && python3 setup.py compile_scss",
|
||||
"build:css-chrono": "cd chrono && python3 setup.py compile_scss",
|
||||
"build:themes": "cd $npm_package_config_themefolder && make themes.json",
|
||||
"watch:scss": "cd $npm_package_config_themefolder && chokidar 'static/**/*.scss' -c 'npm run build:css'",
|
||||
"build:themes": "cd $npm_package_config_themefolder && python3 setup.py build_themes_json",
|
||||
"watch:scss": "cd $npm_package_config_themefolder && chokidar 'static/**/*.scss' -i 'static/**/_data_uris.scss' -c 'npm run build:css'",
|
||||
"watch:scss-gadjo": "chokidar 'gadjo/gadjo/static/css/*.scss' -c 'npm run build:css-gadjo'",
|
||||
"watch:scss-chrono": "chokidar 'chrono/chrono/manager/static/css/*.scss' -c 'npm run build:css-chrono'",
|
||||
"watch:config": "cd $npm_package_config_themefolder && chokidar 'static/**/config.json' -c 'npm run build:themes'",
|
||||
"serve": "node npm_serve.js",
|
||||
"dev": "npm run change:theme && run-p watch:* & npm run serve",
|
||||
"dev:gadjo": "npm run watch:scss-gadjo",
|
||||
"dev:chrono": "npm run watch:scss-chrono"
|
||||
"dev:chrono": "npm run watch:scss-chrono",
|
||||
"dev:godo": "browser-sync start -s 'godo.js/dist'"
|
||||
},
|
||||
"devDependencies": {
|
||||
"browser-sync": "^2.26.7",
|
||||
|
|
Loading…
Reference in New Issue