File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,27 +4,26 @@ sudo: false
44
55cache :
66 directories :
7- - node_modules
7+ - $HOME/.yarn-cache
88
99before_install :
1010 - nvm install 4.6.0
1111 - export PATH=/usr/local/phantomjs-2.0.0/bin:$PATH
12- - " npm config set spin false"
13- - " npm install -g npm@^2 "
12+ - npm config set spin false
13+ - npm install -g yarn
1414
1515install :
1616 - pip install 'travis-cargo<0.2' --user && export PATH=$HOME/.local/bin:$PATH
17- - npm install -g bower
18- - npm install
19- - bower install
17+ - yarn
18+ - yarn run bower install
2019
2120before_script :
2221 - psql -c 'create database cargo_registry_test;' -U postgres
2322
2423script :
2524 - cargo build
2625 - cargo test
27- - npm test
26+ - yarn run ember test
2827
2928after_success :
3029 - travis-cargo coveralls --no-sudo
Original file line number Diff line number Diff line change @@ -9,20 +9,20 @@ This project is built on ember-cli and cargo, visit
99
1010## Working on the Frontend
1111
12- ```
12+ ``` bash
1313git clone https://github.com/rust-lang/crates.io.git
1414cd crates.io/
15- npm install
16- npm install -g ember-cli bower
17- bower install
15+ npm install -g yarn # if you don't have yarn
16+ yarn
17+ yarn run bower install
1818```
1919
2020The website's frontend is built with [ Ember.js] ( http://emberjs.com/ ) . This
2121makes it possible to work on the frontend without running a local backend.
2222To start the frontend run:
2323
2424``` bash
25- npm run start:staging
25+ yarn run start:staging
2626```
2727
2828This will run a local frontend using the staging backend (hosted on Heroku at
@@ -37,9 +37,9 @@ specify arguments to `npm start`. For example you can set the proxy to
3737To do this, run:
3838
3939``` bash
40- npm start -- --proxy https://crates.io
40+ yarn start -- --proxy https://crates.io
4141# or
42- npm run start:live
42+ yarn run start:live
4343```
4444
4545** Note** : This requires npm 2.
@@ -52,8 +52,8 @@ phantomjs-prebuilt`.
5252Then run the tests with:
5353
5454```
55- ember test
56- ember test --server
55+ yarn run ember test
56+ yarn run ember test --server
5757```
5858
5959## Working on the Backend
@@ -97,7 +97,7 @@ follows:
97976. **Optionally** start a local frontend:
9898
9999 ```
100- npm run start:local
100+ yarn run start:local
101101 ```
102102
103103### Running Tests
Original file line number Diff line number Diff line change 11{
22 "name" : " cargo" ,
33 "dependencies" : {
4+ "Faker" : " ~3.0.0" ,
45 "ember" : " ~2.6.0" ,
6+ "ember-cli-moment-shim" : " ~0.1.0" ,
57 "ember-cli-shims" : " 0.1.1" ,
68 "ember-cli-test-loader" : " 0.2.2" ,
79 "ember-load-initializers" : " 0.1.7" ,
1012 "ember-resolver" : " ~0.1.20" ,
1113 "jquery" : " 1.11.3" ,
1214 "loader.js" : " ember-cli/loader.js#3.4.0" ,
13- "qunit" : " ~1.20.0" ,
14- "ember-cli-moment-shim" : " ~0.1.0" ,
15+ "lodash" : " ~3.7.0" ,
1516 "moment" : " >= 2.8.0" ,
1617 "moment-timezone" : " >= 0.1.0" ,
1718 "normalize-css" : " ~3.0.3" ,
1819 "pretender" : " ~1.1.0" ,
19- "lodash" : " ~3.7.0" ,
20- "Faker" : " ~3.0.0"
20+ "qunit" : " ~1.20.0"
2121 }
2222}
Original file line number Diff line number Diff line change 77 "test" : " tests"
88 },
99 "scripts" : {
10- "build" : " ember build" ,
11- "start" : " ember server" ,
12- "start:local" : " ember server --proxy http://127.0.0.1:8888" ,
13- "start:staging" : " ember server --proxy https://staging-crates-io.herokuapp.com" ,
14- "start:live" : " ember server --proxy https://crates.io" ,
15- "test" : " ember test"
10+ "build" : " yarn run ember build" ,
11+ "start" : " yarn run ember server" ,
12+ "start:local" : " yarn run ember server --proxy http://127.0.0.1:8888" ,
13+ "start:staging" : " yarn run ember server --proxy https://staging-crates-io.herokuapp.com" ,
14+ "start:live" : " yarn run ember server --proxy https://crates.io" ,
15+ "test" : " yarn run ember test"
1616 },
1717 "repository" : " " ,
1818 "engines" : {
2121 "author" : " " ,
2222 "license" : " MIT" ,
2323 "devDependencies" : {
24+ "bower" : " ^1.7.9" ,
2425 "broccoli-asset-rev" : " ^2.4.2" ,
2526 "ember-ajax" : " ^2.0.1" ,
2627 "ember-cli" : " 2.8.0" ,
You can’t perform that action at this time.
0 commit comments