36 lines
1.5 KiB
JSON
36 lines
1.5 KiB
JSON
{
|
|
"name": "Publik-watch-reload",
|
|
"version": "1.0.0",
|
|
"description": "Watch html & css files; run make css & themes; reload browser",
|
|
"author": "Thomas JUND",
|
|
"config": {
|
|
"url": {
|
|
"combo": "https://combo.dev.publik.love/",
|
|
"authentic": "https://authentic.dev.publik.love/accounts/register/",
|
|
"wcs": "https://wcs.dev.publik.love/form-test",
|
|
"agent-combo": "https://agent-combo.dev.publik.love/"
|
|
},
|
|
"themefolder": "publik-base-theme",
|
|
"theme": "thomas",
|
|
"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:themes": "cd $npm_package_config_themefolder && make themes.json",
|
|
"watch:scss": "cd $npm_package_config_themefolder && chokidar 'static/**/*.scss' -c 'npm run build:css'",
|
|
"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"
|
|
},
|
|
"devDependencies": {
|
|
"browser-sync": "^2.26.7",
|
|
"chokidar-cli": "^2.0.0",
|
|
"eslint": "^7.7.0",
|
|
"npm-run-all": "^4.1.5",
|
|
"postcss-cli": "^7.1.2"
|
|
}
|
|
}
|