File tree Expand file tree Collapse file tree 5 files changed +5737
-27
lines changed Expand file tree Collapse file tree 5 files changed +5737
-27
lines changed Original file line number Diff line number Diff line change @@ -4,27 +4,26 @@ sudo: false
4
4
5
5
cache :
6
6
directories :
7
- - node_modules
7
+ - $HOME/.yarn-cache
8
8
9
9
before_install :
10
10
- nvm install 4.6.0
11
11
- 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
14
14
15
15
install :
16
16
- 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
20
19
21
20
before_script :
22
21
- psql -c 'create database cargo_registry_test;' -U postgres
23
22
24
23
script :
25
24
- cargo build
26
25
- cargo test
27
- - npm test
26
+ - yarn run ember test
28
27
29
28
after_success :
30
29
- 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
9
9
10
10
## Working on the Frontend
11
11
12
- ```
12
+ ``` bash
13
13
git clone https://github.com/rust-lang/crates.io.git
14
14
cd 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
18
18
```
19
19
20
20
The website's frontend is built with [ Ember.js] ( http://emberjs.com/ ) . This
21
21
makes it possible to work on the frontend without running a local backend.
22
22
To start the frontend run:
23
23
24
24
``` bash
25
- npm run start:staging
25
+ yarn run start:staging
26
26
```
27
27
28
28
This 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
37
37
To do this, run:
38
38
39
39
``` bash
40
- npm start -- --proxy https://crates.io
40
+ yarn start -- --proxy https://crates.io
41
41
# or
42
- npm run start:live
42
+ yarn run start:live
43
43
```
44
44
45
45
** Note** : This requires npm 2.
@@ -52,8 +52,8 @@ phantomjs-prebuilt`.
52
52
Then run the tests with:
53
53
54
54
```
55
- ember test
56
- ember test --server
55
+ yarn run ember test
56
+ yarn run ember test --server
57
57
```
58
58
59
59
## Working on the Backend
@@ -97,7 +97,7 @@ follows:
97
97
6. **Optionally** start a local frontend:
98
98
99
99
```
100
- npm run start:local
100
+ yarn run start:local
101
101
```
102
102
103
103
### Running Tests
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " cargo" ,
3
3
"dependencies" : {
4
+ "Faker" : " ~3.0.0" ,
4
5
"ember" : " ~2.6.0" ,
6
+ "ember-cli-moment-shim" : " ~0.1.0" ,
5
7
"ember-cli-shims" : " 0.1.1" ,
6
8
"ember-cli-test-loader" : " 0.2.2" ,
7
9
"ember-load-initializers" : " 0.1.7" ,
10
12
"ember-resolver" : " ~0.1.20" ,
11
13
"jquery" : " 1.11.3" ,
12
14
"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" ,
15
16
"moment" : " >= 2.8.0" ,
16
17
"moment-timezone" : " >= 0.1.0" ,
17
18
"normalize-css" : " ~3.0.3" ,
18
19
"pretender" : " ~1.1.0" ,
19
- "lodash" : " ~3.7.0" ,
20
- "Faker" : " ~3.0.0"
20
+ "qunit" : " ~1.20.0"
21
21
}
22
22
}
Original file line number Diff line number Diff line change 7
7
"test" : " tests"
8
8
},
9
9
"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"
16
16
},
17
17
"repository" : " " ,
18
18
"engines" : {
21
21
"author" : " " ,
22
22
"license" : " MIT" ,
23
23
"devDependencies" : {
24
+ "bower" : " ^1.7.9" ,
24
25
"broccoli-asset-rev" : " ^2.4.2" ,
25
26
"ember-ajax" : " ^2.0.1" ,
26
27
"ember-cli" : " 2.8.0" ,
You can’t perform that action at this time.
0 commit comments