-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1243a9d
commit e003dd9
Showing
24 changed files
with
817 additions
and
382 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"schemaVersion": "1.0.0", | ||
"projectName": "ember-shepherd", | ||
"packages": [ | ||
{ | ||
"name": "@embroider/addon-blueprint", | ||
"version": "2.18.0", | ||
"blueprints": [ | ||
{ | ||
"name": "@embroider/addon-blueprint", | ||
"isBaseBlueprint": true, | ||
"options": [ | ||
"--ci-provider=github", | ||
"--pnpm", | ||
"--typescript" | ||
] | ||
} | ||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,11 @@ | ||
{ | ||
"plugins": [ | ||
[ | ||
"@babel/plugin-transform-typescript", | ||
{ | ||
"allExtensions": true, | ||
"allowDeclareFields": true, | ||
"onlyRemoveTypeImports": true | ||
} | ||
], | ||
["@babel/plugin-transform-typescript", { "allExtensions": true, "onlyRemoveTypeImports": true, "allowDeclareFields": true }], | ||
"@embroider/addon-dev/template-colocation-plugin", | ||
"@babel/plugin-transform-class-static-block", | ||
[ | ||
"babel-plugin-ember-template-compilation", | ||
{ | ||
"targetFormat": "hbs", | ||
"transforms": [] | ||
} | ||
], | ||
["@babel/plugin-proposal-decorators", { "version": "legacy" }], | ||
"@babel/plugin-transform-class-properties" | ||
["babel-plugin-ember-template-compilation", { | ||
"targetFormat": "hbs", | ||
"transforms": [] | ||
}], | ||
["module:decorator-transforms", { "runtime": { "import": "decorator-transforms/runtime" } }], | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,53 @@ | ||
{ | ||
"extends": "@tsconfig/ember/tsconfig.json", | ||
"include": [ | ||
"src/**/*", | ||
"unpublished-development-types/**/*" | ||
], | ||
"glint": { | ||
"environment": ["ember-loose", "ember-template-imports"] | ||
}, | ||
"compilerOptions": { | ||
"allowImportingTsExtensions": true, | ||
"allowJs": true, | ||
"skipLibCheck": true, | ||
"declaration": true, | ||
"declarationDir": "declarations", | ||
/** | ||
https://www.typescriptlang.org/tsconfig#noEmit | ||
We want to emit declarations, so this option must be set to `false`. | ||
@tsconfig/ember sets this to `true`, which is incompatible with our need to set `emitDeclarationOnly`. | ||
@tsconfig/ember is more optimized for apps, which wouldn't emit anything, only type check. | ||
*/ | ||
"noEmit": false, | ||
/** | ||
https://www.typescriptlang.org/tsconfig#emitDeclarationOnly | ||
We want to only emit declarations as we use Rollup to emit JavaScript. | ||
*/ | ||
"emitDeclarationOnly": true, | ||
"noEmit": false | ||
}, | ||
"include": ["src/**/*", "unpublished-development-types/**/*"], | ||
"extends": "@tsconfig/ember/tsconfig.json" | ||
|
||
/** | ||
https://www.typescriptlang.org/tsconfig#noEmitOnError | ||
Do not block emit on TS errors. | ||
*/ | ||
"noEmitOnError": false, | ||
|
||
/** | ||
https://www.typescriptlang.org/tsconfig#rootDir | ||
"Default: The longest common path of all non-declaration input files." | ||
Because we want our declarations' structure to match our rollup output, | ||
we need this "rootDir" to match the "srcDir" in the rollup.config.mjs. | ||
This way, we can have simpler `package.json#exports` that matches | ||
imports to files on disk | ||
*/ | ||
"rootDir": "./src", | ||
|
||
/** | ||
https://www.typescriptlang.org/tsconfig#allowImportingTsExtensions | ||
We want our tooling to know how to resolve our custom files so the appropriate plugins | ||
can do the proper transformations on those files. | ||
*/ | ||
"allowImportingTsExtensions": true | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// Add any types here that you need for local development only. | ||
// These will *not* be published as part of your addon, so be careful that your published code does not rely on them! | ||
|
||
import '@glint/environment-ember-loose'; | ||
import '@glint/environment-ember-template-imports'; | ||
|
||
declare module '@glint/environment-ember-loose/registry' { | ||
// Remove this once entries have been added! 👇 | ||
// eslint-disable-next-line @typescript-eslint/no-empty-interface | ||
export default interface Registry { | ||
// Add any registry entries from other addons here that your addon itself uses (in non-strict mode templates) | ||
// See https://typed-ember.gitbook.io/glint/using-glint/ember/using-addons | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.