Skip to content

Commit 75f969d

Browse files
authored
Release 1.3.0 (#6)
* No longer using Travis CI, not GitHub Actions * Removed TSlint and now use ESlint and Prettier * Updated all of the formatting * Improved the scripts within package.json * Updated all dependencies to the latest versions
1 parent db51563 commit 75f969d

Some content is hidden

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

63 files changed

+9600
-4130
lines changed

.eslintignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
.nyc_output
2+
build
3+
node_modules
4+
reports
5+
6+
.eslintrc.js

.eslintrc.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
module.exports = {
2+
root: true,
3+
parser: '@typescript-eslint/parser',
4+
plugins: ['@typescript-eslint'],
5+
extends: [
6+
'eslint:recommended',
7+
'plugin:@typescript-eslint/recommended',
8+
'prettier',
9+
],
10+
rules: {
11+
'@typescript-eslint/explicit-module-boundary-types': 0,
12+
'@typescript-eslint/no-explicit-any': 0,
13+
},
14+
};

.github/workflows/build-test.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Build and Test
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- main
8+
- releases/*
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/setup-node@v1
15+
- uses: actions/checkout@v2
16+
17+
- name: NPM clean install
18+
run: npm ci
19+
20+
- name: Check linting
21+
run: npm run lint
22+
23+
- name: Check formatting
24+
run: npm run format:check
25+
26+
- name: Run tests
27+
run: npm test
28+
29+
- name: Check coverall
30+
run: npm run coverage:check
31+
32+
- name: Build
33+
run: npm run compile
34+
35+
- name: Send Coveralls report
36+
uses: coverallsapp/github-action@master
37+
with:
38+
github-token: ${{ secrets.GITHUB_TOKEN }}
39+
path-to-lcov: ./reports/coverage/lcov.info

.github/workflows/publish.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Publish
2+
3+
on:
4+
release:
5+
type:
6+
- published
7+
8+
jobs:
9+
publish:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/setup-node@v1
13+
- uses: actions/checkout@v2
14+
15+
- name: NPM use ci to install cleanly
16+
run: npm ci
17+
18+
- name: Clean, test, and compile
19+
run: npm run build
20+
21+
- name: Publish to NPM
22+
uses: JS-DEvTools/npm-publish@v1
23+
with:
24+
token: ${{ secret.NPM_TOKEN }}

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.vscode
22
.nyc_output
3+
build
34
dist
4-
docs
55
node_modules
66
reports
77

.prettierignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
.nyc_output
2+
build
3+
node_modules
4+
reports
5+
6+
package-lock.json

.prettierrc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"semi": true,
3+
"singleQuote": true,
4+
"tabWidth": 2,
5+
"trailingComma": "es5"
6+
}

.travis.yml

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

CHANGELOG.md

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
# Changelog
2+
3+
## v0.1.0 - Initial Release - 2018-08-21
4+
5+
This is the initial alpha release version. The code has been thoroughly tested with 100% coverage. However, the packaging is still under development so a NPM module has not been published.
6+
7+
## v0.2.0 - New Signature Format - 2018-11-10
8+
9+
- This release changes the calling methods from using `XXXX.test()` methods to hiding that test within an exported function from which the classes are actually used. For example:
10+
11+
In v0.1.0, you would write code like this:
12+
13+
```javascript
14+
if (isUsable.test(someVar)) {
15+
console.log('It is usable');
16+
}
17+
```
18+
19+
Starting in v0.2.0, you can now simply say:
20+
21+
```javascript
22+
if (isUsable(someVar)) {
23+
console.log('It is usable');
24+
}
25+
```
26+
27+
- The assert method was moved out of base classes and made very generic across all Comparisons, Conditionals, and Logicals.
28+
29+
## v0.3.0 - Intro two new functions - 2018-11-18
30+
31+
- Added `IsFalsey` and `IsTruthy` Conditionals.
32+
33+
## v0.3.1 - ???
34+
35+
- Updated Conditionals to use [type-detect](https://github.com/chaijs/type-detect) package.
36+
- Updated dependent packages (dev dependencies)
37+
- Updated tsconfig.json to be cleaner (both master src and tests), and to produce js output in dist instead of build
38+
- Updated package.json for NPM publishing
39+
40+
## v1.0.0 - Release - 2019-02-18
41+
42+
- Official 1.0.0 release version
43+
44+
## v1.1.0 - Update build/tsconfig - 2019-07-20
45+
46+
- Updated dependencies
47+
- Updated package.json for consistent scripts across af-XXXX libraries
48+
- removed .vscode folder
49+
- Updated README.md
50+
51+
### Fixes
52+
53+
- v1.1.1 - Updated dependencies / refactored code - 2020-01-04
54+
55+
## v1.2.0 - Optimizations / dependencies - 2020-04-22
56+
57+
- Optimize IsArray.test
58+
- Update dependencies
59+
60+
## v1.3.0 - Build and process overhaul
61+
62+
- Replace TSlint with ESlint
63+
- Introduce Prettier
64+
- Reformat all code with Prettier
65+
- Update app dependencies to the latest versions, update configs as needed
66+
- Update package.json scripts to better support a consistent build process and better commits

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License
2+
3+
Copyright (c) 2019-2021 MREFT Group LLC dba Acme Framework and contributors
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy of
6+
this software and associated documentation files (the "Software"), to deal in
7+
the Software without restriction, including without limitation the rights to
8+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
9+
of the Software, and to permit persons to whom the Software is furnished to do
10+
so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

0 commit comments

Comments
 (0)