forked from bazel-contrib/rules_nodejs
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Closes bazel-contrib#395 PiperOrigin-RevId: 231848839
- Loading branch information
1 parent
2e1fd53
commit 8cb6591
Showing
99 changed files
with
675 additions
and
3,066 deletions.
There are no files selected for viewing
14 changes: 4 additions & 10 deletions
14
packages/concatjs/third_party/google3/rules_typescript/.bazelignore
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,12 +1,6 @@ | ||
node_modules | ||
internal/e2e/ts_auto_deps | ||
internal/e2e/package_karma | ||
internal/e2e/package_karma_stack_trace | ||
internal/e2e/package_typescript_2.7 | ||
internal/e2e/package_typescript_2.8 | ||
internal/e2e/package_typescript_2.9 | ||
internal/e2e/package_typescript_3.0 | ||
internal/e2e/package_typescript_3.1 | ||
internal/e2e/package_typescript_3.1_no_npm | ||
internal/e2e/package_typescript_karma | ||
devserver/devserver/test/test-workspace | ||
internal/e2e/disable_tsetse_for_external | ||
internal/e2e/npm_packages | ||
internal/e2e/ts_auto_deps | ||
internal/e2e/typescript_3.1 |
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
9 changes: 4 additions & 5 deletions
9
packages/concatjs/third_party/google3/rules_typescript/.gitignore
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,9 +1,8 @@ | ||
.idea | ||
node_modules | ||
/bazel-* | ||
/internal/e2e/package_karma/bazel-* | ||
/internal/e2e/package_typescript_*/bazel-* | ||
/internal/e2e/npm_packages/*/bazel-* | ||
/internal/e2e/npm_packages/*/package.json | ||
/internal/e2e/ts_auto_deps/bazel-* | ||
|
||
internal/e2e/ts_auto_deps/simple/BUILD | ||
internal/e2e/ts_auto_deps/simple/BUILD.bazel | ||
/internal/e2e/ts_auto_deps/simple/BUILD | ||
/internal/e2e/ts_auto_deps/simple/BUILD.bazel |
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
19 changes: 19 additions & 0 deletions
19
...ncatjs/third_party/google3/rules_typescript/internal/e2e/npm_packages/README.md
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,19 @@ | ||
# End-to-end tests for generated npm packages | ||
|
||
All tests that depend on the generated npm packages such as `@bazel/typescript` and `@bazel/karma` should | ||
go in this folder. | ||
|
||
## Running | ||
|
||
These tests are run using `test.sh` which generates the `package.json` files in each directory before calling `yarn test`. | ||
The `package.json` files are generated from template `package-template.json` files. The absolute locations of | ||
the generated npm packages are substituted in when generating the `package.json` files. | ||
|
||
### Running an individual test | ||
|
||
To run a specific test run this script with `./internal/e2e/npm_packages/test.sh --test <test_name>` where `<test_name>` | ||
is the name of the test folder to run. | ||
|
||
### Updating yarn.lock file | ||
|
||
To update the `yarn.lock` files for these tests run `./internal/e2e/npm_packages/test.sh --update-lock-files`. |
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
9 changes: 9 additions & 0 deletions
9
...hird_party/google3/rules_typescript/internal/e2e/npm_packages/karma/package-template.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,9 @@ | ||
{ | ||
"dependencies": { | ||
"@bazel/karma": "file:${BAZEL_KARMA_NPM_PACKAGE}", | ||
"karma": "3.0.0" | ||
}, | ||
"scripts": { | ||
"test": "bazel test ..." | ||
} | ||
} |
Oops, something went wrong.