|
2 | 2 |
|
3 | 3 | A solution for get npm package size **before** download and install with travis-ci!
|
4 | 4 |
|
5 |
| -## How make a get-nps? |
| 5 | +## How get npm package size? |
6 | 6 |
|
7 |
| -1. Edit [`.travis.yml`](https://github.com/xtoolkit/get-nps/edit/master/.travis.yml) in my repo and create a pull. |
8 |
| -2. Go to travis link in your pull page. |
9 |
| -3. Go end line in travis logs and see your npm package installed size! |
10 |
| -4. and continue life :) |
| 7 | +Note: if you use get-nps with **fork** first set up get-nps in your [travis-ci](https://travis-ci.org/) and enable get-nps. |
| 8 | + |
| 9 | +for make get-nps package and get npm package size in travis, following down methods: |
| 10 | +for example get-nps _angularJs_ |
11 | 11 |
|
12 |
| -## Example for angularJs |
| 12 | +1. Edit [`.travis.yml`](https://github.com/xtoolkit/get-nps/edit/master/.travis.yml) (suggested in my repo) and create a pull. |
| 13 | +2. Go to travis link in your pull page. |
| 14 | +3. See travis logs and get-nps details! |
13 | 15 |
|
14 |
| -[logs](https://travis-ci.org/xtoolkit/get-nps/builds/197955003) for [angularJs](https://github.com/angular/angular.js) test: |
| 16 | +## Explain for angularJs demo |
15 | 17 |
|
16 |
| -1. [git clone size](https://travis-ci.org/xtoolkit/get-nps/builds/197955003#L278) |
17 |
| -2. [node_modules dir size](https://travis-ci.org/xtoolkit/get-nps/builds/197955003#L1728) |
18 |
| -3. [Sub npm package size](https://travis-ci.org/xtoolkit/get-nps/builds/197955003#L1737) |
| 18 | +1. Edit [`.travis.yml`](https://github.com/xtoolkit/get-nps/pull/7/files#diff-354f30a63fb0907d4ad57269548329e3R9) and create [#7 Demo for angular/angular.js](https://github.com/xtoolkit/get-nps/pull/7) pull. |
| 19 | +2. Go to [partial](https://github.com/xtoolkit/get-nps/pull/7#partial-pull-merging) pull. |
| 20 | +3. Go first [details travic-cl link](https://travis-ci.org/xtoolkit/get-nps/builds/198417685) and see details! |
| 21 | + - [git size in disk](https://travis-ci.org/xtoolkit/get-nps/builds/198417685#L268) |
| 22 | + - [source size in disk](https://travis-ci.org/xtoolkit/get-nps/builds/198417685#L272) (remove .git dir) |
| 23 | + - [source size in disk after npm install](https://travis-ci.org/xtoolkit/get-nps/builds/198417685#L282) |
| 24 | + - [all deps downloaded](https://travis-ci.org/xtoolkit/get-nps/builds/198417685#L290) (sum tgz) |
0 commit comments