Skip to content

Commit 981261d

Browse files
Merge pull request #199 from sebgroup/new-release-with-breaking-changes
New release with breaking changes
2 parents 623cfc3 + fdb1313 commit 981261d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+4639
-5157
lines changed

.github/workflows/build-check.yml

Lines changed: 10 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,27 +2,20 @@ name: Build Check
22

33
on:
44
pull_request:
5-
branches:
6-
- master
7-
- develop
5+
branches: [ master, develop ]
86

97
jobs:
108
build_check:
11-
runs-on: [ubuntu-latest]
9+
runs-on: ubuntu-latest
1210
strategy:
1311
matrix:
14-
node: [ '10', '8' ]
12+
node: [ '14', '13', '12' ]
1513
steps:
16-
- uses: actions/checkout@v2.0.0
17-
- name: Setup node
18-
uses: actions/setup-node@v1.1.0
14+
- uses: actions/checkout@v2
15+
- uses: actions/setup-node@v1
1916
with:
20-
node-version: ${{ matrix.node }}
21-
- name: installing dependencies
22-
run: npm install
23-
- name: checking lint
24-
run: npm run lint
25-
- name: running unit tests
26-
run: npm test
27-
- name: building
28-
run: npm run build:production
17+
version: ${{ matrix.node }}
18+
- run: npm ci
19+
- run: npm run lint
20+
- run: npm test
21+
- run: npm run build

.github/workflows/publish.yml

Lines changed: 24 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: CI
1+
name: Release
22

33
on:
44
push:
@@ -7,40 +7,27 @@ on:
77

88
jobs:
99
publish:
10-
11-
runs-on: [ubuntu-latest]
12-
10+
runs-on: ubuntu-latest
1311
steps:
14-
- uses: actions/checkout@v2.0.0
15-
16-
- name: Setup node
17-
uses: actions/setup-node@v1.1.0
18-
with:
19-
node-version: '10.x'
20-
21-
- name: installing dependencies
22-
run: npm ci
23-
24-
- name: building
25-
run: npm run build
26-
27-
- name: preparing to publish
28-
run: npm config set //registry.npmjs.org/:_authToken=$NPM_TOKEN
29-
env:
30-
CI: true
31-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
32-
33-
- name: semantic release
34-
run: npm run semantic-release
35-
env:
36-
CI: true
37-
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
38-
GH_TOKEN: ${{ secrets.GH_TOKEN }}
39-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
40-
41-
- name: publish coverage
42-
uses: coverallsapp/github-action@v1.0.1
43-
with:
44-
github-token: ${{ secrets.GITHUB_TOKEN }}
45-
env:
46-
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_TOKEN }}
12+
- uses: actions/checkout@v2
13+
- uses: actions/setup-node@v1
14+
with:
15+
version: 12
16+
- run: npm ci
17+
- run: npm test
18+
- run: npm run build
19+
- run: npm config set //registry.npmjs.org/:_authToken=$NPM_TOKEN
20+
env:
21+
CI: true
22+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
23+
- run: npm run semantic-release
24+
env:
25+
CI: true
26+
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
27+
GH_TOKEN: ${{ secrets.GH_TOKEN }}
28+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
29+
- uses: coverallsapp/github-action@v1.1.1
30+
with:
31+
github-token: $${{ secrets.GH_TOKEN }}
32+
env:
33+
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_TOKEN }}

README.md

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,45 @@
11
[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/)
22
[![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)
3-
[![Build Status](https://github.com/sebgroup/frontend-tools/workflows/CI/badge.svg)](https://github.com/sebgroup/frontend-tools/actions?query=workflow%3ACI)
43
[![Coverage Status](https://coveralls.io/repos/github/sebgroup/frontend-tools/badge.svg?branch=master)](https://coveralls.io/github/sebgroup/frontend-tools?branch=master)
54
[![Dependabot Status](https://api.dependabot.com/badges/status?host=github&repo=sebgroup/frontend-tools)](https://dependabot.com)
5+
[![npm version](https://badge.fury.io/js/%40sebgroup%2Ffrontend-tools.svg)](https://www.npmjs.com/package/@sebgroup/frontend-tools)
6+
![tree shakable](https://img.shields.io/badge/%F0%9F%8C%B2-tree--shakable-brightgreen)
7+
68

79
# **Frontend tools**
810

911
A set of frontend utilities that can be used with any javascript application. It's lightweight and intuitive.
1012

13+
This library is **tree-shakable** 🎉.
14+
1115
## **Installation**
1216

17+
### npm
18+
1319
```terminal
1420
npm install @sebgroup/frontend-tools
1521
```
1622

23+
### yarn
24+
25+
```terminal
26+
yarn add @sebgroup/frontend-tools
27+
```
28+
1729
## **Usage**
1830

1931
Using `isStrongPassword` utility as an example, this is how you import it:
2032

2133
### ES6
2234

2335
```typescript
24-
import { isStrongPassword } from "@sebgroup/frontend-tools/dist/isStrongPassword";
36+
import { isStrongPassword } from "@sebgroup/frontend-tools";
2537
```
2638

2739
### ES5
2840

2941
```typescript
30-
const isStrongPassword = require("@sebgroup/frontend-tools/dist/isStrongPassword");
42+
const isStrongPassword = require("@sebgroup/frontend-tools");
3143
```
3244

3345
## **How to contribute**

bin/generate-api

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

0 commit comments

Comments
 (0)