@temir.ra/create-template 0.4.0-pre.6 → 0.4.0-pre.9
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/CHANGELOG.md +3 -3
- package/README.md +8 -3
- package/buildinfo.txt +1 -1
- package/package.json +48 -48
- package/template/README.md +17 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
# Version 0
|
|
2
2
|
|
|
3
|
-
## 0.4.0-pre.
|
|
3
|
+
## 0.4.0-pre.8
|
|
4
4
|
|
|
5
|
-
1. Synced template files with `ts-lob@0.11.0-pre.
|
|
5
|
+
1. Synced template files with `ts-lob@0.11.0-pre.11` template.
|
|
6
6
|
2. Replaced `bun run` with `npmx tsx` in DevOps commands.
|
|
7
7
|
3. Cleaned up Quick Start section.
|
|
8
|
-
4. Updated files from
|
|
8
|
+
4. Updated files from self as template.
|
|
9
9
|
|
|
10
10
|
## 0.3.0
|
|
11
11
|
|
package/README.md
CHANGED
|
@@ -37,8 +37,8 @@ The following sections explain the configurations and conventions baked into the
|
|
|
37
37
|
# DevOps
|
|
38
38
|
|
|
39
39
|
```bash
|
|
40
|
-
npm update
|
|
41
40
|
npm install
|
|
41
|
+
npm update
|
|
42
42
|
|
|
43
43
|
npm run clean
|
|
44
44
|
npm run build
|
|
@@ -59,9 +59,14 @@ npmx tsx dist/cli.bundle.js -- example/
|
|
|
59
59
|
|
|
60
60
|
## Publish
|
|
61
61
|
|
|
62
|
+
`~/.npmrc` or `.npmrc`:
|
|
63
|
+
|
|
64
|
+
```ini
|
|
65
|
+
@temir.ra:registry=https://registry.npmjs.org/
|
|
66
|
+
```
|
|
67
|
+
|
|
62
68
|
```bash
|
|
63
69
|
# registry.npmjs.org/
|
|
64
70
|
npm login
|
|
65
|
-
|
|
66
|
-
npm publish --registry https://registry.npmjs.org/
|
|
71
|
+
npm publish
|
|
67
72
|
```
|
package/buildinfo.txt
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.4.0-pre.
|
|
1
|
+
0.4.0-pre.9+4818443
|
package/package.json
CHANGED
|
@@ -1,49 +1,49 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@temir.ra/create-template",
|
|
3
|
-
"version": "0.4.0-pre.
|
|
4
|
-
"description": "A template for a template package.",
|
|
5
|
-
"private": false,
|
|
6
|
-
"keywords": [
|
|
7
|
-
"typescript",
|
|
8
|
-
"template-template"
|
|
9
|
-
],
|
|
10
|
-
"author": "temir.ra",
|
|
11
|
-
"license": "MIT",
|
|
12
|
-
"repository": {
|
|
13
|
-
"type": "git",
|
|
14
|
-
"url": "https://git.chimps.quest/trs/create-template.git"
|
|
15
|
-
},
|
|
16
|
-
"type": "module",
|
|
17
|
-
"files": [
|
|
18
|
-
"scripts/buildinfo.ts",
|
|
19
|
-
"scripts/build-bundle.ts",
|
|
20
|
-
"scripts/cdn-rewrite-map.json",
|
|
21
|
-
"CHANGELOG.md",
|
|
22
|
-
"buildinfo.txt",
|
|
23
|
-
"dist/",
|
|
24
|
-
"tests/",
|
|
25
|
-
"template/"
|
|
26
|
-
],
|
|
27
|
-
"bin": "./dist/cli.bundle.js",
|
|
28
|
-
"imports": {
|
|
29
|
-
"#src/*.js": "./src/*.ts"
|
|
30
|
-
},
|
|
31
|
-
"scripts": {
|
|
32
|
-
"reinstall": "
|
|
33
|
-
"typecheck": "tsc --noEmit",
|
|
34
|
-
"buildinfo": "tsx scripts/buildinfo.ts",
|
|
35
|
-
"clean:dist": "
|
|
36
|
-
"clean:tsbuildinfo": "
|
|
37
|
-
"clean": "npm run clean:dist && npm run clean:tsbuildinfo",
|
|
38
|
-
"tests": "node --import tsx --test tests/**/*.test.ts",
|
|
39
|
-
"prebuild": "npm run buildinfo",
|
|
40
|
-
"build": "npm run build:cli-bundle",
|
|
41
|
-
"build:cli-bundle": "esbuild src/cli.ts --outdir=dist --entry-names=[dir]/[name].bundle --platform=node --format=esm --bundle --minify --sourcemap=external"
|
|
42
|
-
},
|
|
43
|
-
"devDependencies": {
|
|
44
|
-
"@types/node": "latest",
|
|
45
|
-
"esbuild": "latest",
|
|
46
|
-
"tsx": "latest",
|
|
47
|
-
"typescript": "^6.0.3"
|
|
48
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@temir.ra/create-template",
|
|
3
|
+
"version": "0.4.0-pre.9",
|
|
4
|
+
"description": "A template for a template package.",
|
|
5
|
+
"private": false,
|
|
6
|
+
"keywords": [
|
|
7
|
+
"typescript",
|
|
8
|
+
"template-template"
|
|
9
|
+
],
|
|
10
|
+
"author": "temir.ra",
|
|
11
|
+
"license": "MIT",
|
|
12
|
+
"repository": {
|
|
13
|
+
"type": "git",
|
|
14
|
+
"url": "https://git.chimps.quest/trs/create-template.git"
|
|
15
|
+
},
|
|
16
|
+
"type": "module",
|
|
17
|
+
"files": [
|
|
18
|
+
"scripts/buildinfo.ts",
|
|
19
|
+
"scripts/build-bundle.ts",
|
|
20
|
+
"scripts/cdn-rewrite-map.json",
|
|
21
|
+
"CHANGELOG.md",
|
|
22
|
+
"buildinfo.txt",
|
|
23
|
+
"dist/",
|
|
24
|
+
"tests/",
|
|
25
|
+
"template/"
|
|
26
|
+
],
|
|
27
|
+
"bin": "./dist/cli.bundle.js",
|
|
28
|
+
"imports": {
|
|
29
|
+
"#src/*.js": "./src/*.ts"
|
|
30
|
+
},
|
|
31
|
+
"scripts": {
|
|
32
|
+
"reinstall": "rm -rf node_modules && rm -f package-lock.json bun.lock yarn.lock pnpm-lock.yaml && npm install",
|
|
33
|
+
"typecheck": "tsc --noEmit",
|
|
34
|
+
"buildinfo": "tsx scripts/buildinfo.ts",
|
|
35
|
+
"clean:dist": "rm -rf dist/",
|
|
36
|
+
"clean:tsbuildinfo": "rm -f tsconfig.tsbuildinfo tsconfig.build.tsbuildinfo",
|
|
37
|
+
"clean": "npm run clean:dist && npm run clean:tsbuildinfo",
|
|
38
|
+
"tests": "node --import tsx --test tests/**/*.test.ts",
|
|
39
|
+
"prebuild": "npm run buildinfo",
|
|
40
|
+
"build": "npm run build:cli-bundle",
|
|
41
|
+
"build:cli-bundle": "esbuild src/cli.ts --outdir=dist --entry-names=[dir]/[name].bundle --platform=node --format=esm --bundle --minify --sourcemap=external"
|
|
42
|
+
},
|
|
43
|
+
"devDependencies": {
|
|
44
|
+
"@types/node": "latest",
|
|
45
|
+
"esbuild": "latest",
|
|
46
|
+
"tsx": "latest",
|
|
47
|
+
"typescript": "^6.0.3"
|
|
48
|
+
}
|
|
49
49
|
}
|
package/template/README.md
CHANGED
|
@@ -37,8 +37,8 @@ The following sections explain the configurations and conventions baked into the
|
|
|
37
37
|
# DevOps
|
|
38
38
|
|
|
39
39
|
```bash
|
|
40
|
-
npm update
|
|
41
40
|
npm install
|
|
41
|
+
npm update
|
|
42
42
|
|
|
43
43
|
npm run clean
|
|
44
44
|
npm run build
|
|
@@ -59,18 +59,29 @@ npmx tsx dist/cli.bundle.js -- example/
|
|
|
59
59
|
|
|
60
60
|
## Publish
|
|
61
61
|
|
|
62
|
-
Configure the scope registry as described in the [`workspace` template README](https://git.chimps.quest/trs/create-workspace#scope-registry).
|
|
63
|
-
|
|
64
62
|
```bash
|
|
65
63
|
# placeholder:
|
|
66
|
-
# <
|
|
64
|
+
# <SCOPE_WITHOUT_AT: <SCOPE_WITHOUT_AT>
|
|
67
65
|
# <REGISTRY_ORIGIN_AND_PATH: <REGISTRY_ORIGIN_AND_PATH>
|
|
68
66
|
# e.g.
|
|
69
67
|
# registry.npmjs.org/
|
|
70
68
|
# forgejo.example.com/api/packages/<SCOPE_WITHOUT_AT>/npm/
|
|
69
|
+
# <REGISTRY_AUTH_TOKEN_ENV_VAR: <REGISTRY_AUTH_TOKEN_ENV_VAR>
|
|
71
70
|
```
|
|
72
71
|
|
|
73
|
-
|
|
72
|
+
`~/.npmrc` or `.npmrc`:
|
|
73
|
+
|
|
74
|
+
```ini
|
|
75
|
+
@<SCOPE_WITHOUT_AT>:registry=https://<REGISTRY_ORIGIN_AND_PATH>
|
|
76
|
+
//<REGISTRY_ORIGIN_AND_PATH>:_authToken=${<REGISTRY_AUTH_TOKEN_ENV_VAR>}
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
`~/.bunfig.toml` or `bunfig.toml`:
|
|
80
|
+
|
|
81
|
+
```toml
|
|
82
|
+
[install.scopes]
|
|
83
|
+
"<SCOPE_WITHOUT_AT>" = { url = "https://<REGISTRY_ORIGIN_AND_PATH>", token = "$<REGISTRY_AUTH_TOKEN_ENV_VAR>" }
|
|
84
|
+
```
|
|
74
85
|
|
|
75
86
|
```bash
|
|
76
87
|
# registry.npmjs.org/
|
|
@@ -79,6 +90,5 @@ npm login
|
|
|
79
90
|
export <REGISTRY_AUTH_TOKEN_ENV_VAR>=<AUTH_TOKEN>
|
|
80
91
|
# or
|
|
81
92
|
$env:<REGISTRY_AUTH_TOKEN_ENV_VAR> = "<AUTH_TOKEN>"
|
|
82
|
-
|
|
83
|
-
npm publish --registry https://<REGISTRY_ORIGIN_AND_PATH>
|
|
93
|
+
npm publish
|
|
84
94
|
```
|