Skip to content

Commit e8c0686

Browse files
committed
build: switch to Circle CI, clean up config
2 parents f31aac5 + 5eb7feb commit e8c0686

File tree

11 files changed

+92
-229
lines changed

11 files changed

+92
-229
lines changed

.circleci/config.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
version: 2
2+
jobs:
3+
build:
4+
docker:
5+
- image: circleci/node:8
6+
7+
steps:
8+
- checkout
9+
- restore_cache:
10+
name: Restore Yarn Package Cache
11+
keys:
12+
- v1-yarn-packages-{{ checksum "yarn.lock" }}
13+
14+
- run: yarn config set registry "https://registry.npmjs.org/"
15+
- run: echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > .npmrc
16+
- run: echo "registry=https://registry.npmjs.org/" >> .npmrc
17+
18+
- run:
19+
name: Install Dependencies
20+
command: yarn install --frozen-lockfile
21+
- save_cache:
22+
name: Save Yarn Package Cache
23+
key: v1-yarn-packages-{{ checksum "yarn.lock" }}
24+
paths:
25+
- ~/.cache/yarn
26+
27+
- run:
28+
name: build
29+
command: yarn run prepublishOnly
30+
- run:
31+
name: release
32+
command: yarn run semantic-release || true

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,8 @@
22
.nyc_output
33
coverage
44
es
5-
lib
65
node_modules
6+
.eslintcache
7+
/*.js
8+
/*.js.flow
9+
!/.babelrc.js

.npmignore

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,10 @@
44
.eslintrc
55
.idea
66
.nyc_output
7-
.prettierrc
8-
.storybook
9-
.travis.yml
10-
commitlint.config.js
117
coverage
128
flow-typed
139
lib
1410
node_modules
15-
renovate.json
16-
solano.yml
1711
src
1812
stories
1913
test

.prettierrc

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

.travis.yml

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

README.md

Lines changed: 17 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# react-library-skeleton
22

3-
[![Build Status](https://travis-ci.org/jedwards1211/react-library-skeleton.svg?branch=master)](https://travis-ci.org/jedwards1211/react-library-skeleton)
3+
[![CircleCI](https://circleci.com/gh/jedwards1211/react-library-skeleton.svg?style=svg)](https://circleci.com/gh/jedwards1211/react-library-skeleton)
44
[![Coverage Status](https://codecov.io/gh/jedwards1211/react-library-skeleton/branch/master/graph/badge.svg)](https://codecov.io/gh/jedwards1211/react-library-skeleton)
55
[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)
66
[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/)
77
[![npm version](https://badge.fury.io/js/react-library-skeleton.svg)](https://badge.fury.io/js/react-library-skeleton)
88

9-
This is my personal skeleton for creating a React library npm package. You are welcome to use it.
9+
This is my personal skeleton for creating a React library npm package. You are welcome to use it.
1010

1111
## Quick start
1212

@@ -19,23 +19,18 @@ npm i
1919

2020
## Tools used
2121

22-
* babel 6
23-
* babel-preset-env
24-
* mocha
25-
* chai
26-
* istanbul
27-
* nyc
28-
* babel-plugin-istanbul
29-
* eslint
30-
* eslint-watch
31-
* flow
32-
* flow-watch
33-
* enzyme
34-
* jsdom
35-
* husky
36-
* commitmsg: uses `validate-commit-msg`
37-
* precommit: runs `eslint` and `flow`
38-
* prepush: runs tests
39-
* semantic-release
40-
* Travis CI
41-
* Coveralls
22+
- babel 7
23+
- mocha
24+
- chai
25+
- istanbul
26+
- nyc
27+
- eslint
28+
- flow
29+
- enzyme
30+
- jsdom
31+
- prettier
32+
- husky
33+
- semantic-release
34+
- renovate
35+
- Circle CI
36+
- Codecov.io

commitlint.config.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

package.json

Lines changed: 33 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
"description": "my personal skeleton for React library NPM packages",
55
"main": "index.js",
66
"module": "es/index.js",
7-
"modules.root": "es",
87
"sideEffects": false,
98
"scripts": {
109
"lint": "eslint src test --cache",
@@ -24,7 +23,6 @@
2423
"prepublishOnly": "npm run clean && npm run prettier:check && npm run lint && flow && npm test && npm run build",
2524
"open:coverage": "open coverage/lcov-report/index.html",
2625
"semantic-release": "semantic-release",
27-
"travis-deploy-once": "travis-deploy-once",
2826
"storybook": "start-storybook -p 6006",
2927
"build-storybook": "build-storybook"
3028
},
@@ -41,8 +39,18 @@
4139
"git add"
4240
]
4341
},
42+
"commitlint": {
43+
"extends": [
44+
"@jedwards1211/commitlint-config"
45+
]
46+
},
47+
"prettier": {
48+
"semi": false,
49+
"singleQuote": true,
50+
"trailingComma": "es5"
51+
},
4452
"config": {
45-
"mocha": "-r @babel/register -r jsdom-global/register ./test/configure.js ./test/**.js",
53+
"mocha": "-r @babel/register -r jsdom-global/register test/configure.js test/**.js",
4654
"commitizen": {
4755
"path": "cz-conventional-changelog"
4856
}
@@ -120,14 +128,31 @@
120128
"react": "^16.6.3",
121129
"react-dom": "^16.6.3",
122130
"rimraf": "^2.6.0",
123-
"semantic-release": "^15.1.4",
124-
"travis-deploy-once": "^5.0.9"
125-
},
126-
"peerDependencies": {
127-
"react": "^15.0.0 || ^16.0.0"
131+
"semantic-release": "^15.1.4"
128132
},
129133
"dependencies": {
130134
"@babel/runtime": "^7.1.5",
131135
"prop-types": "^15.0.0"
136+
},
137+
"peerDependencies": {
138+
"react": "^15.0.0 || ^16.0.0"
139+
},
140+
"renovate": {
141+
"extends": [
142+
":separateMajorReleases",
143+
":combinePatchMinorReleases",
144+
":ignoreUnstable",
145+
":prImmediately",
146+
":renovatePrefix",
147+
":updateNotScheduled",
148+
":preserveSemverRanges",
149+
":semanticPrefixFixDepsChoreOthers",
150+
":automergeDisabled",
151+
"group:monorepos"
152+
],
153+
"automerge": true,
154+
"major": {
155+
"automerge": false
156+
}
132157
}
133158
}

renovate.json

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

test/clearConsole.js

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

0 commit comments

Comments
 (0)