Replace npm and Bower with Yarn

This commit is contained in:
Pierre Rudloff 2017-10-17 15:27:57 +02:00
parent d5aab93220
commit 07a8df0f78
7 changed files with 1776 additions and 4058 deletions

View file

@ -7,13 +7,11 @@ addons:
- language-pack-fr
install:
- composer install
before_install:
- npm install -g npm@3
script: vendor/bin/phpunit
after_success:
- bash <(curl -s https://codecov.io/bash)
before_deploy:
- npm install --ignore-scripts
- yarn install --ignore-scripts
- ./node_modules/.bin/grunt doc
deploy:
provider: surge

View file

@ -14,10 +14,10 @@ You just have to unzip it on your server and it should be ready to use.
### From Git
In order to get AllTube working, you need to use [npm](https://www.npmjs.com/) and [Composer](https://getcomposer.org/):
In order to get AllTube working, you need to use [Yarn](https://yarnpkg.com/) and [Composer](https://getcomposer.org/):
```bash
npm install
yarn install
composer install
```
@ -35,11 +35,11 @@ If your web server is Apache, you need to set the `AllowOverride` setting to `Al
#### Update
When updating from Git, you need to run npm and Composer again:
When updating from Git, you need to run yarn and Composer again:
```bash
git pull
npm install
yarn install
composer install
```

View file

@ -1,6 +0,0 @@
{
"name": "alltube",
"dependencies": {
"opensans-googlefont": "*"
}
}

4041
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -5,7 +5,7 @@
"author": "Pierre Rudloff",
"bugs": "https://github.com/Rudloff/alltube/issues",
"dependencies": {
"bower": "^1.8.2",
"@bower_components/opensans-googlefont": "google-fonts-bower/opensans-bower#*",
"grunt": "~1.0.1",
"grunt-contrib-csslint": "~2.0.0",
"grunt-contrib-cssmin": "^2.2.1",
@ -24,7 +24,7 @@
"grunt-phpunit": "~0.3.6"
},
"engines": {
"npm": "~3"
"yarn": ">= 1.0.0"
},
"homepage": "https://www.alltubedownload.net/",
"keywords": [
@ -40,6 +40,6 @@
"url": "https://github.com/Rudloff/alltube.git"
},
"scripts": {
"postinstall": "node node_modules/.bin/bower install && node node_modules/.bin/grunt"
"postinstall": "node node_modules/.bin/grunt"
}
}

View file

@ -70,7 +70,7 @@ You probably don't have the minified files (in the `dist` folder).
You need to either:
* Use a [release package](https://github.com/Rudloff/alltube/releases)
* Run `npm install` (see detailed instructions in the [README](../README.md#from-git))
* Run `yarn install` (see detailed instructions in the [README](../README.md#from-git))
## I get a 404 error on every page except the index

1767
yarn.lock Normal file

File diff suppressed because it is too large Load diff