Skip to content

Commit c513511

Browse files
hanslkyliau
authored andcommitted
Various QoL with TSLint and Docs (#12655)
* docs: add README files to all root folders Except benchmark and tools. * refactor: move rules/ directory to etc/ And fix a linting error that was found while updating tslint usage * ci: lint errors out if TSLint shows a warning This is not a warning from the code itself, but from TSLint. For example, if a rule was missing, TSLint will just ignore the rule, show something on STDOUT and not fail. This fixes CI where local rules were missing for unknown reasons. It will now fail CI when that happens, which is the correct behaviour.
1 parent f62dc24 commit c513511

File tree

17 files changed

+118
-9
lines changed

17 files changed

+118
-9
lines changed

bin/README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# `/bin` Folder
2+
3+
This folder includes binaries that are linked when globally linking this repository.
4+
5+
Each file in this directory follows this pattern:
6+
7+
1. JavaScript only.
8+
1. Requires `../lib/bootstrap-local.js` to bootstrap TypeScript and Node integration.
9+
1. Requires `../lib/packages` and use the package metadata to find the binary script for the
10+
package the script is bootstrapping.
11+
1. Call out main, or simply require the file if it has no export.
12+
13+
`devkit-admin` does not follow this pattern as it needs to setup logging and run some localized
14+
logic.
15+
16+
In order to add a new script, you should make sure it's in the root `package.json`, so people
17+
linking this repo get a reference to the script.

docs/README.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# `/docs` Folder
2+
3+
This folder is used for all documentation. It contains a number of subfolders with short
4+
descriptions here.
5+
6+
## `/docs/design`
7+
8+
Design documents on GitHub, in Markdown format. The number of design documents available is limited.
9+
10+
## `/docs/documentation`
11+
12+
THIS FOLDER IS DEPRECATED AND SHOULD NOT BE UPDATED ANYMORE. Documentation is now available on
13+
angular.io and can be updated on the main [angular/angular](https://github.com/angular/angular)
14+
repo.
15+
16+
Markdown files used to publish to the [GitHub Wiki](https://github.com/angular/angular-cli/wiki).
17+
18+
## `/docs/process`
19+
20+
Description of various caretaker and workflow processes.
21+
22+
## `/docs/specifications`
23+
24+
Specifications for support of Angular CLI features. These are meant to be read directly on GitHub
25+
by developers of libraries who want to integrate with the Angular CLI.

etc/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# `/etc` Folder
2+
3+
This folder is for files that doesn't fit in other directories in the root folder.

etc/rules/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# TsLint Rules
2+
3+
This folder contains custom TsLint rules specific to this repository.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

rules/tsconfig.json renamed to etc/rules/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// things faster.
44
"extends": "../tsconfig.json",
55
"compilerOptions": {
6-
"outDir": "../dist/rules",
6+
"outDir": "../../dist/etc/rules",
77
"baseUrl": ""
88
},
99
"exclude": [

0 commit comments

Comments
 (0)