Skip to content

Commit bee90a0

Browse files
committed
1 parent fe2f5ac commit bee90a0

File tree

20 files changed

+553
-30
lines changed

20 files changed

+553
-30
lines changed

.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#
55
# - https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/dotenv
66

7-
DEBUG='*,-babel*,-compression,-eslint:*,-eslintrc:*,-lint-staged:*,-mocha:*,-typescript-eslint*,-yarn'
7+
DEBUG='*,-babel*,-compression,-eslint:*,-eslintrc:*,-istanbuljs,-lint-staged:*,-mocha:*,-typescript-eslint*,-yarn'
88
DEBUG_COLORS=true
99
GITHUB_WORKSPACE=$(git rev-parse --show-toplevel)
1010
NODE_ENV=development

.eslintignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# ESLint Ignore
22
# https://eslint.org/docs/user-guide/configuring#ignoring-files-and-directories
33

4+
**/.nyc/*
5+
**/coverage/*
46
**/node_modules/*
57

68
.yarn/*

.eslintrc.base.cjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@ module.exports = {
143143
'mts',
144144
'namespace',
145145
'ncc',
146+
'nycrc',
146147
'perf',
147148
'pnv',
148149
'ponyfill',

.github/workflows/continuous-integration.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -50,15 +50,15 @@ jobs:
5050
- id: check-style
5151
name: Check code style
5252
run: yarn check:style
53-
# - id: check-tests
54-
# name: Check test suites
55-
# run: yarn test
5653
- id: env
57-
name: Set build environment variables
54+
name: Set environment variables
5855
run: node ./tools/cli/loadenv.cjs -gc=test
5956
- id: check-build
60-
name: Check builds
61-
run: yarn prepack --tarball --env=test
57+
name: Check build
58+
run: yarn prepack -te=test
59+
- id: test
60+
name: Run test suites
61+
run: yarn test:ci
6262
- id: env-post
63-
name: Post Set build environment variables
63+
name: Post Set environment variables
6464
run: echo "NODE_OPTIONS=''" >> $GITHUB_ENV

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ jspm_packages/
7272
.env*.local
7373

7474
### Testing ###
75+
**/.nyc/
76+
**/coverage/
7577
**/__tests__/results.json
7678

7779
### TypeScript ###

.nycrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": "./.nycrc.base"
3+
}

.nycrc.base

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"all": false,
3+
"cache": false,
4+
"exclude": ["**/__tests__/*", "**/index.ts", "*.fixture.ts", "*.spec.ts"],
5+
"extension": [".ts"],
6+
"reporter": ["lcov", "text"],
7+
"skip-full": false,
8+
"temp-dir": "./.nyc"
9+
}

.prettierignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# Prettier Ignore
22
# See: https://prettier.io/docs/en/ignore.html
33

4+
**/.nyc/*
5+
**/coverage/*
46
**/node_modules/*
57
.husky/_/*
68
.yarn/*

.prettierrc.cjs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,20 @@ module.exports = {
2020
trailingComma: 'none',
2121
overrides: [
2222
{
23-
files: ['*.cts', '*.mts'],
23+
files: ['**/*.cts', '**/*.mts'],
2424
options: {
2525
parser: 'typescript'
2626
}
2727
},
28+
{
29+
files: ['**/.nycrc*'],
30+
options: {
31+
parser: 'json'
32+
}
33+
},
2834
{
2935
files: [
30-
'*.sh',
36+
'**/*.sh',
3137
'.husky/commit-msg',
3238
'.husky/pre-commit',
3339
'.husky/pre-push'

.vscode/settings.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"*.d.cts": "typescript",
1111
"*.d.mts": "typescript",
1212
".env*": "shellscript",
13+
".nycrc*": "json",
1314
"commit-msg": "shellscript",
1415
"pre-commit": "shellscript",
1516
"pre-push": "shellscript"
@@ -46,6 +47,11 @@
4647
"format": "svg",
4748
"icon": "mocha"
4849
},
50+
{
51+
"extensions": [".nycrc.base", ".nycrc.react"],
52+
"format": "svg",
53+
"icon": "nyc"
54+
},
4955
{
5056
"extensions": [
5157
"build.json",

0 commit comments

Comments
 (0)