This repository has been archived by the owner on Feb 26, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: quickstart rebooted - now the source code for the QS in docs
- Loading branch information
Showing
247 changed files
with
305 additions
and
47,632 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
node_modules | ||
typings/ | ||
node_modules/ | ||
*.js | ||
*.js.map |
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,13 +1,21 @@ | ||
Copyright 2010-2015 Google, Inc. http://angularjs.org | ||
The MIT License (MIT) | ||
|
||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
Copyright (c) 2016 IdeaBlade | ||
|
||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
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,8 +1,55 @@ | ||
# Angular 2 Quickstart | ||
# Angular 2 QuickStart Source | ||
|
||
The Angular 2 quickstart includes all of the dependencies for writing Angular 2 in your browser. | ||
This repository holds the TypeScript source code of the [angular.io quickstart](https://angular.io/docs/ts/latest/quickstart.html), | ||
the foundation for most of the documentation samples and potentially a good starting point for your application. | ||
|
||
The quickstart contains | ||
- Pre-built ES5 version of [Angular 2](https://www.npmjs.com/package/angular2) alpha-14 | ||
- Pre-built ES5 version of [rtts-assert](https://www.npmjs.com/package/rtts-assert) alpha-7 | ||
- The es6-shim, which includes Traceur, ES6 Module Loader, System, Zone, and Traceur options for meta-data annotations. | ||
## Create a new project based on the QuickStart | ||
|
||
Clone this repo into new project folder (e.g., `my-proj`). | ||
```bash | ||
$ git clone https://github.com/angular/quickstart my-proj | ||
$ cd my-proj | ||
``` | ||
|
||
We have no intention of updating the source on `angular/quickstart`. | ||
Discard everything "git-like" by deleting the `.git` folder. | ||
```bash | ||
$ rm -rf .git | ||
``` | ||
|
||
### Create a new git repo | ||
You could [start writing code](#start-development) now and throw it all away when you're done. | ||
If you'd rather preserve your work under source control, consider taking the following steps. | ||
|
||
Initialize this project as a *local git repo* and make the first commit: | ||
```bash | ||
$ git init | ||
$ git add . | ||
$ git commit -m "Initial commit" | ||
``` | ||
|
||
Create a *remote repository* for this project on the service of your choice. | ||
|
||
Grab its address (e.g. *`https://github.com/<my-org>/my-proj.git`*) and push the *local repo* to the *remote*. | ||
```bash | ||
$ git remote add origin <repo-address> | ||
$ git push -u origin master | ||
``` | ||
### Start development | ||
|
||
Install the npm packages described in the `package.json` and verify that it works: | ||
|
||
```bash | ||
$ npm install | ||
$ npm start | ||
``` | ||
You're ready to write your application. | ||
|
||
Remember the npm scripts in `package.json`: | ||
|
||
* `npm start` - runs the compiler and a server at the same time, both in "watch mode". | ||
* `npm run tsc` - runs the TypeScript compiler once. | ||
* `npm run tsc:w` - runs the TypeScript compiler in watch mode; the process keeps running, awaiting changes to TypeScript files and re-compiling when it sees them. | ||
* `npm run lite` - runs the [lite-server](https://www.npmjs.com/package/lite-server), a light-weight, static file server, written and maintained by [John Papa](John Papa) with excellent support for Angular apps that use routing. | ||
* `npm run typings` - runs the typings tool. | ||
* `npm run postinstall` - called by *npm* automatically *after* it successfully completes package installation. This script installs the TypeScript definition files this app requires. |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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.