[TASK] Use yarn package manager in favour of npm

This commit is contained in:
Xaver Maierhofer 2017-01-10 23:52:28 +01:00
parent e16eb115ba
commit 6b51035281
No known key found for this signature in database
GPG Key ID: 7FDCE23FD2EC9FE8
4 changed files with 3738 additions and 13 deletions

View File

@ -13,16 +13,11 @@ os:
- windows
cache:
yarn: true
directories:
- node_modules
- bower_components
before_install:
- npm install -g grunt-cli
install:
- npm install
script: grunt
notifications:

View File

@ -19,6 +19,7 @@
- Rewrite Scss, SASS lint and variables for easy customization/adjustments
- Improved cross browser/device support THX@BrowserStack
- 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)
# Demo (embedded):
@ -31,28 +32,31 @@ https://regensburg.freifunk.net/netz/karte/
# Dependencies
- npm
- yarn
- bower
- grunt-cli
# 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:
git clone https://github.com/ffrgb/meshviewer.git
cd meshviewer
npm install
npm install grunt-cli
yarn
# Only needed when no global grunt exists
yarn global add grunt-cli
# Building
Just run the following command from the meshviewer directory:
node_modules/.bin/grunt
grunt
This will generate `build/` containing all required files.

View File

@ -1,6 +1,6 @@
{
"name": "ffrgb-meshviewer",
"license": "AGPL",
"license": "AGPL-3.0",
"repository": {
"type": "git",
"url": "https://github.com/ffrgb/meshviewer.git"

3726
yarn.lock Normal file

File diff suppressed because it is too large Load Diff