Skip to content

Commit fa5f077

Browse files
committed
Adding coveralls
1 parent 5eebb92 commit fa5f077

10 files changed

Lines changed: 51 additions & 46 deletions

File tree

.circleci/config.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,5 @@ jobs:
3535
key: v1-dependencies-{{ checksum "package.json" }}
3636

3737
# run tests!
38-
- run: yarn test --single-run
38+
- run: yarn test --single-run --code-coverage
39+
- run: cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js

.coveralls.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
repo_token: 6f33SwnZvKDxsFhANhh9Ucy08g0C0se9Y

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
/dist-server
66
/tmp
77
/out-tsc
8+
dist.tgz
89

910
# dependencies
1011
/node_modules

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@
77
> [Plotly](https://plot.ly/).
88
99
[![CircleCI](https://circleci.com/gh/plotly/angular-plotly.js.svg?style=svg)](https://circleci.com/gh/plotly/angular-plotly.js)
10-
10+
[![Coverage Status](https://coveralls.io/repos/github/plotly/angular-plotly.js/badge.svg?branch=master)](https://coveralls.io/github/plotly/angular-plotly.js?branch=master)

ROADMAP.md

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@
88
# 0.2
99

1010
* [x] Add the missing properties (e.g.: `revision`, `frames`, `divId`, `className`, `debug`, `useResizeHandler`)
11-
* [ ] Add the events watchers in the component
12-
* [ ] Setup the plotly folder (module) as the app for publishing
11+
* [x] Add the events watchers in the component
12+
* [x] Setup the plotly folder (module) as the app for publishing
1313
* [ ] Write tests which guaranties the `npm link` and `import { PlotlyModule } from 'angular-plotly.js'`
1414
* [ ] Create the initial documentation (with the properties and link to demo)
1515

1616
# 0.3
1717

18-
* [ ] Create the script to publish ( npm publish )
18+
* [x] Create the script to publish ( npm publish )
1919
* [ ] Improve documentation with all properties and events
2020
* [ ] Try to create a good state management in Angular style
2121
* [ ] Create the "Quick start" and "development" guide in the Docs
@@ -25,5 +25,10 @@
2525

2626
* [ ] Create a better `plotly.js.d.ts` file
2727
* [ ] Customizing the plotly.js bundle
28-
* [ ] Loading from a `<script>` tag (Make it possible to load in [codepen.io](https://codepen.io/), [jsfiddle](https://jsfiddle.net/))
29-
* [ ] Create a Demo similar to an editor, where it's possible to change the value and see the
28+
* [x] Loading from a `<script>` tag (Make it possible to load in [codepen.io](https://codepen.io/), [jsfiddle](https://jsfiddle.net/))
29+
* [ ] Create a Demo similar to an editor, where it's possible to change the value and see the
30+
31+
32+
# 0.5
33+
34+
* [ ] Ask to add it to cdnjs

bin/build

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@ fi
1010
npm run build
1111

1212
mv ./angular-plotly.js.metadata.json dist
13+
cp ./README.md dist

ng-package.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"$schema": "./node_modules/ng-packagr/package.schema.json",
3+
"lib": {
4+
"entryFile": "public_api.ts"
5+
}
6+
}

package.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,15 @@
66
"scripts": {
77
"ng": "ng",
88
"start": "ng serve",
9-
"build": "ng-packagr -p package.json",
10-
"test": "ng test",
11-
"lint": "ng lint"
9+
"build": "ng-packagr -p ng-package.json",
10+
"test": "ng test"
1211
},
12+
"keywords": [
13+
"angular",
14+
"plotly",
15+
"plotly.js",
16+
"graph"
17+
],
1318
"dependencies": {},
1419
"devDependencies": {
1520
"@angular/cli": "~1.7.3",
@@ -24,6 +29,7 @@
2429
"@types/jasminewd2": "~2.0.2",
2530
"@types/node": "~6.0.60",
2631
"codelyzer": "^4.0.1",
32+
"coveralls": "^3.0.0",
2733
"jasmine-core": "~2.8.0",
2834
"jasmine-spec-reporter": "~4.2.1",
2935
"karma": "~2.0.0",
@@ -43,11 +49,5 @@
4349
"@angular/core": ">5.2.0",
4450
"@angular/platform-browser": ">5.2.10",
4551
"plotly.js": ">1.34.0"
46-
},
47-
"$schema": "./node_modules/ng-packagr/package.schema.json",
48-
"ngPackage": {
49-
"lib": {
50-
"entryFile": "public_api.ts"
51-
}
5252
}
5353
}

protractor.conf.js

Lines changed: 0 additions & 28 deletions
This file was deleted.

yarn.lock

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1943,6 +1943,16 @@ country-regex@^1.1.0:
19431943
version "1.1.0"
19441944
resolved "https://registry.yarnpkg.com/country-regex/-/country-regex-1.1.0.tgz#51c333dcdf12927b7e5eeb9c10ac8112a6120896"
19451945

1946+
coveralls@^3.0.0:
1947+
version "3.0.0"
1948+
resolved "https://registry.yarnpkg.com/coveralls/-/coveralls-3.0.0.tgz#22ef730330538080d29b8c151dc9146afde88a99"
1949+
dependencies:
1950+
js-yaml "^3.6.1"
1951+
lcov-parse "^0.0.10"
1952+
log-driver "^1.2.5"
1953+
minimist "^1.2.0"
1954+
request "^2.79.0"
1955+
19461956
cpx@^1.5.0:
19471957
version "1.5.0"
19481958
resolved "https://registry.yarnpkg.com/cpx/-/cpx-1.5.0.tgz#185be018511d87270dedccc293171e37655ab88f"
@@ -4893,7 +4903,7 @@ js-tokens@^3.0.0, js-tokens@^3.0.2:
48934903
version "3.0.2"
48944904
resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-3.0.2.tgz#9866df395102130e38f7f996bceb65443209c25b"
48954905

4896-
js-yaml@^3.10.0, js-yaml@^3.4.3, js-yaml@^3.7.0:
4906+
js-yaml@^3.10.0, js-yaml@^3.4.3, js-yaml@^3.6.1, js-yaml@^3.7.0:
48974907
version "3.11.0"
48984908
resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.11.0.tgz#597c1a8bd57152f26d622ce4117851a51f5ebaef"
48994909
dependencies:
@@ -5101,6 +5111,10 @@ lcid@^1.0.0:
51015111
dependencies:
51025112
invert-kv "^1.0.0"
51035113

5114+
lcov-parse@^0.0.10:
5115+
version "0.0.10"
5116+
resolved "https://registry.yarnpkg.com/lcov-parse/-/lcov-parse-0.0.10.tgz#1b0b8ff9ac9c7889250582b70b71315d9da6d9a3"
5117+
51045118
left-pad@^1.2.0:
51055119
version "1.3.0"
51065120
resolved "https://registry.yarnpkg.com/left-pad/-/left-pad-1.3.0.tgz#5b8a3a7765dfe001261dde915589e782f8c94d1e"
@@ -5245,6 +5259,10 @@ [email protected], lodash@^4.0.0, lodash@^4.11.1, lodash@^4.14.0, lodash@^4.15.0, lo
52455259
version "4.17.5"
52465260
resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.5.tgz#99a92d65c0272debe8c96b6057bc8fbfa3bed511"
52475261

5262+
log-driver@^1.2.5:
5263+
version "1.2.7"
5264+
resolved "https://registry.yarnpkg.com/log-driver/-/log-driver-1.2.7.tgz#63b95021f0702fedfa2c9bb0a24e7797d71871d8"
5265+
52485266
log4js@^2.3.9:
52495267
version "2.5.3"
52505268
resolved "https://registry.yarnpkg.com/log4js/-/log4js-2.5.3.tgz#38bb7bde5e9c1c181bd75e8bc128c5cd0409caf1"
@@ -7360,7 +7378,7 @@ repeating@^2.0.0:
73607378
dependencies:
73617379
is-finite "^1.0.0"
73627380

7363-
request@2, request@^2.0.0, request@^2.74.0:
7381+
request@2, request@^2.0.0, request@^2.74.0, request@^2.79.0:
73647382
version "2.85.0"
73657383
resolved "https://registry.yarnpkg.com/request/-/request-2.85.0.tgz#5a03615a47c61420b3eb99b7dba204f83603e1fa"
73667384
dependencies:

0 commit comments

Comments
 (0)