update rules of makefile, webpack, stylelintrc
This commit is contained in:
parent
1a550f066f
commit
1c1fe946cf
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"rules": {
|
"rules": {
|
||||||
"indentation": 4
|
"indentation": 2
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
10
Makefile
10
Makefile
|
@ -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
|
||||||
|
|
|
@ -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.
|
||||||
|
|
||||||
|
|
|
@ -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'),
|
||||||
|
|
Loading…
Reference in New Issue