Skip to content

Commit 73ce3c5

Browse files
authored
Build: Semantic release (#16)
1 parent e58f9a9 commit 73ce3c5

File tree

16 files changed

+4514
-2616
lines changed

16 files changed

+4514
-2616
lines changed

.circleci/config.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
version: 2
2+
jobs:
3+
test_node_10:
4+
docker:
5+
- image: circleci/node:10
6+
steps:
7+
- checkout
8+
- run: npm ci
9+
- run: npm t
10+
11+
test_node_8:
12+
docker:
13+
- image: circleci/node:8
14+
steps:
15+
- checkout
16+
- run: npm ci
17+
- run: npm t
18+
19+
release:
20+
docker:
21+
- image: circleci/node:10
22+
steps:
23+
- checkout
24+
- run: npm ci
25+
# Run optional required steps before releasing
26+
# - run: npm run build-script
27+
- run: npx semantic-release
28+
29+
workflows:
30+
version: 2
31+
test_and_release:
32+
# Run the test jobs first, then the release only when all the test jobs are successful
33+
jobs:
34+
- test_node_10
35+
- test_node_8
36+
- release:
37+
filters:
38+
branches:
39+
only:
40+
- master
41+
requires:
42+
- test_node_10
43+
- test_node_8

.dockerignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
*Dockerfile*
2+
*docker-compose*
3+
node_modules
4+
examples
5+
.git

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
/.idea/
1+
node_modules

.releaserc

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"plugins": [
3+
["@semantic-release/commit-analyzer", {
4+
"preset": "eslint"
5+
}],
6+
["@semantic-release/release-notes-generator", {
7+
"preset": "eslint"
8+
}],
9+
"@semantic-release/changelog",
10+
"@semantic-release/npm",
11+
["@semantic-release/git", {
12+
"message": "Docs: Release ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
13+
}]
14+
"@semantic-release/github"
15+
]
16+
}

.travis.yml

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

Dockerfile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
FROM mhart/alpine-node:12
2+
3+
RUN npm i npm@latest -g
4+
5+
WORKDIR /opt
6+
COPY package*.json ./
7+
RUN npm install --no-optional && npm cache clean --force
8+
ENV PATH /opt/node_modules/.bin:$PATH
9+
10+
WORKDIR /opt/app
11+
COPY . .
12+
13+
EXPOSE 80

docker-compose.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
version: '3.3'
2+
services:
3+
plugin:
4+
build:
5+
context: .
6+
command: tail -F anything
7+
volumes:
8+
- ./:/opt/app:delegated

examples/umd/index.js

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

examples/umd/package.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"name": "examples-umd",
3+
"version": "1.0.0",
4+
"main": "src/index.js",
5+
"scripts": {
6+
"build": "webpack"
7+
},
8+
"keywords": [],
9+
"author": "",
10+
"license": "ISC",
11+
"description": "",
12+
"devDependencies": {
13+
"webpack": "^4.30.0",
14+
"webpack-cli": "^3.3.1"
15+
},
16+
"dependencies": {
17+
"react": "^16.8.6"
18+
}
19+
}

examples/umd/src/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
const react = require('react');

0 commit comments

Comments
 (0)