-
-
Notifications
You must be signed in to change notification settings - Fork 57
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
acc63cd
commit b04c9e7
Showing
9 changed files
with
846 additions
and
42 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 |
---|---|---|
@@ -1,7 +1,12 @@ | ||
{ | ||
"plugins": [ | ||
["@babel/plugin-transform-typescript", { | ||
"allExtensions": true, | ||
"onlyRemoveTypeImports": true, | ||
"allowDeclareFields": true | ||
}], | ||
"@embroider/addon-dev/template-colocation-plugin", | ||
["@babel/plugin-proposal-decorators", { "legacy": true }], | ||
"@babel/plugin-proposal-class-properties" | ||
] | ||
} | ||
} |
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
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
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,42 @@ | ||
{ | ||
"extends": "@tsconfig/ember/tsconfig.json", | ||
"include": [ | ||
"src/**/*", | ||
"unpublished-development-types/**/*" | ||
], | ||
"glint": { | ||
"environment": ["ember-loose", "ember-template-imports"] | ||
}, | ||
"compilerOptions": { | ||
"allowJs": true, | ||
"declarationDir": "declarations", | ||
|
||
/** | ||
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#verbatimModuleSyntax | ||
We don't want to include types dependencies in our compiled output, so tell TypeScript | ||
to enforce using `import type` instead of `import` for Types. | ||
*/ | ||
"verbatimModuleSyntax": true, | ||
|
||
/** | ||
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,18 @@ | ||
// 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 'ember-source/types'; | ||
|
||
import '@glint/environment-ember-loose'; | ||
|
||
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 | ||
} | ||
} | ||
|
||
declare global { | ||
const FastBoot: unknown; | ||
} |
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 |
---|---|---|
|
@@ -5,8 +5,9 @@ | |
"url": "[email protected]:ember-cli/ember-page-title.git" | ||
}, | ||
"scripts": { | ||
"build": "pnpm --filter 'ember-page-title' build", | ||
"lint": "pnpm --filter '*' lint", | ||
"prepare": "cd addon && pnpm build" | ||
"test": "pnpm --filter '*' test" | ||
}, | ||
"devDependencies": { | ||
"@release-it-plugins/lerna-changelog": "^6.0.0", | ||
|
Oops, something went wrong.