annotate package.json @ 7245:6c3bb9a845d7

less: generate map files when building style.css with 'npm run less' The map files allow web development tools ("Firebug" style) to show the .less and .css source instead of the generated style.css . The generated style.css will get a trailing comment with a reference to kallithea/public/css/style.css.map . It will not have any impact on runtime.
author domruf <dominikruf@gmail.com>
date Wed, 25 Oct 2017 19:19:58 +0200
parents 1969f7dfb6b0
children b66725ba01ed
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
6953
42718729687e style: use npm less to generate kallithea stylesheet style.css from style.less
Thomas De Schampheleire <thomas.de.schampheleire@gmail.com>
parents:
diff changeset
1 {
42718729687e style: use npm less to generate kallithea stylesheet style.css from style.less
Thomas De Schampheleire <thomas.de.schampheleire@gmail.com>
parents:
diff changeset
2 "name": "kallithea",
42718729687e style: use npm less to generate kallithea stylesheet style.css from style.less
Thomas De Schampheleire <thomas.de.schampheleire@gmail.com>
parents:
diff changeset
3 "private": true,
7057
a9cbc30e19fa less: build custom Bootstrap from bootstrap.less instead of using plain upstream version
domruf <dominikruf@gmail.com>
parents: 7056
diff changeset
4 "dependencies": {
a9cbc30e19fa less: build custom Bootstrap from bootstrap.less instead of using plain upstream version
domruf <dominikruf@gmail.com>
parents: 7056
diff changeset
5 "bootstrap": "3.3.7"
a9cbc30e19fa less: build custom Bootstrap from bootstrap.less instead of using plain upstream version
domruf <dominikruf@gmail.com>
parents: 7056
diff changeset
6 },
6953
42718729687e style: use npm less to generate kallithea stylesheet style.css from style.less
Thomas De Schampheleire <thomas.de.schampheleire@gmail.com>
parents:
diff changeset
7 "devDependencies": {
42718729687e style: use npm less to generate kallithea stylesheet style.css from style.less
Thomas De Schampheleire <thomas.de.schampheleire@gmail.com>
parents:
diff changeset
8 "less": "~2.7",
42718729687e style: use npm less to generate kallithea stylesheet style.css from style.less
Thomas De Schampheleire <thomas.de.schampheleire@gmail.com>
parents:
diff changeset
9 "less-plugin-clean-css": "~1.5"
42718729687e style: use npm less to generate kallithea stylesheet style.css from style.less
Thomas De Schampheleire <thomas.de.schampheleire@gmail.com>
parents:
diff changeset
10 },
42718729687e style: use npm less to generate kallithea stylesheet style.css from style.less
Thomas De Schampheleire <thomas.de.schampheleire@gmail.com>
parents:
diff changeset
11 "scripts": {
7245
6c3bb9a845d7 less: generate map files when building style.css with 'npm run less'
domruf <dominikruf@gmail.com>
parents: 7099
diff changeset
12 "less": "lessc --relative-urls --source-map --source-map-less-inline kallithea/public/less/main.less kallithea/public/css/style.css"
6953
42718729687e style: use npm less to generate kallithea stylesheet style.css from style.less
Thomas De Schampheleire <thomas.de.schampheleire@gmail.com>
parents:
diff changeset
13 }
42718729687e style: use npm less to generate kallithea stylesheet style.css from style.less
Thomas De Schampheleire <thomas.de.schampheleire@gmail.com>
parents:
diff changeset
14 }