Skip to content

Commit 08fbb3e

Browse files
committed
Initial commit
0 parents  commit 08fbb3e

37 files changed

+5740
-0
lines changed

.editorconfig

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
end_of_line = lf
6+
indent_size = 2
7+
indent_style = space
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true

.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/dist/

.eslintrc.cjs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
"use strict";
2+
3+
module.exports = {
4+
env: { node: true },
5+
extends: ["eslint:recommended", "plugin:n/recommended"],
6+
parser: "@typescript-eslint/parser",
7+
parserOptions: { ecmaVersion: "latest" },
8+
root: true,
9+
};

.github/workflows/ci.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: CI
2+
3+
on:
4+
pull_request: {}
5+
push:
6+
branches:
7+
- main
8+
9+
jobs:
10+
lint:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
- uses: wyvox/action-setup-pnpm@v3
15+
- run: pnpm lint
16+
17+
test:
18+
needs: [lint]
19+
runs-on: ubuntu-latest
20+
steps:
21+
- uses: actions/checkout@v4
22+
- uses: wyvox/action-setup-pnpm@v3
23+
- run: pnpm test:coverage

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
/coverage/
2+
/dist/
3+
/node_modules/
4+
/test/output/
5+
/.eslintcache

.prettierignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/coverage/
2+
/dist/
3+
/CHANGELOG.md
4+
/pnpm-lock.yaml

LICENSE.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) Bert De Block
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.

README.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# @bertdeblock/generate-template-registry
2+
3+
[![CI](https://github.com/bertdeblock/generate-template-registry/workflows/CI/badge.svg)](https://github.com/bertdeblock/generate-template-registry/actions?query=workflow%3ACI)
4+
5+
Generate a template registry for [Glint](https://github.com/typed-ember/glint).
6+
7+
## Usage
8+
9+
```shell
10+
cd your/app-or-addon/path
11+
```
12+
13+
and
14+
15+
```shell
16+
npx @bertdeblock/generate-template-registry
17+
```
18+
19+
or
20+
21+
```shell
22+
pnpx @bertdeblock/generate-template-registry
23+
```
24+
25+
or
26+
27+
```shell
28+
bunx @bertdeblock/generate-template-registry
29+
```

bin/generate-template-registry.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/usr/bin/env node
2+
3+
// eslint-disable-next-line n/no-missing-import
4+
import { generateTemplateRegistry } from "../dist/generate-template-registry.js";
5+
6+
generateTemplateRegistry();

package.json

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
{
2+
"name": "@bertdeblock/generate-template-registry",
3+
"version": "0.0.0",
4+
"description": "Generate a template registry for Glint.",
5+
"repository": "https://github.com/bertdeblock/generate-template-registry",
6+
"license": "MIT",
7+
"author": "Bert De Block",
8+
"type": "module",
9+
"bin": {
10+
"generate-template-registry": "bin/generate-template-registry.js"
11+
},
12+
"files": [
13+
"bin/",
14+
"dist/"
15+
],
16+
"scripts": {
17+
"build": "tsc --project tsconfig.json",
18+
"lint": "concurrently --group --prefix-colors auto \"npm:lint:*(!fix)\"",
19+
"lint:fix": "concurrently --group --prefix-colors auto \"npm:lint:*:fix\"",
20+
"lint:format": "prettier . --cache --check",
21+
"lint:format:fix": "prettier . --cache --write",
22+
"lint:js": "eslint . --cache",
23+
"lint:js:fix": "eslint . --fix",
24+
"lint:types": "tsc --noEmit",
25+
"prepack": "tsc --project tsconfig.json",
26+
"start": "pnpm build --watch",
27+
"test": "vitest",
28+
"test:coverage": "vitest run --coverage"
29+
},
30+
"dependencies": {
31+
"chalk": "^5.3.0",
32+
"change-case": "^5.4.3",
33+
"fs-extra": "^11.2.0",
34+
"recursive-readdir": "^2.2.3"
35+
},
36+
"devDependencies": {
37+
"@release-it-plugins/lerna-changelog": "^6.1.0",
38+
"@types/fs-extra": "^11.0.4",
39+
"@types/node": "^20.11.20",
40+
"@types/recursive-readdir": "^2.2.4",
41+
"@typescript-eslint/parser": "^7.1.0",
42+
"@vitest/coverage-v8": "^1.2.2",
43+
"concurrently": "^8.2.2",
44+
"eslint": "^8.56.0",
45+
"eslint-plugin-n": "^16.6.2",
46+
"prettier": "^3.2.5",
47+
"recursive-copy": "^2.0.14",
48+
"release-it": "^17.0.3",
49+
"typescript": "^5.3.3",
50+
"vitest": "^1.2.2"
51+
},
52+
"packageManager": "pnpm@8.6.12",
53+
"engines": {
54+
"node": ">= 18"
55+
},
56+
"volta": {
57+
"node": "18.19.1"
58+
},
59+
"publishConfig": {
60+
"access": "public"
61+
},
62+
"release-it": {
63+
"git": {
64+
"commitMessage": "Release v${version}",
65+
"tagName": "v${version}"
66+
},
67+
"github": {
68+
"release": true,
69+
"tokenRef": "GITHUB_AUTH"
70+
},
71+
"plugins": {
72+
"@release-it-plugins/lerna-changelog": {
73+
"infile": "CHANGELOG.md"
74+
}
75+
}
76+
}
77+
}

0 commit comments

Comments
 (0)