update package.json after make to setuptool migration

This commit is contained in:
Thomas Jund 2024-03-20 16:26:53 +01:00
parent b769d8bbe5
commit 7b91be1878
2 changed files with 8 additions and 7 deletions

View File

@ -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"
})

View File

@ -7,22 +7,22 @@
"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'",