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 param = process.argv.pop();
const themeFolder = process.env.npm_package_config_themefolder; 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 app = apps.includes(param) ? param : process.env.npm_package_config_app;
const appurl = pkgJson.config.url[app]; const appurl = pkgJson.config.url[app];
browserSync.init({ browserSync.init({
proxy: appurl, proxy: appurl,
files: [ files: [
`${themeFolder}/static/**/*.css`, `${themeFolder}/static/${theme}/*.css`,
`${themeFolder}/templates/**/*` `${themeFolder}/templates/{theme}/*`
], ],
logLevel: "debug" logLevel: "debug"
}) })

View File

@ -7,22 +7,22 @@
"url": { "url": {
"combo": "https://combo.dev.publik.love/", "combo": "https://combo.dev.publik.love/",
"authentic": "https://authentic.dev.publik.love/accounts/register/", "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/" "agent-combo": "https://agent-combo.dev.publik.love/"
}, },
"themefolder": "publik-base-theme", "themefolder": "publik-base-theme",
"theme": "thomas", "theme": "naoned",
"app": "combo" "app": "combo"
}, },
"scripts": { "scripts": {
"explore:css": "cd $npm_package_config_themefolder && postcss static/**/style.css --config postcss.config.js --dir /tmp/ > /tmp/explorecss.txt", "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", "stop:memcache": "sudo systemctl stop memcached",
"change:theme": "bash misc-tjund/change-theme.sh $npm_package_config_theme", "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-gadjo": "cd gadjo && python3 setup.py compile_scss",
"build:css-chrono": "cd chrono && 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", "build:themes": "cd $npm_package_config_themefolder && python3 setup.py build_themes_json",
"watch:scss": "cd $npm_package_config_themefolder && chokidar 'static/**/*.scss' -c 'npm run build:css'", "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-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: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'", "watch:config": "cd $npm_package_config_themefolder && chokidar 'static/**/config.json' -c 'npm run build:themes'",