-
Notifications
You must be signed in to change notification settings - Fork 607
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a test case for the loc typings generator plugin.
- Loading branch information
Showing
13 changed files
with
101 additions
and
94 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 @@ | ||
/** | ||
* Defines configuration used by core Heft. | ||
*/ | ||
{ | ||
"$schema": "https://developer.microsoft.com/json-schemas/heft/v0/heft.schema.json", | ||
|
||
// TODO: Add comments | ||
"phasesByName": { | ||
"build": { | ||
"cleanFiles": [{ "includeGlobs": ["dist", "lib", "lib-commonjs"] }], | ||
|
||
"tasksByName": { | ||
"loc-typings": { | ||
"taskPlugin": { | ||
"pluginPackage": "@rushstack/heft-localization-typings-plugin", | ||
"options": { | ||
"generatedTsFolder": "temp/loc-json-ts" | ||
} | ||
} | ||
}, | ||
"typescript": { | ||
"taskDependencies": ["loc-typings"], | ||
"taskPlugin": { | ||
"pluginPackage": "@rushstack/heft-typescript-plugin" | ||
} | ||
}, | ||
"lint": { | ||
"taskDependencies": ["typescript"], | ||
"taskPlugin": { | ||
"pluginPackage": "@rushstack/heft-lint-plugin" | ||
} | ||
}, | ||
"webpack": { | ||
"taskDependencies": ["typescript"], | ||
"taskPlugin": { | ||
"pluginPackage": "@rushstack/heft-webpack4-plugin" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
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
10 changes: 10 additions & 0 deletions
10
build-tests/localization-plugin-test-02/config/typescript.json
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,10 @@ | ||
/** | ||
* Configures the TypeScript plugin for Heft. This plugin also manages linting. | ||
*/ | ||
{ | ||
"$schema": "https://developer.microsoft.com/json-schemas/heft/v0/typescript.schema.json", | ||
|
||
"staticAssetsToCopy": { | ||
"fileExtensions": [".resx", ".json", ".resjson"] | ||
} | ||
} |
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 was deleted.
Oops, something went wrong.
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
14 changes: 0 additions & 14 deletions
14
build-tests/localization-plugin-test-02/src/strings3.loc.json
This file was deleted.
Oops, something went wrong.
10 changes: 10 additions & 0 deletions
10
build-tests/localization-plugin-test-02/src/strings3.resjson
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,10 @@ | ||
{ | ||
"string1": "string three with a \\ backslash", | ||
"_string1.comment": "the third string", | ||
|
||
"string2": "string four with an ' apostrophe", | ||
"_string2.comment": "the fourth string", | ||
|
||
"string3": "UNUSED STRING", | ||
"_string3.comment": "UNUSED STRING" | ||
} |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.