diff options
author | silverwind <me@silverwind.io> | 2019-05-16 07:57:47 +0200 |
---|---|---|
committer | Lauris BH <lauris@nix.lv> | 2019-05-16 08:57:47 +0300 |
commit | d9dcd093403b3194bcf3b4be36eaf90250e06ed1 (patch) | |
tree | f2b18a690ae35773e7e6f06e3c312f3a2a9902ea /package.json | |
parent | 775a5a5b0f4c1a7aa7b301569fe89d7c6e751c46 (diff) | |
download | gitea-d9dcd093403b3194bcf3b4be36eaf90250e06ed1.tar.gz gitea-d9dcd093403b3194bcf3b4be36eaf90250e06ed1.zip |
add make targets for js and css, add js linter (#6952)
* add make targets for js,css, add javascript linter
- add `make js`, deprecating `make javascripts`
- add `make css`, deprecating `make generate-stylesheets` and
`make stylesheets-check`
- changed the unclean css check to only run on CI
- add JS linting via eslint with basic configuration and fixed
discovered issues
- changed autoprefixer to use official `postcss-cli` avoiding the need
to loop in the makefile
- moved browserslist to package.json so other future tools can use it
too.
- update documentation for new make targets and added JS section
* fix indentation
* move functions used in html to 'exported' list
* Run lessc binary without having to install anything to node_modules
* use relative paths to node bin scripts, removing npx
* Revert "use relative paths to node bin scripts, removing npx"
This reverts commit 119b725525a8430b32ee7a6e6009b4ece544e39b.
* fix lessc and postcss plugins
* check for node_modules and use actual bin names
Diffstat (limited to 'package.json')
-rw-r--r-- | package.json | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/package.json b/package.json index 094941980f..1bbe6cf8ae 100644 --- a/package.json +++ b/package.json @@ -2,9 +2,16 @@ "license": "MIT", "devDependencies": { "autoprefixer": "9.5.1", + "eslint": "5.16.0", "less": "3.9.0", "less-plugin-clean-css": "1.5.1", "lesshint": "^6.3.6", - "postcss-cli-simple": "3.0.0" - } + "postcss-cli": "6.1.2" + }, + "browserslist": [ + "> 1%", + "last 2 firefox versions", + "last 2 safari versions", + "ie 11" + ] } |