[TASK] Use yarn package manager in favour of npm
This commit is contained in:
parent
e16eb115ba
commit
6b51035281
@ -13,16 +13,11 @@ os:
|
|||||||
- windows
|
- windows
|
||||||
|
|
||||||
cache:
|
cache:
|
||||||
|
yarn: true
|
||||||
directories:
|
directories:
|
||||||
- node_modules
|
- node_modules
|
||||||
- bower_components
|
- bower_components
|
||||||
|
|
||||||
before_install:
|
|
||||||
- npm install -g grunt-cli
|
|
||||||
|
|
||||||
install:
|
|
||||||
- npm install
|
|
||||||
|
|
||||||
script: grunt
|
script: grunt
|
||||||
|
|
||||||
notifications:
|
notifications:
|
||||||
|
16
README.md
16
README.md
@ -19,6 +19,7 @@
|
|||||||
- Rewrite Scss, SASS lint and variables for easy customization/adjustments
|
- Rewrite Scss, SASS lint and variables for easy customization/adjustments
|
||||||
- Improved cross browser/device support THX@BrowserStack
|
- Improved cross browser/device support THX@BrowserStack
|
||||||
- Leaflet with patch to avoid IE/Edge crashes
|
- Leaflet with patch to avoid IE/Edge crashes
|
||||||
|
- Add yarn package manager in favor of npm (npm still works)
|
||||||
- [A lot more in commit history](https://github.com/ffrgb/meshviewer/commits/develop)
|
- [A lot more in commit history](https://github.com/ffrgb/meshviewer/commits/develop)
|
||||||
|
|
||||||
# Demo (embedded):
|
# Demo (embedded):
|
||||||
@ -31,28 +32,31 @@ https://regensburg.freifunk.net/netz/karte/
|
|||||||
|
|
||||||
# Dependencies
|
# Dependencies
|
||||||
|
|
||||||
- npm
|
- yarn
|
||||||
- bower
|
- bower
|
||||||
- grunt-cli
|
- grunt-cli
|
||||||
|
|
||||||
# Installing dependencies
|
# Installing dependencies
|
||||||
|
|
||||||
Install npm package-manager. On Debian-like systems run:
|
### npm is still possible, but yarn is much faster https://yarnpkg.com/
|
||||||
|
|
||||||
sudo apt-get install npm
|
Install yarn package-manager:
|
||||||
|
|
||||||
|
Chosse your OS and install yarn https://yarnpkg.com/en/docs/install
|
||||||
|
|
||||||
Execute these commands on your server as a normal user to prepare the dependencies:
|
Execute these commands on your server as a normal user to prepare the dependencies:
|
||||||
|
|
||||||
git clone https://github.com/ffrgb/meshviewer.git
|
git clone https://github.com/ffrgb/meshviewer.git
|
||||||
cd meshviewer
|
cd meshviewer
|
||||||
npm install
|
yarn
|
||||||
npm install grunt-cli
|
# Only needed when no global grunt exists
|
||||||
|
yarn global add grunt-cli
|
||||||
|
|
||||||
# Building
|
# Building
|
||||||
|
|
||||||
Just run the following command from the meshviewer directory:
|
Just run the following command from the meshviewer directory:
|
||||||
|
|
||||||
node_modules/.bin/grunt
|
grunt
|
||||||
|
|
||||||
This will generate `build/` containing all required files.
|
This will generate `build/` containing all required files.
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "ffrgb-meshviewer",
|
"name": "ffrgb-meshviewer",
|
||||||
"license": "AGPL",
|
"license": "AGPL-3.0",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/ffrgb/meshviewer.git"
|
"url": "https://github.com/ffrgb/meshviewer.git"
|
||||||
|
Loading…
Reference in New Issue
Block a user