-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from wearehumblebee/feature/target-node
Feature: set "node" as build target
- Loading branch information
Showing
21 changed files
with
1,649 additions
and
1,647 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,10 +23,10 @@ jobs: | |
key: ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }} | ||
# Install dependencies | ||
- name: Install | ||
run: yarn install --frozen-lockfile | ||
run: yarn install --frozen-lockfile --silent | ||
# Run all tests | ||
- name: Test | ||
run: yarn run test | ||
run: yarn run test --ci --coverage | ||
|
||
# Conventional release | ||
release: | ||
|
@@ -55,7 +55,7 @@ jobs: | |
git config user.email [email protected] | ||
# Install dependencies | ||
- name: Install | ||
run: yarn install --frozen-lockfile | ||
run: yarn install --frozen-lockfile --silent | ||
# Build all packages | ||
- name: Build | ||
run: yarn run build | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
yarn commitlint --edit $1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
yarn lint-staged |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
yarn run lint | ||
yarn run typecheck | ||
yarn run test |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"presets": [ | ||
[ | ||
"@babel/preset-env", | ||
{ | ||
"targets": { | ||
"node": "current" | ||
} | ||
} | ||
], | ||
"@babel/preset-typescript" | ||
] | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,24 @@ | ||
// eslint-disable-next-line @typescript-eslint/no-var-requires | ||
const { pathsToModuleNameMapper } = require('ts-jest/utils'); | ||
|
||
// eslint-disable-next-line @typescript-eslint/no-var-requires | ||
const { compilerOptions } = require('./tsconfig.json'); | ||
|
||
module.exports = { | ||
collectCoverage: true, | ||
collectCoverageFrom: ['<rootDir>/src/**/*.(js|jsx|ts|tsx)', '!**/*.test.*', '!**/*.d.ts'], | ||
coverageDirectory: '<rootDir>/reports/coverage', | ||
coveragePathIgnorePatterns: ['node_modules', '<rootDir>/src/cli.ts'], | ||
coverageReporters: ['lcov', 'text'], | ||
displayName: 'unit', | ||
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'], | ||
moduleNameMapper: pathsToModuleNameMapper(compilerOptions.paths, { prefix: '<rootDir>/' }), | ||
moduleFileExtensions: ['ts', 'js'], | ||
moduleNameMapper: { | ||
"src": "<rootDir>/src", | ||
"src/(.*)": "<rootDir>/src/$1" | ||
}, | ||
rootDir: './', | ||
testMatch: ['<rootDir>/tests/**/*.test.(js|jsx|ts|tsx)'], | ||
/** | ||
* We are not testing any UI at all | ||
* @see https://jestjs.io/docs/en/configuration.html#testenvironment-string | ||
*/ | ||
testEnvironment: 'node', | ||
testMatch: ['<rootDir>/tests/**/*.test.(js|ts)'], | ||
transform: { | ||
'^.+\\.jsx?$': 'babel-jest', | ||
'^.+\\.tsx?$': 'ts-jest', | ||
'^.+\\.[jt]sx?$': 'babel-jest' | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.