Skip to content

Commit

Permalink
Merge pull request #62 from functional-jslib/issue-#61-types_simplifi…
Browse files Browse the repository at this point in the history
…cation

Issue #61 types simplification
  • Loading branch information
elycruz authored Nov 2, 2022
2 parents 88da1b6 + 849561c commit 1e74609
Show file tree
Hide file tree
Showing 232 changed files with 5,953 additions and 3,362 deletions.
4 changes: 3 additions & 1 deletion .eslintrc → .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"parser": "@typescript-eslint/parser",

"parserOptions": {
"ecmaVersion": 2019,
"ecmaVersion": 2020,
"sourceType": "module",
"project": "./tsconfig.json",
"ecmaFeatures": {
Expand Down Expand Up @@ -34,6 +34,8 @@
"@typescript-eslint/no-use-before-define": 0,
"@typescript-eslint/consistent-type-assertions": 0,
"@typescript-eslint/no-explicit-any": 0,
"@typescript-eslint/no-var-requires": 0,
"@typescript-eslint/ban-ts-comment": 1,
"no-sequences": "off"
}
}
23 changes: 0 additions & 23 deletions .github/workflows/github-actions-demo.yml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: Monorepo Build and Test
name: monorepo-build

on:
push:
Expand All @@ -18,7 +18,7 @@ jobs:

strategy:
matrix:
node-version: [12.x, 16.x]
node-version: [14.x, 16.x, 18.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
Expand Down
39 changes: 39 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages
# and https://docs.github.com/en/actions/guides/publishing-nodejs-packages#publishing-packages-to-the-npm-registry .

name: Publish

on:
release:
types: [created]

jobs:
build-test-publish-to-npm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 18
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

build-test-publish-to-github-pkgs:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 18
registry-url: https://npm.pkg.github.com/
- run: npm ci
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,5 @@
*.log
#**/src/**/*.js
**/src/**/*.js.map

**/.local*
1 change: 1 addition & 0 deletions .node-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v18
2 changes: 2 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
**/.eslint*
**/.travis*
**/.git*
**/.node-version
**/.npmrc

# Dirs
**/markdown-fragments*
Expand Down
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
version=true
5 changes: 3 additions & 2 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const path = require('path'),
testMatch = [
'**/tests/**/*@(.test|_test|.spec).ts',
'**/tests/**/test-*.ts',
'**/tests/**/*@(.test|_test|.spec).@(ts|js)',
'**/tests/**/test-*.@(ts|js)',
],
transform = {
'\\.ts$': 'ts-jest'
Expand All @@ -14,6 +14,7 @@ module.exports = {
projects: [
'fjl',
'fjl-validator',
// 'fjl-validator-recaptcha',
'fjl-inputfilter'
]
.map(packageName => {
Expand Down
Loading

0 comments on commit 1e74609

Please sign in to comment.