update rules of makefile, webpack, stylelintrc

This commit is contained in:
Simon Vieille 2022-10-16 18:23:20 +02:00
parent 1a550f066f
commit 1c1fe946cf
Signed by: deblan
GPG Key ID: 579388D585F70417
4 changed files with 11 additions and 6 deletions

View File

@ -1,5 +1,5 @@
{ {
"rules": { "rules": {
"indentation": 4 "indentation": 2
} }
} }

View File

@ -1,11 +1,15 @@
npm-build: build:
npm run build npm run build
npm-watch: watch:
npm run watch npm run watch
dep:
yarn
npm link @nextcloud/vue || sudo npm link @nextcloud/vue
.ONESHELL: .ONESHELL:
release: npm-build translations release: build translations
if [ -z "$$VERSION" ]; then if [ -z "$$VERSION" ]; then
echo "VERSION required" echo "VERSION required"
exit 1 exit 1

View File

@ -56,9 +56,9 @@ If you are a developer:
* fork the repository * fork the repository
* install an instance of Nextcloud * install an instance of Nextcloud
* go to `apps/` and clone your repository * 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. Then commit and create a pull request.

View File

@ -3,6 +3,7 @@ const { VueLoaderPlugin } = require('vue-loader')
const StyleLintPlugin = require('stylelint-webpack-plugin') const StyleLintPlugin = require('stylelint-webpack-plugin')
module.exports = { module.exports = {
devtool: "source-map",
entry: { entry: {
'admin': path.join(__dirname, 'src', 'admin.js'), 'admin': path.join(__dirname, 'src', 'admin.js'),
'sideMenu': path.join(__dirname, 'src', 'SideMenu.js'), 'sideMenu': path.join(__dirname, 'src', 'SideMenu.js'),