Skip to content

Commit 5eb7feb

Browse files
committed
build: switch to CircleCI, clean up configuration
1 parent ce19028 commit 5eb7feb

File tree

11 files changed

+87
-216
lines changed

11 files changed

+87
-216
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: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,6 @@ node_modules
44
lib
55
es
66
.eslintcache
7+
/*.js
8+
/*.js.flow
9+
!/.babelrc.js

.npmignore

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,6 @@ scripts
77
node_modules
88
.babelrc
99
.eslintrc
10-
.prettierrc
11-
.travis.yml
1210
.eslintcache
1311
.idea
14-
solano.yml
15-
renovate.json
16-
commitlint.config.js
1712
flow-typed

.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: 15 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# es2015-library-skeleton
22

3-
[![Build Status](https://travis-ci.org/jedwards1211/es2015-library-skeleton.svg?branch=master)](https://travis-ci.org/jedwards1211/es2015-library-skeleton)
3+
[![CircleCI](https://circleci.com/gh/jedwards1211/es2015-library-skeleton.svg?style=svg)](https://circleci.com/gh/jedwards1211/es2015-library-skeleton)
44
[![Coverage Status](https://codecov.io/gh/jedwards1211/es2015-library-skeleton/branch/master/graph/badge.svg)](https://codecov.io/gh/jedwards1211/es2015-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/es2015-library-skeleton.svg)](https://badge.fury.io/js/es2015-library-skeleton)
88

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

1111
## Quick start
1212

@@ -19,19 +19,16 @@ 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-
* pre-commit (runs eslnt and flow)
34-
* semantic-release
35-
* Travis CI
36-
* Coveralls
37-
22+
- babel 7
23+
- mocha
24+
- chai
25+
- istanbul
26+
- nyc
27+
- eslint
28+
- flow
29+
- prettier
30+
- husky
31+
- semantic-release
32+
- renovate
33+
- Circle CI
34+
- Codecov.io

commitlint.config.js

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

package.json

Lines changed: 31 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
"description": "my personal ES2015 library project skeleton",
55
"main": "index.js",
66
"module": "es/index.js",
7-
"modules.root": "es",
87
"sideEffects": false,
98
"scripts": {
109
"lint": "eslint src test --cache",
@@ -23,8 +22,7 @@
2322
"codecov": "nyc report --reporter=text-lcov > coverage.lcov; codecov",
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",
26-
"semantic-release": "semantic-release",
27-
"travis-deploy-once": "travis-deploy-once"
25+
"semantic-release": "semantic-release"
2826
},
2927
"husky": {
3028
"hooks": {
@@ -39,8 +37,18 @@
3937
"git add"
4038
]
4139
},
40+
"commitlint": {
41+
"extends": [
42+
"@jedwards1211/commitlint-config"
43+
]
44+
},
45+
"prettier": {
46+
"semi": false,
47+
"singleQuote": true,
48+
"trailingComma": "es5"
49+
},
4250
"config": {
43-
"mocha": "-r @babel/register ./test/**/*.js",
51+
"mocha": "-r @babel/register test/configure.js test/**/*.js",
4452
"commitizen": {
4553
"path": "cz-conventional-changelog"
4654
}
@@ -106,10 +114,27 @@
106114
"prettier": "^1.15.2",
107115
"prettier-eslint": "^8.8.2",
108116
"rimraf": "^2.6.0",
109-
"semantic-release": "^15.1.4",
110-
"travis-deploy-once": "^5.0.9"
117+
"semantic-release": "^15.1.4"
111118
},
112119
"dependencies": {
113120
"@babel/runtime": "^7.1.5"
121+
},
122+
"renovate": {
123+
"extends": [
124+
":separateMajorReleases",
125+
":combinePatchMinorReleases",
126+
":ignoreUnstable",
127+
":prImmediately",
128+
":renovatePrefix",
129+
":updateNotScheduled",
130+
":preserveSemverRanges",
131+
":semanticPrefixFixDepsChoreOthers",
132+
":automergeDisabled",
133+
"group:monorepos"
134+
],
135+
"automerge": true,
136+
"major": {
137+
"automerge": false
138+
}
114139
}
115140
}

renovate.json

Lines changed: 0 additions & 18 deletions
This file was deleted.
File renamed without changes.

0 commit comments

Comments
 (0)