-
Notifications
You must be signed in to change notification settings - Fork 2
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 #47 from inversify/chore/add-core-package
Add core package
- Loading branch information
Showing
16 changed files
with
183 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Typescript compiled files | ||
/lib/** | ||
|
||
/tsconfig.tsbuildinfo | ||
/tsconfig.cjs.tsbuildinfo | ||
/tsconfig.esm.tsbuildinfo | ||
|
||
# Test coverage report | ||
/coverage | ||
|
||
# Test mutation report | ||
/reports | ||
|
||
# node modules | ||
/node_modules/ | ||
|
||
# Turborepo files | ||
.turbo/ | ||
|
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,9 @@ | ||
{ | ||
"*.js": [ | ||
"prettier --write" | ||
], | ||
"*.ts": [ | ||
"prettier --write", | ||
"eslint" | ||
] | ||
} |
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 @@ | ||
**/*.spec.js | ||
**/*.spec.js.map | ||
**/*.ts | ||
!lib/**/*.d.ts | ||
lib/**/*.spec.d.ts | ||
|
||
.lintstagedrc.json | ||
eslint.config.mjs | ||
jest.config.mjs | ||
jest.config.stryker.mjs | ||
jest.js.config.mjs | ||
prettier.config.mjs | ||
stryker.config.mjs | ||
tsconfig.json | ||
tsconfig.cjs.json | ||
tsconfig.esm.json | ||
tsconfig.tsbuildinfo |
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 @@ | ||
[![Test coverage](https://codecov.io/gh/inversify/monorepo/branch/main/graph/badge.svg?flag=%40inversifyjs%2Fcore)](https://codecov.io/gh/inversify/monorepo/branch/main/graph/badge.svg?flag=%40inversifyjs%2Fcore) | ||
[![npm version](https://img.shields.io/github/package-json/v/inversify/monorepo?filename=packages%2Fcontainer%2Flibraries%2Fcore%2Fpackage.json&style=plastic)](https://www.npmjs.com/package/@inversifyjs/core) | ||
|
||
# @inversifyjs/core | ||
|
||
Inversify monorepo core modules. |
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,3 @@ | ||
import myconfig from '@inversifyjs/foundation-eslint-config'; | ||
|
||
export default [...myconfig]; |
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,3 @@ | ||
import { tsGlobalConfig } from '@inversifyjs/foundation-jest-config'; | ||
|
||
export default tsGlobalConfig; |
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,9 @@ | ||
import { getJestTsProjectConfig } from '@inversifyjs/foundation-jest-config'; | ||
|
||
const tsGlobalConfig = getJestTsProjectConfig( | ||
'All', | ||
['/node_modules', '.int.spec.ts'], | ||
'.spec.ts', | ||
); | ||
|
||
export default tsGlobalConfig; |
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,3 @@ | ||
import { jsGlobalConfig } from '@inversifyjs/foundation-jest-config'; | ||
|
||
export default jsGlobalConfig; |
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,77 @@ | ||
{ | ||
"author": "Roberto Pintos López", | ||
"bugs": { | ||
"url": "https://github.com/inversify/monorepo/issues" | ||
}, | ||
"description": "InversifyJs core package", | ||
"devDependencies": { | ||
"@eslint/js": "9.13.0", | ||
"@jest/globals": "29.7.0", | ||
"@stryker-mutator/core": "8.6.0", | ||
"@stryker-mutator/jest-runner": "8.6.0", | ||
"@stryker-mutator/typescript-checker": "8.6.0", | ||
"@types/node": "20.17.1", | ||
"@typescript-eslint/eslint-plugin": "8.11.0", | ||
"@typescript-eslint/parser": "8.11.0", | ||
"jest": "29.7.0", | ||
"prettier": "3.3.3", | ||
"rimraf": "6.0.1", | ||
"ts-jest": "29.2.5", | ||
"ts-node": "10.9.2", | ||
"typescript": "5.6.3" | ||
}, | ||
"devEngines": { | ||
"node": "^20.18.0", | ||
"pnpm": "^9.12.1" | ||
}, | ||
"homepage": "https://inversify.io", | ||
"keywords": [ | ||
"dependency injection", | ||
"dependency inversion", | ||
"di", | ||
"inversion of control container", | ||
"ioc", | ||
"javascript", | ||
"node", | ||
"typescript" | ||
], | ||
"license": "MIT", | ||
"main": "lib/cjs/index.js", | ||
"module": "lib/esm/index.js", | ||
"exports": { | ||
".": { | ||
"import": "./lib/esm/index.js", | ||
"require": "./lib/cjs/index.js" | ||
} | ||
}, | ||
"name": "@inversifyjs/core", | ||
"os": [ | ||
"darwin", | ||
"linux" | ||
], | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/inversify/monorepo.git" | ||
}, | ||
"scripts": { | ||
"build": "pnpm run build:cjs && pnpm run build:esm", | ||
"build:cjs": "tsc --build tsconfig.cjs.json && pnpm exec foundation-ts-package-cjs ./lib/cjs", | ||
"build:esm": "tsc --build tsconfig.esm.json && pnpm exec foundation-ts-package-esm ./lib/esm", | ||
"build:clean": "rimraf lib", | ||
"format": "prettier --write ./src/**/*.ts", | ||
"lint": "eslint ./src", | ||
"prebuild": "pnpm run build:clean", | ||
"test": "jest --config=jest.config.mjs --runInBand", | ||
"test:integration:js": "pnpm run test:js --selectProjects Integration", | ||
"test:js": "jest --config=jest.js.config.mjs --runInBand", | ||
"test:js:coverage": "pnpm run test:unit:js --coverage", | ||
"test:mutation": "stryker run", | ||
"test:uncommitted": "pnpm run test --changedSince=HEAD", | ||
"test:unit:js": "pnpm run test:js --selectProjects Unit" | ||
}, | ||
"sideEffects": false, | ||
"version": "1.0.0" | ||
} |
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,3 @@ | ||
import config from '@inversifyjs/foundation-prettier-config'; | ||
|
||
export default config; |
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 {}; |
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,3 @@ | ||
import config from '@inversifyjs/foundation-stryker-config'; | ||
|
||
export default config; |
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,10 @@ | ||
{ | ||
"$schema": "http://json.schemastore.org/tsconfig", | ||
"extends": "@inversifyjs/foundation-typescript-config/tsconfig.base.cjs.json", | ||
"compilerOptions": { | ||
"outDir": "./lib/cjs", | ||
"rootDir": "./src", | ||
"tsBuildInfoFile": "tsconfig.cjs.tsbuildinfo" | ||
}, | ||
"include": ["src"] | ||
} |
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,10 @@ | ||
{ | ||
"$schema": "http://json.schemastore.org/tsconfig", | ||
"extends": "@inversifyjs/foundation-typescript-config/tsconfig.base.esm.json", | ||
"compilerOptions": { | ||
"outDir": "./lib/esm", | ||
"rootDir": "./src", | ||
"tsBuildInfoFile": "tsconfig.esm.tsbuildinfo" | ||
}, | ||
"include": ["src"] | ||
} |
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 @@ | ||
{ | ||
"$schema": "http://json.schemastore.org/tsconfig", | ||
"extends": "./tsconfig.esm.json" | ||
} |