Skip to content

Commit 9189acf

Browse files
committed
🛠️ refact: organize directory and delete unnecessary files
1 parent 087af37 commit 9189acf

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

73 files changed

+242
-1802
lines changed

.gitignore

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
11
node_modules
22
/app
33
/tmp
4-
**/.DS_Store
4+
**/.DS_Store
5+
/generated
6+
/packages/client/dist
7+
/packages/client/project
8+
/src/apps
9+
!/src/apps/cookbook.ts
10+
/src/databases
11+
!/src/apps/README.md
12+
/src/databases

.publish/.gitignore

Lines changed: 175 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,175 @@
1+
# Based on https://raw.githubusercontent.com/github/gitignore/main/Node.gitignore
2+
3+
# Logs
4+
5+
logs
6+
_.log
7+
npm-debug.log_
8+
yarn-debug.log*
9+
yarn-error.log*
10+
lerna-debug.log*
11+
.pnpm-debug.log*
12+
13+
# Caches
14+
15+
.cache
16+
17+
# Diagnostic reports (https://nodejs.org/api/report.html)
18+
19+
report.[0-9]_.[0-9]_.[0-9]_.[0-9]_.json
20+
21+
# Runtime data
22+
23+
pids
24+
_.pid
25+
_.seed
26+
*.pid.lock
27+
28+
# Directory for instrumented libs generated by jscoverage/JSCover
29+
30+
lib-cov
31+
32+
# Coverage directory used by tools like istanbul
33+
34+
coverage
35+
*.lcov
36+
37+
# nyc test coverage
38+
39+
.nyc_output
40+
41+
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
42+
43+
.grunt
44+
45+
# Bower dependency directory (https://bower.io/)
46+
47+
bower_components
48+
49+
# node-waf configuration
50+
51+
.lock-wscript
52+
53+
# Compiled binary addons (https://nodejs.org/api/addons.html)
54+
55+
build/Release
56+
57+
# Dependency directories
58+
59+
node_modules/
60+
jspm_packages/
61+
62+
# Snowpack dependency directory (https://snowpack.dev/)
63+
64+
web_modules/
65+
66+
# TypeScript cache
67+
68+
*.tsbuildinfo
69+
70+
# Optional npm cache directory
71+
72+
.npm
73+
74+
# Optional eslint cache
75+
76+
.eslintcache
77+
78+
# Optional stylelint cache
79+
80+
.stylelintcache
81+
82+
# Microbundle cache
83+
84+
.rpt2_cache/
85+
.rts2_cache_cjs/
86+
.rts2_cache_es/
87+
.rts2_cache_umd/
88+
89+
# Optional REPL history
90+
91+
.node_repl_history
92+
93+
# Output of 'npm pack'
94+
95+
*.tgz
96+
97+
# Yarn Integrity file
98+
99+
.yarn-integrity
100+
101+
# dotenv environment variable files
102+
103+
.env
104+
.env.development.local
105+
.env.test.local
106+
.env.production.local
107+
.env.local
108+
109+
# parcel-bundler cache (https://parceljs.org/)
110+
111+
.parcel-cache
112+
113+
# Next.js build output
114+
115+
.next
116+
out
117+
118+
# Nuxt.js build / generate output
119+
120+
.nuxt
121+
dist
122+
123+
# Gatsby files
124+
125+
# Comment in the public line in if your project uses Gatsby and not Next.js
126+
127+
# https://nextjs.org/blog/next-9-1#public-directory-support
128+
129+
# public
130+
131+
# vuepress build output
132+
133+
.vuepress/dist
134+
135+
# vuepress v2.x temp and cache directory
136+
137+
.temp
138+
139+
# Docusaurus cache and generated files
140+
141+
.docusaurus
142+
143+
# Serverless directories
144+
145+
.serverless/
146+
147+
# FuseBox cache
148+
149+
.fusebox/
150+
151+
# DynamoDB Local files
152+
153+
.dynamodb/
154+
155+
# TernJS port file
156+
157+
.tern-port
158+
159+
# Stores VSCode versions used for testing VSCode extensions
160+
161+
.vscode-test
162+
163+
# yarn v2
164+
165+
.yarn/cache
166+
.yarn/unplugged
167+
.yarn/build-state.yml
168+
.yarn/install-state.gz
169+
.pnp.*
170+
171+
# IntelliJ based IDEs
172+
.idea
173+
174+
# Finder (MacOS) folder config
175+
.DS_Store

.publish/README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# .publish
2+
3+
To install dependencies:
4+
5+
```bash
6+
bun install
7+
```
8+
9+
To run:
10+
11+
```bash
12+
bun run index.ts
13+
```
14+
15+
This project was created using `bun init` in bun v1.1.6. [Bun](https://bun.sh) is a fast all-in-one JavaScript runtime.

.publish/bun.lockb

3.05 KB
Binary file not shown.

.publish/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
console.log("Hello via Bun!");

.publish/package.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"name": ".publish",
3+
"module": "index.ts",
4+
"type": "module",
5+
"devDependencies": {
6+
"@types/bun": "latest"
7+
},
8+
"peerDependencies": {
9+
"typescript": "^5.0.0"
10+
}
11+
}

.publish/tsconfig.json

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"compilerOptions": {
3+
// Enable latest features
4+
"lib": ["ESNext", "DOM"],
5+
"target": "ESNext",
6+
"module": "ESNext",
7+
"moduleDetection": "force",
8+
"jsx": "react-jsx",
9+
"allowJs": true,
10+
11+
// Bundler mode
12+
"moduleResolution": "bundler",
13+
"allowImportingTsExtensions": true,
14+
"verbatimModuleSyntax": true,
15+
"noEmit": true,
16+
17+
// Best practices
18+
"strict": true,
19+
"skipLibCheck": true,
20+
"noFallthroughCasesInSwitch": true,
21+
22+
// Some stricter flags (disabled by default)
23+
"noUnusedLocals": false,
24+
"noUnusedParameters": false,
25+
"noPropertyAccessFromIndexSignature": false
26+
}
27+
}

generated/api-schema.ts

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,34 +4,20 @@
44

55
// api
66
import type * as cookbook from '../src/apps/cookbook'
7-
import type * as aSandbox$sandbox from '../src/apps/a-sandbox/sandbox'
8-
import type * as $$default from '../src/apps/$/default'
9-
import type * as $$say from '../src/apps/$/say'
10-
import type * as helloWorld$say from '../src/apps/hello-world/say'
117

128
import _apiValidator from './products/api-validator.ts'
139

1410
export default {
1511
apiValidator: _apiValidator,
1612
apiMethodsSchema: {
1713
'cookbook': () => ({ module: import('../src/apps/cookbook') }),
18-
'a-sandbox/sandbox': () => ({ module: import('../src/apps/a-sandbox/sandbox') }),
19-
'$/default': () => ({ module: import('../src/apps/$/default') }),
20-
'$/say': () => ({ module: import('../src/apps/$/say') }),
21-
'hello-world/say': () => ({ module: import('../src/apps/hello-world/say') }),
2214

2315
},
2416
apiMethodsTypeSchema: {
2517
'cookbook': undefined as unknown as typeof cookbook,
26-
'a-sandbox/sandbox': undefined as unknown as typeof aSandbox$sandbox,
27-
'$/default': undefined as unknown as typeof $$default,
28-
'$/say': undefined as unknown as typeof $$say,
29-
'hello-world/say': undefined as unknown as typeof helloWorld$say,
3018

3119
},
3220
apiTestsSchema: {
33-
'a-sandbox/sandbox': () => ({ module: import('../src/apps/a-sandbox/sandbox') }),
34-
'hello-world/say': () => ({ module: import('../src/apps/hello-world/say') }),
3521

3622
},
3723
}

generated/cookbook.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"cookbook":{"cookbook":{"params":"string & typia.tags.MinLength<3> & typia.tags.MaxLength<16>","cases":[]},"a-sandbox/sandbox":{"params":"undefined","cases":[{"name":"Basic","handler":"const result = await test.execute(await test.randParams())\nif (!result.success) return test.reject(\"The result was not success\")"}]},"$/default":{"params":"{ commands: Array<string>; options: Record<string, string | true>; }","cases":[]},"$/say":{"params":"{\n commands: Array<string>;\n options: Record<string, string | true>;\n}","cases":[]},"hello-world/say":{"title":"This is an API that greets you!","desc":"\nThis is an API that greets you!\nThese ~~comments~~ will be presented by the **Cookbook**","params":"{\n by?: string & typia.tags.MinLength<2> & typia.tags.MaxLength<16>;\n}","cases":[{"name":"Basic","handler":"const result = await test.execute(await test.randParams())\nif (!result.success) return test.reject(\"The result was not success\")"}]}},"readme":"# 你好世界\n\nHello world\n\n```sh\n世界你好 # enenen\n```\n\n","indexes":{"(root)":["cookbook"],"a-sandbox":["a-sandbox/sandbox"],"$":["$/default","$/say"],"hello-world":["hello-world/say"]},"folderIndexes":{"(root)":["a-sandbox","$","hello-world"],"a-sandbox":[],"$":[],"hello-world":[]},"generatedAt":"t!Date:2024-04-25T01:38:49.784Z"}
1+
{"cookbook":{"cookbook":{"params":"string & typia.tags.MinLength<3> & typia.tags.MaxLength<16>","cases":[]}},"readme":"# 你好世界\n\nHello world\n\n```sh\n世界你好 # enenen\n```\n\n","indexes":{"(root)":["cookbook"]},"folderIndexes":{"(root)":[]},"generatedAt":"t!Date:2024-05-01T06:30:35.727Z"}

generated/products/api-validator.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,8 @@
22
* ⚠️This file is generated and modifications will be overwritten
33
*/
44
export default {
5-
generatedAt: 1714009128138,
5+
generatedAt: 1714545035018,
66
validate: {
77
'cookbook': () => import('./apps/cookbook.ts'),
8-
'a-sandbox/sandbox': () => import('./apps/a-sandbox/sandbox.ts'),
9-
'$/default': () => import('./apps/$/default.ts'),
10-
'$/say': () => import('./apps/$/say.ts'),
11-
'hello-world/say': () => import('./apps/hello-world/say.ts'),
128
},
139
};

0 commit comments

Comments
 (0)