@langpkg/mcs_gen 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +54 -0
- package/assets/img/line.png +0 -0
- package/assets/img/logo.png +0 -0
- package/docs/.gitkeep +0 -0
- package/eslint.config.mjs +89 -0
- package/package.json +42 -0
- package/src/common/index.ts +112 -0
- package/src/common/types.ts +69 -0
- package/src/gen/json/index.ts +13 -0
- package/src/gen/json/package_json.ts +97 -0
- package/src/gen/json/tsconfig.ts +59 -0
- package/src/gen/json/vscode_settings.ts +67 -0
- package/src/gen/md/index.ts +11 -0
- package/src/gen/md/readme.ts +84 -0
- package/src/gen/text/gitignore.ts +43 -0
- package/src/gen/text/index.ts +12 -0
- package/src/gen/text/license.ts +73 -0
- package/src/gen/ts/eslint_config.ts +115 -0
- package/src/gen/ts/index.ts +14 -0
- package/src/gen/ts/source_index.ts +54 -0
- package/src/gen/ts/test_index.ts +54 -0
- package/src/gen/ts/tsup_config.ts +65 -0
- package/src/gen/ts/utils.ts +55 -0
- package/src/index.ts +69 -0
- package/test/.gitkeep +0 -0
- package/test/index.test.ts +23 -0
- package/tsconfig.json +25 -0
- package/tsup.config.ts +36 -0
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
// test/index.test.ts
|
|
2
|
+
//
|
|
3
|
+
// Made with ❤️ by Maysara.
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
// ╔════════════════════════════════════════ PACK ════════════════════════════════════════╗
|
|
8
|
+
|
|
9
|
+
import { describe, it, expect } from 'bun:test';
|
|
10
|
+
|
|
11
|
+
// ╚══════════════════════════════════════════════════════════════════════════════════════╝
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
// ╔════════════════════════════════════════ TEST ════════════════════════════════════════╗
|
|
16
|
+
|
|
17
|
+
describe('@langpkg/mcs_gen', () => {
|
|
18
|
+
it('temp test', () => {
|
|
19
|
+
expect(1 + 1).toBe(2);
|
|
20
|
+
});
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
// ╚══════════════════════════════════════════════════════════════════════════════════════╝
|
package/tsconfig.json
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
|
|
3
|
+
"compilerOptions" : {
|
|
4
|
+
"target" : "ES2020",
|
|
5
|
+
"lib" : ["DOM", "ES2020", "ESNext"],
|
|
6
|
+
"module" : "ESNext",
|
|
7
|
+
"moduleResolution" : "bundler",
|
|
8
|
+
"types" : ["bun"],
|
|
9
|
+
"allowImportingTsExtensions" : true,
|
|
10
|
+
"resolveJsonModule" : true,
|
|
11
|
+
"declaration" : true,
|
|
12
|
+
"outDir" : "./dist",
|
|
13
|
+
"noEmit" : true,
|
|
14
|
+
"isolatedModules" : true,
|
|
15
|
+
"esModuleInterop" : true,
|
|
16
|
+
"forceConsistentCasingInFileNames" : true,
|
|
17
|
+
"strict" : true,
|
|
18
|
+
"skipLibCheck" : true,
|
|
19
|
+
"ignoreDeprecations" : "6.0"
|
|
20
|
+
},
|
|
21
|
+
|
|
22
|
+
"include" : ["src", "test"],
|
|
23
|
+
"exclude" : ["node_modules", "dist"]
|
|
24
|
+
|
|
25
|
+
}
|
package/tsup.config.ts
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
// tsup.config.ts
|
|
2
|
+
//
|
|
3
|
+
// Made with ❤️ by Maysara.
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
// ╔════════════════════════════════════════ PACK ════════════════════════════════════════╗
|
|
8
|
+
|
|
9
|
+
import { defineConfig } from 'tsup';
|
|
10
|
+
|
|
11
|
+
// ╚══════════════════════════════════════════════════════════════════════════════════════╝
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
// ╔═══════════════════════════════════════ CONST ════════════════════════════════════════╗
|
|
16
|
+
|
|
17
|
+
const rules = {
|
|
18
|
+
"clean" : true,
|
|
19
|
+
"dts" : true,
|
|
20
|
+
"entry" : ["src/index.ts"],
|
|
21
|
+
"format" : ["esm", "cjs"],
|
|
22
|
+
"minify" : true,
|
|
23
|
+
"sourcemap" : false,
|
|
24
|
+
"splitting" : true
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
// ╚══════════════════════════════════════════════════════════════════════════════════════╝
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
// ╔════════════════════════════════════════ CONF ════════════════════════════════════════╗
|
|
32
|
+
|
|
33
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
34
|
+
export default defineConfig(rules as any);
|
|
35
|
+
|
|
36
|
+
// ╚══════════════════════════════════════════════════════════════════════════════════════╝
|