Skip to content
This repository was archived by the owner on Apr 4, 2025. It is now read-only.

Commit b1feccf

Browse files
committed
chore: initial files
1 parent 5aed90f commit b1feccf

File tree

8 files changed

+435
-2
lines changed

8 files changed

+435
-2
lines changed

.editorconfig

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# http://editorconfig.org
2+
3+
root = true
4+
5+
[*]
6+
charset = utf-8
7+
indent_style = space
8+
indent_size = 2
9+
insert_final_newline = true
10+
trim_trailing_whitespace = true
11+
12+
[*.md]
13+
insert_final_newline = false
14+
trim_trailing_whitespace = true

.gitignore

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Outputs
2+
build/
3+
dist/
4+
5+
# IDEs
6+
.idea/
7+
jsconfig.json
8+
.vscode/
9+
10+
# Typings file.
11+
typings/
12+
13+
# Misc
14+
node_modules/
15+
tmp/
16+
npm-debug.log*
17+
yarn-error.log*
18+
19+
# Mac OSX Finder files.
20+
**/.DS_Store
21+
.DS_Store

CONTRIBUTING.md

Lines changed: 247 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,247 @@
1+
# Contributing to Angular CLI
2+
3+
We would love for you to contribute to Angular CLI and help make it even better
4+
than it is today! As a contributor, here are the guidelines we would like you
5+
to follow:
6+
7+
- [Code of Conduct](#coc)
8+
- [Question or Problem?](#question)
9+
- [Issues and Bugs](#issue)
10+
- [Feature Requests](#feature)
11+
- [Submission Guidelines](#submit)
12+
- [Coding Rules](#rules)
13+
- [Commit Message Guidelines](#commit)
14+
- [Signing the CLA](#cla)
15+
16+
## <a name="coc"></a> Code of Conduct
17+
Help us keep Angular open and inclusive. Please read and follow our [Code of Conduct][coc].
18+
19+
## <a name="question"></a> Got a Question or Problem?
20+
21+
Please, do not open issues for the general support questions as we want to keep GitHub issues for bug reports and feature requests. You've got much better chances of getting your question answered on [StackOverflow](https://stackoverflow.com/questions/tagged/angular-cli) where the questions should be tagged with tag `angular-cli`.
22+
23+
StackOverflow is a much better place to ask questions since:
24+
25+
- there are thousands of people willing to help on StackOverflow
26+
- questions and answers stay available for public viewing so your question / answer might help someone else
27+
- StackOverflow's voting system assures that the best answers are prominently visible.
28+
29+
To save your and our time we will be systematically closing all the issues that are requests for general support and redirecting people to StackOverflow.
30+
31+
If you would like to chat about the question in real-time, you can reach out via [our gitter channel][gitter].
32+
33+
## <a name="issue"></a> Found an Issue?
34+
If you find a bug in the source code or a mistake in the documentation, you can help us by
35+
[submitting an issue](#submit-issue) to our [GitHub Repository][github]. Even better, you can
36+
[submit a Pull Request](#submit-pr) with a fix.
37+
38+
## <a name="feature"></a> Want a Feature?
39+
You can *request* a new feature by [submitting an issue](#submit-issue) to our [GitHub
40+
Repository][github]. If you would like to *implement* a new feature, please submit an issue with
41+
a proposal for your work first, to be sure that we can use it. Angular CLI is in developer preview
42+
and we are not ready to accept major contributions ahead of the full release.
43+
Please consider what kind of change it is:
44+
45+
* For a **Major Feature**, first open an issue and outline your proposal so that it can be
46+
discussed. This will also allow us to better coordinate our efforts, prevent duplication of work,
47+
and help you to craft the change so that it is successfully accepted into the project.
48+
* **Small Features** can be crafted and directly [submitted as a Pull Request](#submit-pr).
49+
50+
## <a name="submit"></a> Submission Guidelines
51+
52+
### <a name="submit-issue"></a> Submitting an Issue
53+
54+
Before you submit an issue, please search the issue tracker, maybe an issue for your problem already exists and the discussion might inform you of workarounds readily available.
55+
56+
We want to fix all the issues as soon as possible, but before fixing a bug we need to reproduce and confirm it. In order to reproduce bugs we will systematically ask you to provide a minimal reproduction scenario using `ng new repro-app`. Having a reproducible scenario gives us wealth of important information without going back & forth to you with additional questions like:
57+
58+
- version of Angular CLI used
59+
- `.angular-cli.json` configuration
60+
- 3rd-party libraries and their versions
61+
- and most importantly - a use-case that fails
62+
63+
A minimal reproduce scenario using allows us to quickly confirm a bug (or point out coding problem) as well as confirm that we are fixing the right problem.
64+
65+
We will be insisting on a minimal reproduce scenario in order to save maintainers time and ultimately be able to fix more bugs. Interestingly, from our experience users often find coding problems themselves while preparing a minimal repository. We understand that sometimes it might be hard to extract essentials bits of code from a larger code-base but we really need to isolate the problem before we can fix it.
66+
67+
Unfortunately we are not able to investigate / fix bugs without a minimal reproduction, so if we don't hear back from you we are going to close an issue that don't have enough info to be reproduced.
68+
69+
You can file new issues by filling out our [new issue form](https://github.com/angular/angular-cli/issues/new).
70+
71+
72+
### <a name="submit-pr"></a> Submitting a Pull Request (PR)
73+
Before you submit your Pull Request (PR) consider the following guidelines:
74+
75+
* Search [GitHub](https://github.com/angular/angular-cli/pulls) for an open or closed PR
76+
that relates to your submission. You don't want to duplicate effort.
77+
* Please sign our [Contributor License Agreement (CLA)](#cla) before sending PRs.
78+
We cannot accept code without this.
79+
* Make your changes in a new git branch:
80+
81+
```shell
82+
git checkout -b my-fix-branch master
83+
```
84+
85+
* Create your patch, **including appropriate test cases**.
86+
* Follow our [Coding Rules](#rules).
87+
* Run the full Angular CLI test suite, as described in the [developer documentation][dev-doc],
88+
and ensure that all tests pass (coming soon).
89+
* Commit your changes using a descriptive commit message that follows our
90+
[commit message conventions](#commit). Adherence to these conventions
91+
is necessary because release notes are automatically generated from these messages.
92+
93+
```shell
94+
git commit -a
95+
```
96+
Note: the optional commit `-a` command line option will automatically "add" and "rm" edited files.
97+
98+
* Push your branch to GitHub:
99+
100+
```shell
101+
git push origin my-fix-branch
102+
```
103+
104+
* In GitHub, send a pull request to `angular-cli:master`.
105+
* If we suggest changes then:
106+
* Make the required updates.
107+
* Re-run the Angular CLI test suites to ensure tests are still passing.
108+
* Rebase your branch and force push to your GitHub repository (this will update your Pull Request):
109+
110+
```shell
111+
git rebase master -i
112+
git push -f
113+
```
114+
115+
That's it! Thank you for your contribution!
116+
117+
#### After your pull request is merged
118+
119+
After your pull request is merged, you can safely delete your branch and pull the changes
120+
from the main (upstream) repository:
121+
122+
* Delete the remote branch on GitHub either through the GitHub web UI or your local shell as follows:
123+
124+
```shell
125+
git push origin --delete my-fix-branch
126+
```
127+
128+
* Check out the master branch:
129+
130+
```shell
131+
git checkout master -f
132+
```
133+
134+
* Delete the local branch:
135+
136+
```shell
137+
git branch -D my-fix-branch
138+
```
139+
140+
* Update your master with the latest upstream version:
141+
142+
```shell
143+
git pull --ff upstream master
144+
```
145+
146+
## <a name="rules"></a> Coding Rules
147+
To ensure consistency throughout the source code, keep these rules in mind as you are working:
148+
149+
* All features or bug fixes **must be tested** by one or more specs (unit-tests or e2e-tests).
150+
* All public API methods **must be documented**. (Details TBC).
151+
* We follow [Google's JavaScript Style Guide][js-style-guide], but wrap all code at
152+
**100 characters**.
153+
154+
## <a name="commit"></a> Commit Message Guidelines
155+
156+
We have very precise rules over how our git commit messages can be formatted. This leads to **more
157+
readable messages** that are easy to follow when looking through the **project history**. But also,
158+
we use the git commit messages to **generate the Angular CLI change log**.
159+
160+
### Commit Message Format
161+
Each commit message consists of a **header**, a **body** and a **footer**. The header has a special
162+
format that includes a **type**, a **scope** and a **subject**:
163+
164+
```
165+
<type>(<scope>): <subject>
166+
<BLANK LINE>
167+
<body>
168+
<BLANK LINE>
169+
<footer>
170+
```
171+
172+
The **header** is mandatory and the **scope** of the header is optional.
173+
174+
Any line of the commit message cannot be longer 100 characters! This allows the message to be easier
175+
to read on GitHub as well as in various git tools.
176+
177+
### Revert
178+
If the commit reverts a previous commit, it should begin with `revert: `, followed by the header of the reverted commit. In the body it should say: `This reverts commit <hash>.`, where the hash is the SHA of the commit being reverted.
179+
180+
### Type
181+
Must be one of the following:
182+
183+
* **build**: Changes that affect the build system or external dependencies
184+
* **ci**: Changes to our CI configuration files and scripts
185+
* **docs**: Documentation only changes
186+
* **feat**: A new feature
187+
* **fix**: A bug fix
188+
* **perf**: A code change that improves performance
189+
* **refactor**: A code change that neither fixes a bug nor adds a feature
190+
* **style**: Changes that do not affect the meaning of the code (white-space, formatting, missing
191+
semi-colons, etc)
192+
* **test**: Adding missing tests or correcting existing tests
193+
194+
### Scope
195+
The scope should be the name of the npm package affected as perceived by the person reading changelog generated from the commit messages.
196+
197+
The following is the list of supported scopes:
198+
199+
* **@angular/cli**
200+
* **@ngtools/json-schema**
201+
* **@ngtools/logger**
202+
* **@ngtools/webpack**
203+
204+
There are currently a few exceptions to the "use package name" rule:
205+
206+
* **packaging**: used for changes that change the npm package layout in all of our packages, e.g. public path changes, package.json changes done to all packages, d.ts file/format changes, changes to bundles, etc.
207+
* **changelog**: used for updating the release notes in CHANGELOG.md
208+
* none/empty string: useful for `style`, `test` and `refactor` changes that are done across all packages (e.g. `style: add missing semicolons`)
209+
210+
### Subject
211+
The subject contains succinct description of the change:
212+
213+
* use the imperative, present tense: "change" not "changed" nor "changes"
214+
* don't capitalize first letter
215+
* no dot (.) at the end
216+
217+
### Body
218+
Just as in the **subject**, use the imperative, present tense: "change" not "changed" nor "changes".
219+
The body should include the motivation for the change and contrast this with previous behavior.
220+
221+
### Footer
222+
The footer should contain any information about **Breaking Changes** and is also the place to
223+
reference GitHub issues that this commit **Closes**.
224+
225+
**Breaking Changes** should start with the word `BREAKING CHANGE:` with a space or two newlines. The rest of the commit message is then used for this.
226+
227+
A detailed explanation can be found in this [document][commit-message-format].
228+
229+
## <a name="cla"></a> Signing the CLA
230+
231+
Please sign our Contributor License Agreement (CLA) before sending pull requests. For any code
232+
changes to be accepted, the CLA must be signed. It's a quick process, we promise!
233+
234+
* For individuals we have a [simple click-through form][individual-cla].
235+
* For corporations we'll need you to
236+
[print, sign and one of scan+email, fax or mail the form][corporate-cla].
237+
238+
239+
[coc]: https://github.com/angular/code-of-conduct/blob/master/CODE_OF_CONDUCT.md
240+
[commit-message-format]: https://docs.google.com/document/d/1QrDFcIiPjSLDn3EL15IJygNPiHORgU1_OOAqWjiDU5Y/edit#
241+
[corporate-cla]: http://code.google.com/legal/corporate-cla-v1.0.html
242+
[dev-doc]: https://github.com/angular/angular-cli#development-hints-for-working-on-angular-cli
243+
[GitHub]: https://github.com/angular/angular-cli
244+
[gitter]: https://gitter.im/angular/angular-cli
245+
[individual-cla]: http://code.google.com/legal/individual-cla-v1.0.html
246+
[js-style-guide]: https://google.github.io/styleguide/jsguide.html
247+
[stackoverflow]: http://stackoverflow.com/questions/tagged/angular-cli

LICENSE

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
MIT License
1+
The MIT License
22

3-
Copyright (c) 2017 Angular
3+
Copyright (c) 2017 Google, Inc.
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

package.json

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
{
2+
"name": "@angular/sdk",
3+
"version": "0.0.0",
4+
"description": "Software Development Kit for Angular",
5+
"bin": {
6+
"sdk-admin": "./bin/sdk-admin"
7+
},
8+
"keywords": [],
9+
"scripts": {},
10+
"repository": {
11+
"type": "git",
12+
"url": "https://github.com/angular/sdk.git"
13+
},
14+
"engines": {
15+
"node": ">= 6.9.0",
16+
"npm": ">= 3.0.0"
17+
},
18+
"author": "Angular Authors",
19+
"license": "MIT",
20+
"bugs": {
21+
"url": "https://github.com/angular/sdk/issues"
22+
},
23+
"homepage": "https://github.com/angular/sdk",
24+
"dependencies": {
25+
"@types/chalk": "^0.4.28",
26+
"@types/common-tags": "^1.2.4",
27+
"@types/glob": "^5.0.29",
28+
"@types/jasmine": "~2.2.0",
29+
"@types/minimist": "^1.2.0",
30+
"@types/node": "^6.0.36",
31+
"@types/semver": "^5.3.30",
32+
"chai": "^3.5.0",
33+
"chalk": "^1.1.3",
34+
"common-tags": "^1.3.1",
35+
"conventional-changelog": "^1.1.0",
36+
"glob": "^7.0.3",
37+
"jasmine": "^2.4.1",
38+
"jasmine-spec-reporter": "^3.2.0",
39+
"minimatch": "^3.0.3",
40+
"minimist": "^1.2.0",
41+
"npm-run": "^4.1.0",
42+
"npm-run-all": "^4.0.0",
43+
"rxjs": "^5.0.1",
44+
"semver": "^5.3.0",
45+
"ts-node": "^2.0.0",
46+
"tslint": "^4.0.2",
47+
"typescript": "~2.2.0"
48+
}
49+
}

packages/@angular/.gitkeep

Whitespace-only changes.

tsconfig.json

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
{
2+
"compilerOptions": {
3+
"declaration": true,
4+
"emitDecoratorMetadata": true,
5+
"experimentalDecorators": true,
6+
"mapRoot": "",
7+
"module": "commonjs",
8+
"moduleResolution": "node",
9+
"noEmitOnError": true,
10+
"noImplicitAny": true,
11+
"noUnusedParameters": true,
12+
"noUnusedLocals": true,
13+
"outDir": "./build",
14+
"rootDir": ".",
15+
"skipLibCheck": true,
16+
"sourceMap": true,
17+
"sourceRoot": "",
18+
"target": "es6",
19+
"lib": [
20+
"es2015",
21+
"es2016",
22+
"es2017"
23+
],
24+
"baseUrl": "",
25+
"typeRoots": [
26+
"./node_modules/@types"
27+
],
28+
"types": [
29+
"jasmine",
30+
"node"
31+
]
32+
},
33+
"exclude": [
34+
"build/**/*",
35+
"dist/**/*",
36+
"node_modules/**/*",
37+
"tmp/**/*"
38+
]
39+
}

0 commit comments

Comments
 (0)