Skip to content

Commit f2bef41

Browse files
authored
Merge pull request #5 from typed-ember/set-up-release-it
Set up release infrastructure
2 parents 8ad1940 + 661e349 commit f2bef41

File tree

13 files changed

+1537
-71
lines changed

13 files changed

+1537
-71
lines changed

.release-it.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
repo: 'typed-ember/glint'
2+
github:
3+
release: true
4+
tokenRef: GITHUB_AUTH
5+
plugins:
6+
release-it-yarn-workspaces: true
7+
release-it-lerna-changelog:
8+
editor: true

package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "glint",
3-
"repository": "typed-ember/glint",
3+
"repository": "https://github.com/typed-ember/glint",
44
"private": true,
55
"workspaces": [
66
"packages/*",
@@ -19,6 +19,9 @@
1919
"@typescript-eslint/eslint-plugin": "^2.31.0",
2020
"@typescript-eslint/parser": "^2.31.0",
2121
"eslint": "^6.8.0",
22-
"prettier": "^2.0.5"
22+
"prettier": "^2.0.5",
23+
"release-it": "^13.6.3",
24+
"release-it-lerna-changelog": "^2.3.0",
25+
"release-it-yarn-workspaces": "^1.4.0"
2326
}
2427
}

packages/cli/README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# `@glint/cli`
2+
3+
This package contains a CLI to execute template-aware typechecking on a [glint] project.
4+
5+
[glint]: https://github.com/typed-ember/glint
6+
7+
## Usage
8+
9+
```sh
10+
glint [--watch|-w] [--declaration|-d] [--project path/to/tsconfig.json]
11+
```
12+
13+
## Flags
14+
15+
- `--watch` If passed, `glint` will perform a watched typecheck, re-checking your project as files change.
16+
- `--declaration` If passed, `glint` will emit `.d.ts` files according to the configuration in your `tsconfig.json`
17+
- `--project` Overrides where `glint` will look to find your project's `tsconfig.json`

packages/cli/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@
1414
},
1515
"scripts": {
1616
"lint": "eslint . --ext ts --max-warnings 0 && prettier --check src",
17-
"test": "jest"
17+
"test": "jest",
18+
"build": "tsc --build",
19+
"prepack": "yarn build"
1820
},
1921
"dependencies": {
2022
"@glint/config": "link:../config",

packages/config/README.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# `@glint/config`
2+
3+
This package is used by various other [glint] packages to locate any custom configuration.
4+
5+
[glint]: https://github.com/typed-ember/glint
6+
7+
## Config Specification
8+
9+
`@glint/config` uses [`cosmiconfig`] to locate your configuration file, so several possible file formats/names are possible:
10+
11+
- JSON in a `"glint"` key in your `package.json`
12+
- YAML or JSON in `.glintrc`, `.glintrc.yml` or `.glintrc.json`
13+
- JavaScript in `.glintrc.js` or `glint.config.js`
14+
15+
[`cosmiconfig`]: https://github.com/davidtheclark/cosmiconfig
16+
17+
Configuration will be searched upward starting from the directory in whicn your `tsconfig.json` is located.
18+
19+
## Config Options
20+
21+
- `include`: A glob or array of globs specifying, relative to the location of your config file, what files should be considered for template processing by glint. Default: `'**/*.ts'`.
22+
- `exclude`: A glob or array of globs specifying, relative to the location of your config file, what files should _not_ considered for template processing by glint. Default: `'**/node_modules/**'`.
23+
24+
Note that if a file is matched by both `include` and `exclude`, it will be ignored.

packages/config/package.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,15 @@
66
"author": "Dan Freeman (https://github.com/dfreeman)",
77
"main": "lib/index.js",
88
"types": "lib/index.d.ts",
9+
"files": [
10+
"README.md",
11+
"lib"
12+
],
913
"scripts": {
1014
"lint": "eslint . --ext ts --max-warnings 0 && prettier --check src",
11-
"test": "jest"
15+
"test": "jest",
16+
"build": "tsc --build",
17+
"prepack": "yarn build"
1218
},
1319
"dependencies": {
1420
"cosmiconfig": "^6.0.0",

packages/template/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# `@glint/template`
2+
3+
This package contains type declarations used by other [glint] packages for perfoming TypeScript analysis of Glimmer templates. These types determine the semantics of component/modifier/helper invocations.
4+
5+
[glint]: https://github.com/typed-ember/glint

packages/template/package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@
99
"lint": "eslint . --ext ts --max-warnings 0 && prettier --check .",
1010
"test": "tsc --project __tests__"
1111
},
12+
"files": [
13+
"README.md",
14+
"-private",
15+
"*.d.ts"
16+
],
1217
"devDependencies": {
1318
"@glimmer/component": "^1.0.0",
1419
"@glimmerx/component": "^0.2.2",

packages/transform/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# `@glint/transform`
2+
3+
This package contains tools for rewriting Glimmer templates as a TypeScript approximation of their semantics, used by other [glint] packages.
4+
5+
[glint]: https://github.com/typed-ember/glint

packages/transform/package.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,15 @@
66
"author": "Dan Freeman (https://github.com/dfreeman)",
77
"main": "lib/index.js",
88
"types": "lib/index.d.ts",
9+
"files": [
10+
"README.md",
11+
"lib"
12+
],
913
"scripts": {
1014
"lint": "eslint . --ext ts --max-warnings 0 && prettier --check src",
11-
"test": "jest"
15+
"test": "jest",
16+
"build": "tsc --build",
17+
"prepack": "yarn build"
1218
},
1319
"dependencies": {
1420
"@babel/core": "^7.9.0",

packages/tsserver-plugin/README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# `@glint/tsserver-plugin`
2+
3+
This package contains a TypeScript [language service plugin] to present [glint] diagnostics for Glimmer templates, as well as enabling quick info, symbol renaming, jump-to-definition and limited autocomplete in template contexts.
4+
5+
[language service plugin]: https://github.com/microsoft/TypeScript/wiki/Writing-a-Language-Service-Plugin
6+
[glint]: https://github.com/typed-ember/glint

packages/tsserver-plugin/package.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,16 @@
55
"license": "MIT",
66
"author": "Dan Freeman (https://github.com/dfreeman)",
77
"main": "lib/index.js",
8+
"types": "lib/index.d.ts",
9+
"files": [
10+
"README.md",
11+
"lib"
12+
],
813
"scripts": {
914
"lint": "eslint . --ext ts --max-warnings 0 && prettier --check src",
10-
"test": "jest"
15+
"test": "jest",
16+
"build": "tsc --build",
17+
"prepack": "yarn build"
1118
},
1219
"dependencies": {
1320
"@glint/config": "link:../config",

0 commit comments

Comments
 (0)