-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bdac6d9
commit ac580ea
Showing
19 changed files
with
168 additions
and
78 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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
{ | ||
"packages/demo": "2.1.0" | ||
"packages/core": "1.0.0", | ||
"packages/demo": "1.0.0" | ||
} |
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
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 @@ | ||
module.exports = { | ||
// timeout of 3 minutes | ||
timeout: '180000', | ||
target: 'minor', | ||
reject: [/@types/], | ||
}; |
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 @@ | ||
# Core |
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,18 @@ | ||
const { pathsToModuleNameMapper } = require('ts-jest'); | ||
|
||
const tsconfig = require('./tsconfig.json'); | ||
|
||
const baseConfig = require('../../jest.config.js'); | ||
|
||
const packageName = 'core'; | ||
|
||
module.exports = { | ||
...baseConfig, | ||
rootDir: '../..', | ||
roots: [`<rootDir>/packages/${packageName}`], | ||
displayName: packageName, | ||
globals: {}, | ||
moduleNameMapper: { | ||
...pathsToModuleNameMapper(tsconfig.compilerOptions.paths, { prefix: `<rootDir>/packages/${packageName}` }), | ||
}, | ||
}; |
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,48 @@ | ||
{ | ||
"name": "@stijnvanhulle/template-core", | ||
"version": "1.0.0", | ||
"description": "Core", | ||
"repository": { | ||
"type": "git", | ||
"url": "git://github.com/stijnvanhulle/template.git", | ||
"directory": "packages/core" | ||
}, | ||
"license": "MIT", | ||
"author": "Stijn Van Hulle <[email protected]", | ||
"sideEffects": false, | ||
"main": "dist/index.mjs", | ||
"unpkg": "dist/index.global.js", | ||
"module": "dist/index.js", | ||
"browser": "build/index.global.js", | ||
"types": "./dist/index.d.ts", | ||
"exports": { | ||
".": { | ||
"require": "./dist/index.js", | ||
"import": "./dist/index.mjs" | ||
} | ||
}, | ||
"files": [ | ||
"dist" | ||
], | ||
"scripts": { | ||
"build": "tsup", | ||
"start": "tsup --watch", | ||
"release": "pnpm publish --no-git-check", | ||
"prepack": "pnpm build", | ||
"pre-commit": "echo 'pre-commit not configured'", | ||
"pre-push": "pnpm typecheck", | ||
"test": "jest --config ../../jest.config.js --runInBand --testPathPattern=packages/core/src", | ||
"test:local": "jest --config ../../jest.config.js --testPathPattern=packages/core/src --maxWorkers=50%", | ||
"test:watch": "jest --config ../../jest.config.js --testPathPattern=packages/core/src --maxWorkers=25% --watch", | ||
"upgrade": "ncu -u", | ||
"upgrade:local": "ncu --interactive --doctor", | ||
"typecheck": "tsc -p ./tsconfig.json --noEmit" | ||
}, | ||
"devDependencies": { | ||
"tsup": "^6.4.0" | ||
}, | ||
"publishConfig": { | ||
"access": "public", | ||
"registry": "https://registry.npmjs.org/" | ||
} | ||
} |
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,5 @@ | ||
import { core } from './index'; | ||
|
||
test('Core', () => { | ||
expect(core).toBeDefined(); | ||
}); |
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 @@ | ||
export const core = 'Core'; |
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,31 @@ | ||
{ | ||
"$schema": "https://json.schemastore.org/tsconfig", | ||
"compilerOptions": { | ||
"target": "esnext", | ||
"module": "esnext", | ||
"moduleResolution": "node", | ||
"sourceMap": true, | ||
"strictNullChecks": true, | ||
"jsx": "react", | ||
"declaration": true, | ||
"outDir": "es", | ||
"experimentalDecorators": true, | ||
"skipLibCheck": true, | ||
"baseUrl": ".", | ||
"resolveJsonModule": true, | ||
"esModuleInterop": true, | ||
"allowJs": true, | ||
"typeRoots": [ | ||
"node_modules/@types", | ||
"../../node_modules/@types" | ||
], | ||
"paths": { | ||
} | ||
}, | ||
"include": ["./src/**/*"], | ||
"exclude": [ | ||
"**/node_modules", | ||
"**/types/**", | ||
"**/*.test.ts" | ||
] | ||
} |
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,12 @@ | ||
import { defineConfig } from 'tsup'; | ||
|
||
export default defineConfig({ | ||
entry: ['src/index.ts'], | ||
treeshake: true, | ||
sourcemap: true, | ||
minify: true, | ||
splitting: false, | ||
clean: true, | ||
dts: true, | ||
format: ['cjs', 'esm', 'iife'], | ||
}); |
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
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,5 +1,5 @@ | ||
import { helloWorld } from "./index"; | ||
|
||
test("Demo", () => { | ||
expect(helloWorld).toBeDefined(); | ||
expect(helloWorld).toBe("Hello World Core!"); | ||
}); |
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 +1,3 @@ | ||
export const helloWorld = "Hello World!"; | ||
import { core } from "@stijnvanhulle/template-core"; | ||
|
||
export const helloWorld = `Hello World ${core}!`; |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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,14 +1,33 @@ | ||
{ | ||
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json", | ||
"separate-pull-requests": true, | ||
"separate-pull-requests": false, | ||
"packages": { | ||
"packages/core": { | ||
"component": "@stijnvanhulle/template-core", | ||
"changelog-path": "CHANGELOG.md", | ||
"release-type": "node", | ||
"bump-minor-pre-major": false, | ||
"bump-patch-for-minor-pre-major": false, | ||
"draft": false, | ||
"prerelease": false | ||
}, | ||
"packages/demo": { | ||
"component": "@stijnvanhulle/template-demo", | ||
"changelog-path": "CHANGELOG.md", | ||
"release-type": "node", | ||
"bump-minor-pre-major": false, | ||
"bump-patch-for-minor-pre-major": false, | ||
"draft": false, | ||
"prerelease": false | ||
} | ||
} | ||
}, | ||
"plugins": [ | ||
{ | ||
"type": "linked-versions", | ||
"group-name": "@stijnvanhulle", | ||
"components": [ | ||
"@code-regenerator/template-core", "@code-regenerator/template/template-demo" | ||
] | ||
} | ||
] | ||
} |
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