Skip to content

Commit

Permalink
Merge pull request #2411 from hashicorp/showcase-gts/initial-setup
Browse files Browse the repository at this point in the history
Showcase `.gts` - Initial setup
  • Loading branch information
didoo authored Sep 13, 2024
2 parents 384a389 + ade2be5 commit 5ccd8d4
Show file tree
Hide file tree
Showing 5 changed files with 261 additions and 3 deletions.
4 changes: 3 additions & 1 deletion showcase/.prettierrc.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
'use strict';

module.exports = {
plugins: ['prettier-plugin-ember-template-tag'],
templateSingleQuote: false,
trailingComma: 'es5',
overrides: [
{
files: '*.{js,ts}',
files: '*.{js,ts,gjs,gts}',
options: {
singleQuote: true,
},
Expand Down
10 changes: 10 additions & 0 deletions showcase/.template-lintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,14 @@ module.exports = {
'no-builtin-form-components': false,
},
ignore: ['blueprints/**', 'tests/**'],
overrides: [
// temporary fix until the prettier plugin works with `.gts/gjs` files
// https://github.com/ember-template-lint/ember-template-lint-plugin-prettier/issues/268
{
files: ['**/*.{gjs,gts}'],
rules: {
prettier: false,
},
},
],
};
3 changes: 3 additions & 0 deletions showcase/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
"@glimmer/tracking": "^1.1.2",
"@glint/core": "^1.4.0",
"@glint/environment-ember-loose": "^1.4.0",
"@glint/environment-ember-template-imports": "^1.4.0",
"@glint/template": "^1.4.0",
"@hashicorp/design-system-components": "workspace:^",
"@hashicorp/design-system-tokens": "workspace:^",
Expand Down Expand Up @@ -83,6 +84,7 @@
"ember-source": "~5.9.0",
"ember-source-channel-url": "^3.0.0",
"ember-style-modifier": "^4.3.1",
"ember-template-imports": "^4.1.1",
"ember-template-lint": "^6.0.0",
"ember-template-lint-plugin-prettier": "^5.0.0",
"ember-truth-helpers": "^3.1.1",
Expand All @@ -96,6 +98,7 @@
"eslint-plugin-qunit": "^8.1.1",
"loader.js": "^4.7.0",
"prettier": "^3.3.2",
"prettier-plugin-ember-template-tag": "^2.0.2",
"qunit": "^2.21.0",
"qunit-dom": "^3.0.0",
"sass": "^1.69.5",
Expand Down
5 changes: 4 additions & 1 deletion showcase/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@
"types/**/*"
],
"glint": {
"environment": "ember-loose"
"environment": [
"ember-loose",
"ember-template-imports"
]
},
}
Loading

0 comments on commit 5ccd8d4

Please sign in to comment.