From 1c1fe946cf64457b75bb39988ece75f63318bc59 Mon Sep 17 00:00:00 2001 From: Simon Vieille Date: Sun, 16 Oct 2022 18:23:20 +0200 Subject: [PATCH] update rules of makefile, webpack, stylelintrc --- .stylelintrc.json | 2 +- Makefile | 10 +++++++--- README.md | 4 ++-- webpack.js | 1 + 4 files changed, 11 insertions(+), 6 deletions(-) diff --git a/.stylelintrc.json b/.stylelintrc.json index 252cc97..f364910 100644 --- a/.stylelintrc.json +++ b/.stylelintrc.json @@ -1,5 +1,5 @@ { "rules": { - "indentation": 4 + "indentation": 2 } } diff --git a/Makefile b/Makefile index 1639f5c..abecc2a 100644 --- a/Makefile +++ b/Makefile @@ -1,11 +1,15 @@ -npm-build: +build: npm run build -npm-watch: +watch: npm run watch +dep: + yarn + npm link @nextcloud/vue || sudo npm link @nextcloud/vue + .ONESHELL: -release: npm-build translations +release: build translations if [ -z "$$VERSION" ]; then echo "VERSION required" exit 1 diff --git a/README.md b/README.md index 92f05f7..421e239 100644 --- a/README.md +++ b/README.md @@ -56,9 +56,9 @@ If you are a developer: * fork the repository * install an instance of Nextcloud * go to `apps/` and clone your repository -* go to `apps/side_menu` and run `npm install` +* go to `apps/side_menu` and run `make dep` -Build javascripts using `make npm-build` (or `make npm-watch` to build them in real time). +Build javascripts using `make build` (or `make watch` to build them in real time). Then commit and create a pull request. diff --git a/webpack.js b/webpack.js index 6175934..6e3eac8 100644 --- a/webpack.js +++ b/webpack.js @@ -3,6 +3,7 @@ const { VueLoaderPlugin } = require('vue-loader') const StyleLintPlugin = require('stylelint-webpack-plugin') module.exports = { + devtool: "source-map", entry: { 'admin': path.join(__dirname, 'src', 'admin.js'), 'sideMenu': path.join(__dirname, 'src', 'SideMenu.js'),