forked from aspect-build/rules_ts
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial import of code from rules_nodejs
- Loading branch information
Showing
30 changed files
with
1,515 additions
and
432 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
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,4 @@ | ||
trailingComma: 'es5' | ||
tabWidth: 4 | ||
semi: false | ||
singleQuote: 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
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,37 +1,10 @@ | ||
# Template for Bazel rules | ||
# Bazel rules for ts | ||
|
||
Copy this template to create a Bazel ruleset. | ||
|
||
Features: | ||
|
||
- follows the official style guide at https://docs.bazel.build/versions/main/skylark/deploying.html | ||
- includes Bazel formatting as a pre-commit hook (using [buildifier]) | ||
- includes stardoc API documentation generator | ||
- includes typical toolchain setup | ||
- CI configured with GitHub Actions | ||
- Release on GitHub Actions when pushing a tag | ||
|
||
See https://docs.bazel.build/versions/main/skylark/deploying.html#readme | ||
|
||
[buildifier]: https://github.com/bazelbuild/buildtools/tree/master/buildifier#readme | ||
|
||
Ready to get started? Copy this repo, then | ||
|
||
1. search for "com_myorg_rules_mylang" and replace with the name you'll use for your workspace | ||
1. search for "myorg" and replace with GitHub org | ||
1. search for "mylang" and replace with the language/tool your rules are for | ||
1. rename directory "mylang" similarly | ||
1. run `pre-commit install` to get lints (see CONTRIBUTING.md) | ||
1. if you don't need to fetch platform-dependent tools, then remove anything toolchain-related. | ||
1. update the `actions/cache@v2` bazel cache key in [.github/workflows/ci.yaml](.github/workflows/ci.yaml) and [.github/workflows/release.yml](.github/workflows/release.yml) to be a hash of your source files. | ||
1. delete this section of the README (everything up to the SNIP). | ||
|
||
---- SNIP ---- | ||
|
||
# Bazel rules for mylang | ||
High-performance alternative to the `@bazel/typescript` npm package, based on | ||
Aspect's rules_js. | ||
|
||
## Installation | ||
|
||
From the release you wish to use: | ||
<https://github.com/myorg/rules_mylang/releases> | ||
<https://github.com/aspect-build/rules_ts/releases> | ||
copy the WORKSPACE snippet into your `WORKSPACE` 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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,7 @@ | ||
load("@aspect_rules_ts//ts:defs.bzl", "ts_project") | ||
|
||
ts_project( | ||
name = "ts", | ||
srcs = ["foo.ts"], | ||
declaration = 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 @@ | ||
export const a: string = 'a' |
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,5 @@ | ||
{ | ||
"compilerOptions": { | ||
"declaration": 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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.