Skip to content

Commit

Permalink
initial stl schema generation commit
Browse files Browse the repository at this point in the history
  • Loading branch information
DJankauskas committed Jun 23, 2023
1 parent 71e8e79 commit c93bb6f
Show file tree
Hide file tree
Showing 11 changed files with 3,319 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/stl-api-gen/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
node_modules
/dist
.swc
5 changes: 5 additions & 0 deletions packages/stl-api-gen/.prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/prisma-client
/brainstorm/layout
/.swc
/dist
/node_modules
24 changes: 24 additions & 0 deletions packages/stl-api-gen/jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
/** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */
module.exports = {
transform: {
"^.+\\.tsx?$": [
"ts-jest",
{
diagnostics: false,
isolatedModules: true,
},
],
},
testEnvironment: "node",
modulePathIgnorePatterns: ["<rootDir>/node_modules/", "/dist/"],
testPathIgnorePatterns: ["<rootDir>/node_modules/", "/dist/"],
testMatch: ["**/__tests__/**/*.test.[jt]s?(x)"],
setupFilesAfterEnv: [],
watchPathIgnorePatterns: ["<rootDir>/node_modules/"],
watchPlugins: [
"jest-watch-typeahead/filename",
"jest-watch-typeahead/testname",
],
verbose: false,
};

41 changes: 41 additions & 0 deletions packages/stl-api-gen/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
"name": "stl-api-gen",
"version": "1.0.0",
"description": "Bundle-time utilities implementing ergonomic stl-api helpers.\"",
"author": "dev@stainlessapi.com",
"repository": {
"type": "git",
"url": "https://github.com/stainless-api/stl-api.git",
"directory": "packages/stl-api-gen"
},
"main": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {
"start": "ts-node scripts/start.ts",
"watch": "nodemon -e js,ts --exec ts-node scripts/watch.ts",
"test": "jest",
"clean": "rimraf dist",
"format": "prettier -w .",
"build": "tsc -p tsconfig.build.json",
"prepublishOnly": "npm run clean && npm run build && npm test"
},
"license": "MIT",
"dependencies": {
"@types/lodash": "^4.14.195",
"lodash": "^4.17.21",
"pkg-up": "3.1",
"ts-morph": "^19.0.0",
"ts-to-zod": "workspace:*"
},
"devDependencies": {
"@types/jest": "^29.5.2",
"@types/node": "^20.3.1",
"jest": "^29.5.0",
"jest-watch-typeahead": "^2.2.2",
"nodemon": "^2.0.22",
"prettier": "^2.8.8",
"rimraf": "^5.0.1",
"ts-jest": "^29.1.0",
"typescript": "^5.1.3"
}
}

0 comments on commit c93bb6f

Please sign in to comment.