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