This repository has been archived by the owner on Aug 19, 2022. It is now read-only.
-
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.
📦 isolate jsonSchemaCommand in a package
- Loading branch information
1 parent
3aef0ad
commit 88520cf
Showing
27 changed files
with
526 additions
and
150 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
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
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
120 changes: 0 additions & 120 deletions
120
packages/core/src/command/implementations/jsonSchema.util.test.ts
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 @@ | ||
dist |
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,2 @@ | ||
const baseConfig = require('../../.lintstagedrc'); | ||
module.exports = baseConfig; |
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 @@ | ||
const commonBabelConfig = require('../../commonConfiguration/babel.config'); | ||
|
||
module.exports = commonBabelConfig(); |
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 @@ | ||
/** @type {import('dependency-cruiser').IConfiguration} */ | ||
const baseConfig = require('../../dependency-cruiser'); | ||
module.exports = baseConfig; |
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,8 @@ | ||
const commonConfig = require('../../commonConfiguration/jest.config'); | ||
|
||
const config = { | ||
...commonConfig, | ||
moduleDirectories: ['node_modules', '<rootDir>'], | ||
}; | ||
|
||
module.exports = 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,82 @@ | ||
{ | ||
"name": "@castore/json-schema-command", | ||
"version": "1.0.3", | ||
"license": "MIT", | ||
"homepage": "https://github.com/theodo/castore#readme", | ||
"bugs": "https://github.com/theodo/castore/issues", | ||
"repository": "theodo/castore.git", | ||
"keywords": [ | ||
"event", | ||
"source", | ||
"store", | ||
"typescript" | ||
], | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"sideEffects": false, | ||
"files": [ | ||
"dist" | ||
], | ||
"main": "dist/cjs/index.js", | ||
"module": "dist/esm/index.js", | ||
"types": "dist/types/index.d.ts", | ||
"scripts": { | ||
"lint-fix": "yarn linter-base-config --fix", | ||
"lint-fix-all": "yarn lint-fix .", | ||
"linter-base-config": "eslint --ext=js,ts .", | ||
"package": "rm -rf dist && yarn package-cjs && yarn package-esm && yarn package-types", | ||
"package-cjs": "NODE_ENV=cjs yarn transpile --out-dir dist/cjs --source-maps", | ||
"package-esm": "NODE_ENV=esm yarn transpile --out-dir dist/esm --source-maps", | ||
"package-types": "ttsc -p tsconfig.build.json", | ||
"test": "yarn test-linter && yarn test-type && yarn test-circular && yarn test-unit", | ||
"test-circular": "yarn depcruise --validate dependency-cruiser.js .", | ||
"test-linter": "yarn linter-base-config .", | ||
"test-type": "tsc --noEmit --emitDeclarationOnly false", | ||
"test-unit": "yarn jest", | ||
"transpile": "babel src --extensions .ts --quiet", | ||
"watch": "rm -rf dist && concurrently 'yarn:package-* --watch'" | ||
}, | ||
"dependencies": { | ||
"ts-toolbelt": "^9.6.0" | ||
}, | ||
"devDependencies": { | ||
"@babel/cli": "^7.17.6", | ||
"@babel/core": "^7.17.9", | ||
"@babel/plugin-transform-runtime": "^7.17.0", | ||
"@babel/preset-env": "^7.16.11", | ||
"@babel/preset-typescript": "^7.16.7", | ||
"@castore/core": "workspace:", | ||
"@types/node": "^17.0.29", | ||
"@zerollup/ts-transform-paths": "^1.7.18", | ||
"babel-plugin-module-resolver": "^4.1.0", | ||
"concurrently": "^7.1.0", | ||
"dependency-cruiser": "^11.7.0", | ||
"eslint": "^8.14.0", | ||
"jest": "^27.5.1", | ||
"json-schema-to-ts": "^2.5.4", | ||
"prettier": "^2.6.2", | ||
"ts-node": "^10.7.0", | ||
"ttypescript": "^1.5.13", | ||
"typescript": "^4.6.3" | ||
}, | ||
"maintainers": [ | ||
"Thomas Aribart", | ||
"Charles Géry", | ||
"Juliette Fournier", | ||
"Valentin Beggi" | ||
], | ||
"nx": { | ||
"targets": { | ||
"package": { | ||
"outputs": [ | ||
"packages/json-schema-command/dist" | ||
] | ||
} | ||
} | ||
}, | ||
"peerDependencies": { | ||
"@castore/core": "*", | ||
"json-schema-to-ts": "^2.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,6 @@ | ||
{ | ||
"root": "packages/json-schema-command", | ||
"projectType": "library", | ||
"tags": [], | ||
"implicitDependencies": ["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,2 @@ | ||
export { JSONSchemaCommand } from './jsonSchema'; | ||
export type { OnEventAlreadyExistsCallback } from './jsonSchema'; |
5 changes: 1 addition & 4 deletions
5
...src/command/implementations/jsonSchema.ts → ...ges/json-schema-command/src/jsonSchema.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
6 changes: 3 additions & 3 deletions
6
...d/implementations/jsonSchema.type.test.ts → ...chema-command/src/jsonSchema.type.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
11 changes: 4 additions & 7 deletions
11
...d/implementations/jsonSchema.unit.test.ts → ...chema-command/src/jsonSchema.unit.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
Oops, something went wrong.