[TASK] Use yarn package manager in favour of npm
This commit is contained in:
parent
e16eb115ba
commit
6b51035281
@ -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:
|
||||
|
16
README.md
16
README.md
@ -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.
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "ffrgb-meshviewer",
|
||||
"license": "AGPL",
|
||||
"license": "AGPL-3.0",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/ffrgb/meshviewer.git"
|
||||
|
Loading…
Reference in New Issue
Block a user