-
Notifications
You must be signed in to change notification settings - Fork 112
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: rewrite with typescript and module-builder (#456)
Co-authored-by: Rafal Chlodnicki <rchl2k@gmail.com>
- Loading branch information
Showing
42 changed files
with
2,212 additions
and
1,369 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,6 @@ | |
!.nuxt/sentry.*.js | ||
|
||
dist/ | ||
lib/plugin.* | ||
lib/templates/*.* | ||
templates/ | ||
node_modules | ||
|
0
.eslintrc.js → .eslintrc.cjs
100755 → 100644
File renamed without changes.
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 |
---|---|---|
@@ -1,9 +1,51 @@ | ||
# Dependencies | ||
node_modules | ||
*.iml | ||
.idea | ||
|
||
# Logs | ||
*.log* | ||
.nuxt* | ||
.vscode | ||
.DS_STORE | ||
coverage | ||
|
||
# Temp directories | ||
.temp | ||
.tmp | ||
.cache | ||
|
||
# Yarn | ||
**/.yarn/cache | ||
**/.yarn/*state* | ||
|
||
# Generated dirs | ||
dist | ||
|
||
# Nuxt | ||
.nuxt | ||
.output | ||
.vercel_build_output | ||
.build-* | ||
.env | ||
.netlify | ||
|
||
# Env | ||
.env | ||
|
||
# Testing | ||
reports | ||
coverage | ||
*.lcov | ||
.nyc_output | ||
|
||
# VSCode | ||
.vscode | ||
|
||
# Intellij idea | ||
*.iml | ||
.idea | ||
|
||
# OSX | ||
.DS_Store | ||
.AppleDouble | ||
.LSOverride | ||
.AppleDB | ||
.AppleDesktop | ||
Network Trash Folder | ||
Temporary Items | ||
.apdisk |
File renamed without changes.
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,30 @@ | ||
import { defineBuildConfig } from 'unbuild' | ||
|
||
export default defineBuildConfig({ | ||
entries: [ | ||
{ | ||
builder: 'mkdist', | ||
input: './src/templates/', | ||
outDir: './dist/templates', | ||
ext: 'js', | ||
declaration: false, | ||
}, | ||
], | ||
externals: [ | ||
'@nuxt/types', | ||
'@sentry/browser', | ||
'@sentry/cli', | ||
'@sentry/core', | ||
'@sentry/node', | ||
'@sentry/tracing', | ||
'@sentry/types', | ||
'@sentry/webpack-plugin', | ||
'consola', | ||
'hash-sum', | ||
'hookable', | ||
'pathe', | ||
'unctx', | ||
'webpack', | ||
'vuex', | ||
], | ||
}) |
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,17 @@ | ||
import type { JestConfigWithTsJest } from 'ts-jest' | ||
|
||
const jestConfig: JestConfigWithTsJest = { | ||
preset: 'ts-jest/presets/js-with-ts-esm', | ||
testEnvironment: 'node', | ||
// Crashes on CI - https://github.com/facebook/jest/issues/10662 | ||
// collectCoverage: true, | ||
// collectCoverageFrom: [ | ||
// 'dist/module.mjs', | ||
// ], | ||
setupFilesAfterEnv: [ | ||
'./test/setup.ts', | ||
], | ||
moduleFileExtensions: ['js', 'mjs', 'cjs', 'jsx', 'ts', 'tsx', 'json', 'node', 'd.ts'], | ||
} | ||
|
||
export default jestConfig |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.