-
-
Notifications
You must be signed in to change notification settings - Fork 91
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 #4 from zenstack-hq/feat/code-gen
feat: implement runtime code generation and refine zmodel schema
- Loading branch information
Showing
141 changed files
with
15,294 additions
and
2,388 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 +1,2 @@ | ||
auto-install-peers=true | ||
git-checks=false |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
/lib | ||
/tests/coverage/ |
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,32 @@ | ||
/* | ||
* For a detailed explanation regarding each configuration property and type check, visit: | ||
* https://jestjs.io/docs/configuration | ||
*/ | ||
|
||
import tsconfig from './tsconfig.json'; | ||
const moduleNameMapper = require('tsconfig-paths-jest')(tsconfig); | ||
|
||
export default { | ||
// Automatically clear mock calls, instances, contexts and results before every test | ||
clearMocks: true, | ||
|
||
// Indicates whether the coverage information should be collected while executing the test | ||
collectCoverage: true, | ||
|
||
// The directory where Jest should output its coverage files | ||
coverageDirectory: 'tests/coverage', | ||
|
||
// An array of regexp pattern strings used to skip coverage collection | ||
coveragePathIgnorePatterns: ['/node_modules/', '/tests/'], | ||
|
||
// Indicates which provider should be used to instrument code for coverage | ||
coverageProvider: 'v8', | ||
|
||
// A list of reporter names that Jest uses when writing coverage reports | ||
coverageReporters: ['json', 'text', 'lcov', 'clover'], | ||
|
||
// A map from regular expressions to paths to transformers | ||
transform: { '^.+\\.tsx?$': 'ts-jest' }, | ||
|
||
moduleNameMapper, | ||
}; |
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,40 @@ | ||
{ | ||
"name": "@zenstackhq/internal", | ||
"version": "0.1.6", | ||
"description": "ZenStack internal runtime library", | ||
"main": "lib/index.js", | ||
"types": "lib/index.d.ts", | ||
"scripts": { | ||
"build": "tsc", | ||
"watch": "tsc --watch", | ||
"test": "jest", | ||
"prepublishOnly": "pnpm build" | ||
}, | ||
"keywords": [], | ||
"author": "", | ||
"license": "ISC", | ||
"files": [ | ||
"lib/**/*" | ||
], | ||
"dependencies": { | ||
"bcryptjs": "^2.4.3", | ||
"deepcopy": "^2.1.0", | ||
"swr": "^1.3.0" | ||
}, | ||
"peerDependencies": { | ||
"next": "12.3.1", | ||
"react": "^17.0.2 || ^18", | ||
"react-dom": "^17.0.2 || ^18" | ||
}, | ||
"devDependencies": { | ||
"@types/bcryptjs": "^2.4.2", | ||
"@types/jest": "^29.0.3", | ||
"@types/node": "^14.18.29", | ||
"jest": "^29.0.3", | ||
"ts-jest": "^29.0.1", | ||
"ts-node": "^10.9.1", | ||
"tsc-alias": "^1.7.0", | ||
"tsconfig-paths-jest": "^0.0.1", | ||
"typescript": "^4.6.2" | ||
} | ||
} |
Oops, something went wrong.