Skip to content

Commit 0817000

Browse files
committed
add circleci file and badge to README.md
1 parent cc79652 commit 0817000

File tree

3 files changed

+80
-0
lines changed

3 files changed

+80
-0
lines changed

.circleci/config.yml

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
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:lib:
8+
docker:
9+
# specify the version you desire here
10+
- image: circleci/node:8.12.0
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: npm config set '@bit:registry' https://node.bit.dev && npm install
30+
31+
- save_cache:
32+
paths:
33+
- node_modules
34+
key: v1-dependencies-{{ checksum "package.json" }}
35+
36+
# run build:lib!
37+
- run: npm run build:lib
38+
build:bit:
39+
docker:
40+
# specify the version you desire here
41+
- image: circleci/node:8.12.0
42+
43+
# Specify service dependencies here if necessary
44+
# CircleCI maintains a library of pre-built images
45+
# documented at https://circleci.com/docs/2.0/circleci-images/
46+
# - image: circleci/mongo:3.4.4
47+
48+
working_directory: ~/repo
49+
50+
steps:
51+
- checkout
52+
53+
# Download and cache dependencies
54+
- restore_cache:
55+
keys:
56+
- v1-dependencies-{{ checksum "package.json" }}
57+
# fallback to using the latest cache if no exact match is found
58+
- v1-dependencies-
59+
60+
- run: npm config set '@bit:registry' https://node.bit.dev
61+
- run: npm install && sudo npm i bit-bin -g
62+
- run: bit config set analytics_reporting false && bit config set error_reporting false && bit config set user.token ${BIT_TOKEN}
63+
- run: bit import
64+
65+
- save_cache:
66+
paths:
67+
- node_modules
68+
key: v1-dependencies-{{ checksum "package.json" }}
69+
70+
# run build:lib!
71+
- run: npm run build:bit
72+
73+
workflows:
74+
version: 2
75+
build:lib_and_build:bit:
76+
jobs:
77+
- build:lib
78+
- build:bit

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# Vue Spinners CSS Loaders ([React](https://github.com/JoshK2/react-spinners-css), [Angular](https://github.com/JoshK2/ng-spinners))
2+
[![CircleCI](https://circleci.com/gh/JoshK2/vue-spinners-css.svg?style=svg)](https://circleci.com/gh/JoshK2/vue-spinners-css)
23
[![bit components](https://img.shields.io/badge/dynamic/json.svg?color=6e3991&label=bit%20components&query=payload.totalComponents&url=https%3A%2F%2Fapi.bit.dev%2Fscope%2Fjoshk%2Fvue-spinners-css)](https://bit.dev/joshk/vue-spinners-css)
34
[![npm version](https://badge.fury.io/js/vue-spinners-css.svg?u)](https://www.npmjs.com/package/vue-spinners-css)
45
[![GitHub stars](https://img.shields.io/github/stars/joshk2/vue-spinners-css)](https://github.com/JoshK2/vue-spinners-css/stargazers)

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
"serve": "vue-cli-service serve",
3939
"build": "vue-cli-service build",
4040
"build:lib": "rm -rf dist && vue-cli-service build --target lib --inline-vue --name vue-spinners-css ./src/index.js",
41+
"build:bit": "rm -rf dist && bit build",
4142
"lint": "vue-cli-service lint",
4243
"format": "prettier --write \"src/**/*.vue\" \"src/**/*.js\"",
4344
"deploy:npm": "npm publish",

0 commit comments

Comments
 (0)