mirror of
https://github.com/YunoHost/yunohost-admin.git
synced 2024-09-03 20:06:15 +02:00
simplify install and build
This commit is contained in:
parent
0872cfa61b
commit
03e979f334
2 changed files with 12 additions and 18 deletions
25
README.md
25
README.md
|
@ -5,41 +5,30 @@ JS client for YunoHost API
|
||||||
**Please report issues here** (no registration needed):
|
**Please report issues here** (no registration needed):
|
||||||
https://dev.yunohost.org/projects/yunohost/issues
|
https://dev.yunohost.org/projects/yunohost/issues
|
||||||
|
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
This client is a part of the YunoHost projet, and can not be installed
|
This client is a part of the YunoHost projet, and can not be installed directly. Please visit [YunoHost website](https://yunohost.org) for more information.
|
||||||
directly. Please visit [YunoHost website](https://yunohost.org) for
|
|
||||||
more information.
|
|
||||||
|
|
||||||
## Contributing
|
## Contributing
|
||||||
|
|
||||||
Feel free to improve the plugin and send us a pull request.
|
Feel free to improve the plugin and send us a pull request.
|
||||||
|
|
||||||
We use gulp to compile Less files and minify the JavaScript.
|
We use `gulp` to compile Less files and minify the JavaScript. Assuming [nodejs](http://nodejs.org/) is installed, you can install dependencies and run a build with:
|
||||||
Assuming [nodejs](http://nodejs.org/) is installed, you can run a
|
|
||||||
build with:
|
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
cd src
|
cd src
|
||||||
npm install
|
npm i
|
||||||
npm install -g bower
|
npm run build
|
||||||
bower install
|
|
||||||
npm install -g gulp
|
|
||||||
gulp build
|
|
||||||
```
|
```
|
||||||
Alternatively you can pas the `--dev` option to gulp which improve building
|
|
||||||
speed by bypassing compression tasks.
|
|
||||||
|
|
||||||
On a YunoHost instance, the web admin files are located at
|
Alternatively you can run `npm run build-dev` which improves building speed by bypassing compression tasks.
|
||||||
`/usr/share/yunohost/admin`.
|
|
||||||
|
On a YunoHost instance, the web admin files are located at `/usr/share/yunohost/admin`.
|
||||||
|
|
||||||
**Note:** The `.ms` - moustache - files are cached by the browser. You have to
|
**Note:** The `.ms` - moustache - files are cached by the browser. You have to
|
||||||
reach them manually some times you modify them. (e.g. go to
|
reach them manually some times you modify them. (e.g. go to
|
||||||
https://example.com/yunohost/admin/views/domain/domain_list.ms)
|
https://example.com/yunohost/admin/views/domain/domain_list.ms)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## Dependencies
|
## Dependencies
|
||||||
|
|
||||||
* Bootstrap 3.3.6
|
* Bootstrap 3.3.6
|
||||||
|
|
|
@ -5,6 +5,11 @@
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/YunoHost/yunohost-admin"
|
"url": "https://github.com/YunoHost/yunohost-admin"
|
||||||
},
|
},
|
||||||
|
"scripts": {
|
||||||
|
"postinstall": "bower install",
|
||||||
|
"build": "gulp build",
|
||||||
|
"build-dev": "gulp build --dev"
|
||||||
|
},
|
||||||
"author": "Yunohost",
|
"author": "Yunohost",
|
||||||
"license": "AGPL-3.0",
|
"license": "AGPL-3.0",
|
||||||
"bugs": {
|
"bugs": {
|
||||||
|
|
Loading…
Reference in a new issue