Switched from npm to Yarn. Closed #3012.
This commit is contained in:
parent
941ac8809e
commit
f10465c477
12
.travis.yml
12
.travis.yml
@ -1,10 +1,8 @@
|
||||
language: python
|
||||
sudo: false
|
||||
cache:
|
||||
directories:
|
||||
- node_modules
|
||||
- $HOME/virtualenv/python$TRAVIS_PYTHON_VERSION/lib/python$TRAVIS_PYTHON_VERSION/site-packages/
|
||||
- $HOME/virtualenv/python$TRAVIS_PYTHON_VERSION/bin/
|
||||
pip: true
|
||||
yarn: true
|
||||
python:
|
||||
- "3.4"
|
||||
- "3.5"
|
||||
@ -13,11 +11,13 @@ env:
|
||||
- TRAVIS_NODE_VERSION="4"
|
||||
before_install:
|
||||
- nvm install $TRAVIS_NODE_VERSION
|
||||
- curl -o- -L https://yarnpkg.com/install.sh | bash
|
||||
- export PATH="$HOME/.yarn/bin:$PATH"
|
||||
install:
|
||||
- pip install --upgrade setuptools
|
||||
- pip install --upgrade setuptools pip
|
||||
- pip install --upgrade --requirement requirements.txt
|
||||
- pip freeze
|
||||
- npm install
|
||||
- yarn
|
||||
- node_modules/.bin/gulp --production
|
||||
script:
|
||||
- flake8 openslides tests
|
||||
|
@ -46,6 +46,9 @@ Core:
|
||||
General:
|
||||
- Several bugfixes and minor improvements.
|
||||
|
||||
Other:
|
||||
- Switched from npm to Yarn.
|
||||
|
||||
|
||||
Version 2.1.1 (2017-04-05)
|
||||
==========================
|
||||
|
@ -16,14 +16,18 @@ a. Check requirements
|
||||
'''''''''''''''''''''
|
||||
|
||||
Make sure that you have installed `Python (>= 3.4) <https://www.python.org/>`_,
|
||||
`Node.js (>=4.x) <https://nodejs.org/>`_, `npm - Node Package Manager (>=3.x)
|
||||
<https://npmjs.org/>`_ and `Git <http://git-scm.com/>`_ on your system. You also
|
||||
need build-essential packages and header files and a static library for Python.
|
||||
`Node.js (>=4.x) <https://nodejs.org/>`_, `Yarn <https://yarnpkg.com/>`_ and
|
||||
`Git <http://git-scm.com/>`_ on your system. You also need build-essential
|
||||
packages and header files and a static library for Python.
|
||||
|
||||
For Ubuntu 16.04 e. g. run::
|
||||
For Ubuntu 16.04 e. g. follow `Yarn installation instructions
|
||||
<https://yarnpkg.com/en/docs/install>`_ and run::
|
||||
|
||||
$ sudo apt-get install git nodejs nodejs-legacy npm build-essential python3-dev
|
||||
|
||||
*Note: For Ubuntu 14.04 you have to update Node.js before. The distribution
|
||||
version is 0.10.25 which is not sufficient.*
|
||||
|
||||
|
||||
b. Get OpenSlides source code
|
||||
'''''''''''''''''''''''''''''
|
||||
@ -49,9 +53,9 @@ Install all required Python packages::
|
||||
|
||||
$ pip install --requirement requirements.txt
|
||||
|
||||
Install all NPM and Bower packages and run several JavaScript build tasks::
|
||||
Install all Node.js and Bower packages and run several JavaScript build tasks::
|
||||
|
||||
$ npm install
|
||||
$ yarn
|
||||
|
||||
Optional: To enhance performance run Gulp in production mode::
|
||||
|
||||
|
@ -12,10 +12,6 @@
|
||||
* for production mode.
|
||||
*/
|
||||
|
||||
// TODO: Remove the next line when support for Node 0.10.x is dropped.
|
||||
// See https://github.com/postcss/postcss#nodejs-010-and-the-promise-api
|
||||
require('es6-promise').polyfill();
|
||||
|
||||
var argv = require('yargs').argv,
|
||||
gulp = require('gulp'),
|
||||
concat = require('gulp-concat'),
|
||||
@ -26,7 +22,6 @@ var argv = require('yargs').argv,
|
||||
jshint = require('gulp-jshint'),
|
||||
mainBowerFiles = require('main-bower-files'),
|
||||
path = require('path'),
|
||||
rename = require('gulp-rename'),
|
||||
sourcemaps = require('gulp-sourcemaps'),
|
||||
templateCache = require('gulp-angular-templatecache'),
|
||||
through = require('through2'),
|
||||
|
46
package.json
46
package.json
@ -5,31 +5,27 @@
|
||||
"prepublish": "bower install && gulp"
|
||||
},
|
||||
"devDependencies": {
|
||||
"angular-mocks": "~1.5.7",
|
||||
"bower": "~1.7.2",
|
||||
"es6-promise": "~3.0.2",
|
||||
"gulp": "~3.9.0",
|
||||
"gulp-angular-gettext": "~2.1.0",
|
||||
"angular-mocks": "~1.5.11",
|
||||
"bower": "^1.8.0",
|
||||
"gulp": "^3.9.1",
|
||||
"gulp-angular-gettext": "^2.2.0",
|
||||
"gulp-angular-templatecache": "^2.0.0",
|
||||
"gulp-concat": "~2.6.0",
|
||||
"gulp-cssnano": "~2.1.0",
|
||||
"gulp-if": "~2.0.0",
|
||||
"gulp-inject-string": "~1.1.0",
|
||||
"gulp-jshint": "~2.0.0",
|
||||
"gulp-rename": "~1.2.2",
|
||||
"gulp-sourcemaps": "~1.6.0",
|
||||
"gulp-uglify": "~1.5.2",
|
||||
"jasmine": "~2.4.1",
|
||||
"jshint": "~2.9.2",
|
||||
"karma": "~1.1.0",
|
||||
"karma-chrome-launcher": "~1.0.1",
|
||||
"karma-phantomjs-launcher": "~1.0.0",
|
||||
"karma-jasmine": "~1.0.2",
|
||||
"main-bower-files": "~2.11.1",
|
||||
"phantomjs-prebuilt": "~2.1.14",
|
||||
"po2json": "~0.4.1",
|
||||
"sprintf-js": "~1.0.3",
|
||||
"through2": "~2.0.0",
|
||||
"yargs": "~3.32.0"
|
||||
"gulp-concat": "^2.6.1",
|
||||
"gulp-cssnano": "^2.1.2",
|
||||
"gulp-if": "^2.0.2",
|
||||
"gulp-inject-string": "^1.1.0",
|
||||
"gulp-jshint": "^2.0.4",
|
||||
"gulp-sourcemaps": "^2.5.0",
|
||||
"gulp-uglify": "^2.1.2",
|
||||
"jasmine-core": "^2.5.2",
|
||||
"jshint": "^2.9.4",
|
||||
"karma": "^1.5.0",
|
||||
"karma-chrome-launcher": "^2.0.0",
|
||||
"karma-jasmine": "^1.1.0",
|
||||
"karma-phantomjs-launcher": "^1.0.4",
|
||||
"main-bower-files": "^2.13.1",
|
||||
"sprintf-js": "^1.0.3",
|
||||
"through2": "^2.0.3",
|
||||
"yargs": "^7.0.2"
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user