# HG changeset patch # User Thomas De Schampheleire # Date 2017-09-28 22:03:01 # Node ID 42718729687e228e3f406bbd64bd84775039f06a # Parent cf0e5b32c06333d4a262d0a84b0f68e4547990d0 style: use npm less to generate kallithea stylesheet style.css from style.less This is a minimal change to introduce less as framework to generate our stylesheet. The input less file is currently the same as the original css stylesheet, so that the delta between the input style.less and the output style.css is zero. To regenerate style.css from style.less, run: npm --prefix kallithea/public/less install npm --prefix kallithea/public/less run less These changes are based on work by Dominik Ruf. diff --git a/.hgignore b/.hgignore --- a/.hgignore +++ b/.hgignore @@ -8,6 +8,7 @@ syntax: glob *.mo .eggs/ tarballcache/ +node_modules/ syntax: regexp ^rcextensions diff --git a/kallithea/public/less/package.json b/kallithea/public/less/package.json new file mode 100644 --- /dev/null +++ b/kallithea/public/less/package.json @@ -0,0 +1,12 @@ +{ + "name": "kallithea", + "private": true, + "dependencies": {}, + "devDependencies": { + "less": "~2.7", + "less-plugin-clean-css": "~1.5" + }, + "scripts": { + "less": "lessc style.less ../css/style.css" + } +} diff --git a/kallithea/public/css/style.css b/kallithea/public/less/style.less copy from kallithea/public/css/style.css copy to kallithea/public/less/style.less