Skip to content

Commit 6cb093f

Browse files
Ci with circle-ci
1 parent 7faae6e commit 6cb093f

File tree

4 files changed

+142
-8
lines changed

4 files changed

+142
-8
lines changed

.circleci/config.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# Javascript Node CircleCI 2.0 configuration file
2+
#
3+
# Check https://circleci.com/docs/2.0/language-javascript/ for more details
4+
#
5+
version: 2
6+
jobs:
7+
build:
8+
docker:
9+
# specify the version you desire here
10+
- image: circleci/node:10-browsers
11+
12+
# Specify service dependencies here if necessary
13+
# CircleCI maintains a library of pre-built images
14+
# documented at https://circleci.com/docs/2.0/circleci-images/
15+
# - image: circleci/mongo:3.4.4
16+
17+
working_directory: ~/repo
18+
19+
steps:
20+
- checkout
21+
22+
# Download and cache dependencies
23+
- restore_cache:
24+
keys:
25+
- v1-dependencies-{{ checksum "package.json" }}
26+
# fallback to using the latest cache if no exact match is found
27+
- v1-dependencies-
28+
29+
- run: yarn install
30+
31+
- save_cache:
32+
paths:
33+
- node_modules
34+
key: v1-dependencies-{{ checksum "package.json" }}
35+
36+
# run tests!
37+
- run: yarn test:coverage
38+
39+

example/App.vue

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
<template>
22
<div id="app">
3-
<ploty
4-
:responsive="true"
5-
:data="data"
6-
class="ploty"
7-
/>
3+
<ploty :responsive="true" :data="data" class="item"/>
84
</div>
95
</template>
106

@@ -41,11 +37,10 @@ export default {
4137
font-family: "Avenir", Helvetica, Arial, sans-serif;
4238
-webkit-font-smoothing: antialiased;
4339
-moz-osx-font-smoothing: grayscale;
44-
text-align: center;
4540
color: #2c3e50;
4641
margin-top: 60px;
4742
48-
.ploty {
43+
.item {
4944
width: 50%;
5045
}
5146
}

package-lock.json

Lines changed: 98 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
"lint": "vue-cli-service lint",
99
"doc:build": "npx vuedoc.md --section API --output ./README.md ./src/components/Ploty.vue",
1010
"prepublishOnly": "npm run lint && npm run build",
11-
"test:unit": "vue-cli-service test:unit --coverage"
11+
"test:unit": "vue-cli-service test:unit --coverage",
12+
"test:coverage": "vue-cli-service test:unit --coverage --verbose && codecov"
1213
},
1314
"dependencies": {
1415
"plotly.js": "^1.45.2",
@@ -25,6 +26,7 @@
2526
"babel-core": "7.0.0-bridge.0",
2627
"babel-eslint": "^10.0.1",
2728
"babel-jest": "^23.6.0",
29+
"codecov": "^3.2.0",
2830
"eslint": "^5.8.0",
2931
"eslint-plugin-vue": "^5.0.0",
3032
"ify-loader": "^1.1.0",

0 commit comments

Comments
 (0)