@tssuite/testproject_2 0.1.3
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.architecture.md +9 -0
- package/README.blog.md +11 -0
- package/README.contributors.md +32 -0
- package/README.md +29 -0
- package/README.public.md +15 -0
- package/README.trouble.md +23 -0
- package/dist/example.d.ts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/src/example.ts +26 -0
- package/dist/template-project.d.ts +4 -0
- package/dist/testproject_2.js +13 -0
- package/package.json +53 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 tssuite
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.blog.md
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
@license
|
|
3
|
+
Copyright (c) 2025 tssuite
|
|
4
|
+
|
|
5
|
+
Use of this source code is governed by terms that can be
|
|
6
|
+
found in the LICENSE file in the root of this package.
|
|
7
|
+
-->
|
|
8
|
+
|
|
9
|
+
# Contributors Guide
|
|
10
|
+
|
|
11
|
+
- [Prepare](#prepare)
|
|
12
|
+
- [Develop](#develop)
|
|
13
|
+
- [Administrate](#administrate)
|
|
14
|
+
- [Fast Coding](#fast-coding)
|
|
15
|
+
|
|
16
|
+
## Prepare
|
|
17
|
+
|
|
18
|
+
Read [prepare.md](dna/doc/prepare.md)
|
|
19
|
+
|
|
20
|
+
<!-- ........................................................................-->
|
|
21
|
+
|
|
22
|
+
## Develop
|
|
23
|
+
|
|
24
|
+
Read [develop.md](dna/doc/develop.md)
|
|
25
|
+
|
|
26
|
+
## Administrate
|
|
27
|
+
|
|
28
|
+
Read [create-new-repo.md](dna/doc/create-new-repo.md)
|
|
29
|
+
|
|
30
|
+
## Fast Coding
|
|
31
|
+
|
|
32
|
+
Read [fast-coding-guide.md](dna/doc/fast-coding-guide.md)
|
package/README.md
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
@license
|
|
3
|
+
Copyright (c) 2025 tssuite
|
|
4
|
+
|
|
5
|
+
Use of this source code is governed by terms that can be
|
|
6
|
+
found in the LICENSE file in the root of this package.
|
|
7
|
+
-->
|
|
8
|
+
|
|
9
|
+
# @tssuite/template-project
|
|
10
|
+
|
|
11
|
+
## Users
|
|
12
|
+
|
|
13
|
+
| File | Purpose |
|
|
14
|
+
| ------------------------------------ | --------------------------- |
|
|
15
|
+
| [README.public.md](README.public.md) | Install and use the package |
|
|
16
|
+
|
|
17
|
+
## Contributors
|
|
18
|
+
|
|
19
|
+
| File | Purpose |
|
|
20
|
+
| ------------------------------------------------ | ----------------------------- |
|
|
21
|
+
| [README.contributors.md](README.contributors.md) | Run, debug, build and publish |
|
|
22
|
+
| [README.architecture.md](README.architecture.md) | Software architecture guide |
|
|
23
|
+
| [README.trouble.md](README.trouble.md) | Errors & solutions |
|
|
24
|
+
| [README.blog.md](README.blog.md) | Blog |
|
|
25
|
+
|
|
26
|
+
<!-- ts_e2e_multi: gg multi commit/review/publish touch on ts_testproject_2 -->
|
|
27
|
+
|
|
28
|
+
<!-- gg_typescript_bugfixes v3 -->
|
|
29
|
+
<!-- gg_typescript_bugfixes E2E run 2 -->
|
package/README.public.md
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
@license
|
|
3
|
+
Copyright (c) 2025 tssuite
|
|
4
|
+
|
|
5
|
+
Use of this source code is governed by terms that can be
|
|
6
|
+
found in the LICENSE file in the root of this package.
|
|
7
|
+
-->
|
|
8
|
+
|
|
9
|
+
# @tssuite/template-project
|
|
10
|
+
|
|
11
|
+
Todo: Add description here
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
[src/example.ts](src/example.ts)
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
@license
|
|
3
|
+
Copyright (c) 2025 tssuite
|
|
4
|
+
|
|
5
|
+
Use of this source code is governed by terms that can be
|
|
6
|
+
found in the LICENSE file in the root of this package.
|
|
7
|
+
-->
|
|
8
|
+
|
|
9
|
+
# Trouble shooting
|
|
10
|
+
|
|
11
|
+
## Table of contents <!-- omit in toc -->
|
|
12
|
+
|
|
13
|
+
- [Vscode Windows: Debugging is not working](#vscode-windows-debugging-is-not-working)
|
|
14
|
+
|
|
15
|
+
## Vscode Windows: Debugging is not working
|
|
16
|
+
|
|
17
|
+
Date: 2025-03-08
|
|
18
|
+
|
|
19
|
+
⚠️ IMPORTANT: On Windows, please check out the repo on drive C. There is a bug
|
|
20
|
+
in the VS Code Vitest extension (v1.14.4), which prevents test debugging from
|
|
21
|
+
working: <https://github.com/vitest-dev/vscode/issues/548> Please check from
|
|
22
|
+
time to time if the issue has been fixed and remove this note once it is
|
|
23
|
+
resolved.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const example: () => void;
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './template-project.ts';
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
// @license
|
|
2
|
+
// Copyright (c) 2025 tssuite
|
|
3
|
+
//
|
|
4
|
+
// Use of this source code is governed by terms that can be
|
|
5
|
+
// found in the LICENSE file in the root of this package.
|
|
6
|
+
|
|
7
|
+
import { TemplateProject } from './template-project.ts';
|
|
8
|
+
|
|
9
|
+
export const example = () => {
|
|
10
|
+
// Print methods
|
|
11
|
+
const l = console.log;
|
|
12
|
+
const h1 = (text: string) => l(`${text}`);
|
|
13
|
+
const h2 = (text: string) => l(` ${text.split('\n')}`);
|
|
14
|
+
const p = (text: string) => l(` ${text}`);
|
|
15
|
+
|
|
16
|
+
// Example
|
|
17
|
+
h1('TemplateProject.example');
|
|
18
|
+
h2('Returns an instance of the TemplateProject.');
|
|
19
|
+
const example = TemplateProject.example;
|
|
20
|
+
p(JSON.stringify(example, null, 2));
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
/*
|
|
24
|
+
// Run via "npx vite-node src/example.ts"
|
|
25
|
+
example();
|
|
26
|
+
*/
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
//#region src/template-project.ts
|
|
2
|
+
// @license
|
|
3
|
+
var TemplateProject = class TemplateProject {
|
|
4
|
+
/** Example instance for test purposes */
|
|
5
|
+
static get example() {
|
|
6
|
+
return new TemplateProject();
|
|
7
|
+
}
|
|
8
|
+
};
|
|
9
|
+
//#endregion
|
|
10
|
+
//#region src/index.ts
|
|
11
|
+
// @license
|
|
12
|
+
//#endregion
|
|
13
|
+
export { TemplateProject };
|
package/package.json
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@tssuite/testproject_2",
|
|
3
|
+
"version": "0.1.3",
|
|
4
|
+
"description": "tssuite testproject_2 — gg one E2E test project",
|
|
5
|
+
"homepage": "https://github.com/tssuite/testproject_2",
|
|
6
|
+
"bugs": "https://github.com/tssuite/testproject_2/issues",
|
|
7
|
+
"private": false,
|
|
8
|
+
"license": "MIT",
|
|
9
|
+
"engines": {
|
|
10
|
+
"node": ">=22.14.0"
|
|
11
|
+
},
|
|
12
|
+
"repository": {
|
|
13
|
+
"type": "git",
|
|
14
|
+
"url": "git+https://github.com/tssuite/testproject_2.git"
|
|
15
|
+
},
|
|
16
|
+
"main": "dist/template-project.js",
|
|
17
|
+
"types": "dist/index.d.ts",
|
|
18
|
+
"files": [
|
|
19
|
+
"dist"
|
|
20
|
+
],
|
|
21
|
+
"type": "module",
|
|
22
|
+
"dependencies": {
|
|
23
|
+
"@tssuite/testproject_3": "^0.1.5"
|
|
24
|
+
},
|
|
25
|
+
"devDependencies": {
|
|
26
|
+
"@types/node": "^25.9.1",
|
|
27
|
+
"@typescript-eslint/eslint-plugin": "^8.60.1",
|
|
28
|
+
"@typescript-eslint/parser": "^8.60.1",
|
|
29
|
+
"@vitest/coverage-v8": "^4.1.8",
|
|
30
|
+
"cross-env": "^10.1.0",
|
|
31
|
+
"eslint": "^10.4.1",
|
|
32
|
+
"eslint-plugin-jsdoc": "^63.0.1",
|
|
33
|
+
"eslint-plugin-tsdoc": "^0.5.2",
|
|
34
|
+
"globals": "^17.6.0",
|
|
35
|
+
"jsdoc": "^4.0.5",
|
|
36
|
+
"read-pkg": "^10.1.0",
|
|
37
|
+
"typescript": "~6.0.3",
|
|
38
|
+
"typescript-eslint": "^8.60.1",
|
|
39
|
+
"vite": "^8.0.16",
|
|
40
|
+
"vite-node": "^6.0.0",
|
|
41
|
+
"vite-plugin-dts": "^5.0.2",
|
|
42
|
+
"vite-tsconfig-paths": "^6.1.1",
|
|
43
|
+
"vitest": "^4.1.8",
|
|
44
|
+
"vitest-dom": "^0.1.1"
|
|
45
|
+
},
|
|
46
|
+
"scripts": {
|
|
47
|
+
"build": "vite build && tsc && node dna/scripts/copy-readme-to-dist.js && node dna/scripts/copy-example-to-dist.js",
|
|
48
|
+
"test": "vitest run --coverage && pnpm run lint",
|
|
49
|
+
"prebuild": "npm run test",
|
|
50
|
+
"lint": "eslint",
|
|
51
|
+
"updateGoldens": "cross-env UPDATE_GOLDENS=true pnpm test"
|
|
52
|
+
}
|
|
53
|
+
}
|