Skip to content
This repository was archived by the owner on Jul 18, 2022. It is now read-only.

Commit 703203f

Browse files
authored
v3.0.0 (#104)
* All dependecies are up to date + jest.mocked instead of ts-jest mocked due to jestjs/jest#12089 * Example removed * React Styleguidist first try * Better documentation * Styled documentation, changed min & max validators, removed special validators, workflows are tuned up * Reusable docs workflow * Reusable docs workflow fix * Additional item in changelog * Reusable docs workflow fix * Validators refactored * Invert validators result * Readme * min & length validators + integration test suites * fix * fix * one more fix * Exclude/ignore file(s) from Jest coverage by not running relevant tests * fix * code dublication avoided * Seems work * Bumped dependencies * Docs
1 parent f7851f2 commit 703203f

File tree

116 files changed

+29225
-37579
lines changed

Some content is hidden

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

116 files changed

+29225
-37579
lines changed

.editorconfig

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ trim_trailing_whitespace = true
1010
[*.md]
1111
indent_style = space
1212
insert_final_newline = false
13+
indent_size = 4
1314

14-
[package.json]
15+
[{*.yaml,*.yml,package.json}]
1516
indent_style = space
1617
indent_size = 2

.eslintignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
node_modules
22
dist
33
coverage
4-
example
5-
docs
4+
styleguide

.github/dependabot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ updates:
88
- package-ecosystem: "npm"
99
directory: "/" # Location of package manifests
1010
schedule:
11-
interval: "daily"
11+
interval: "weekly"

.github/workflows/push.yml renamed to .github/workflows/coverage.yml

Lines changed: 2 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Lint and test
1+
name: Coverage
22

33
on:
44
push:
@@ -8,37 +8,14 @@ on:
88
- '**.md'
99
branches:
1010
- main
11-
pull_request:
1211

1312
jobs:
14-
lint:
15-
name: Lint
16-
runs-on: ubuntu-latest
17-
steps:
18-
- uses: actions/checkout@v2
19-
- uses: actions/setup-node@v1
20-
with:
21-
node-version: 16
22-
- run: npm ci
23-
- run: npm run lint
24-
test:
25-
name: Test
26-
runs-on: ubuntu-latest
27-
steps:
28-
- uses: actions/checkout@v2
29-
- uses: actions/setup-node@master
30-
with:
31-
node-version: 16
32-
- run: npm ci
33-
- run: npm run test:ci
3413
coverage:
35-
needs: [ test ]
36-
if: github.ref == 'refs/heads/main'
3714
name: Sending test coverage to Code Climate
3815
runs-on: ubuntu-latest
3916
steps:
4017
- uses: actions/checkout@v2
41-
- uses: actions/setup-node@v1
18+
- uses: actions/setup-node@v2
4219
with:
4320
node-version: 16
4421
- run: npm ci

.github/workflows/docs.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Publish documentation
2+
3+
on:
4+
workflow_call:
5+
inputs:
6+
targetFolder:
7+
required: true
8+
type: string
9+
10+
jobs:
11+
docs:
12+
name: Build & publish documentation
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v2
16+
- uses: actions/setup-node@v2
17+
with:
18+
node-version: 16
19+
- run: npm ci
20+
- run: npm run build:docs
21+
- uses: JamesIves/github-pages-deploy-action@4.1.5
22+
with:
23+
branch: docs
24+
folder: styleguide
25+
target-folder: ${{ inputs.targetFolder }}
26+
git-config-name: github-pages-deploy-action
Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,50 @@
1-
name: Lint, test, build and publish
1+
name: Publish
2+
23
on:
34
release:
45
types: [ published ]
6+
57
jobs:
68
lint:
79
name: Lint
810
runs-on: ubuntu-latest
911
steps:
1012
- uses: actions/checkout@v2
11-
- uses: actions/setup-node@v1
13+
- uses: actions/setup-node@v2
1214
with:
1315
node-version: 16
1416
- run: npm ci
1517
- run: npm run lint
18+
1619
test:
1720
name: Test
1821
runs-on: ubuntu-latest
1922
steps:
2023
- uses: actions/checkout@v2
21-
- uses: actions/setup-node@v1
24+
- uses: actions/setup-node@v2
2225
with:
2326
node-version: 16
2427
- run: npm ci
2528
- run: npm run test:ci
29+
2630
publish:
2731
needs: [ lint, test ]
28-
name: Build & publish
32+
name: Build & publish package
2933
runs-on: ubuntu-latest
3034
steps:
3135
- uses: actions/checkout@v2
32-
- uses: actions/setup-node@v1
36+
- uses: actions/setup-node@v2
3337
with:
3438
node-version: 16
3539
- run: npm ci
3640
- run: npm run build
3741
- uses: JS-DevTools/npm-publish@v1
3842
with:
3943
token: ${{ secrets.NPM_TOKEN }}
44+
45+
docs:
46+
needs: [ publish ]
47+
steps:
48+
- uses: ./.github/workflows/docs.yml
49+
with:
50+
targetFolder: docs

.github/workflows/verify.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Verify
2+
3+
on:
4+
push:
5+
tags-ignore:
6+
- '*'
7+
paths-ignore:
8+
- '**.md'
9+
branches:
10+
- main
11+
pull_request:
12+
13+
jobs:
14+
lint:
15+
name: Lint
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/checkout@v2
19+
- uses: actions/setup-node@v2
20+
with:
21+
node-version: 16
22+
- run: npm ci
23+
- run: npm run lint
24+
25+
test:
26+
name: Test
27+
runs-on: ubuntu-latest
28+
steps:
29+
- uses: actions/checkout@v2
30+
- uses: actions/setup-node@v2
31+
with:
32+
node-version: 16
33+
- run: npm ci
34+
- run: npm run test:ci

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@ node_modules/
1515
.npm
1616

1717
dist/
18-
18+
styleguide/
1919
*.code-workspace

.npmignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
*
2+
.*
3+
!CHANGELOG
4+
!dist/*/*
5+
!src/**/*
6+
**/*.test.ts
7+
**/*.spec.ts
8+
**/.*

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
16.12
1+
16

0 commit comments

Comments
 (0)