@@ -28,33 +28,55 @@ We recommend [nvm](https://github.com/creationix/nvm) for managing multiple vers
2828## Create a new project based on the QuickStart
2929
3030Clone this repo into new project folder (e.g., ` my-proj ` ).
31- ``` bash
32- git clone https://github.com/angular/quickstart my-proj
31+ ``` shell
32+ git clone https://github.com/angular/quickstart my-proj
3333cd my-proj
3434```
3535
3636We have no intention of updating the source on ` angular/quickstart ` .
37- Discard everything "git-like" by deleting the ` .git ` folder.
38- ``` bash
39- rm -rf .git # non-Windows
37+ Discard the ` .git ` folder. .
38+ ``` shell
39+ rm -rf .git # OS/X (bash)
4040rd .git /S/Q # windows
4141```
42+ ### Delete _ non-essential_ files (optional)
43+
44+ You can quickly delete the _ non-essential_ files that concern testing and QuickStart repository maintenance
45+ (*** including all git-related artifacts*** such as the ` .git ` folder and ` .gitignore ` !)
46+ by entering the following commands while in the project folder:
47+
48+ ##### OS/X (bash)
49+ ``` shell
50+ xargs -a non-essential-files.txt rm -rf
51+ rm app/* .spec* .ts
52+ rm non-essential-files.txt
53+ ```
54+
55+ ##### Windows
56+ ``` shell
57+ for /f %i in (non-essential-files.txt) do del %i /F /S /Q
58+ rd .git /s /q
59+ rd e2e /s /q
60+ ` ` `
4261
4362# ## Create a new git repo
4463You could [start writing code](# start-development) now and throw it all away when you're done.
4564If you' d rather preserve your work under source control, consider taking the following steps.
4665
4766Initialize this project as a *local git repo* and make the first commit:
48- ``` bash
67+ ```shell
4968git init
5069git add .
5170git commit -m "Initial commit"
5271```
5372
73+ >Recover the deleted `.gitignore` from the QuickStart repository
74+ if you lost it in the _Delete non-essential files_ step.
75+
5476Create a *remote repository* for this project on the service of your choice.
5577
5678Grab its address (e.g. *`https://github.com/<my-org>/my-proj.git`*) and push the *local repo* to the *remote*.
57- ``` bash
79+ ```shell
5880git remote add origin <repo-address>
5981git push -u origin master
6082```
@@ -64,7 +86,7 @@ git push -u origin master
6486
6587Install the npm packages described in the `package.json` and verify that it works:
6688
67- ``` bash
89+ ```shell
6890npm install
6991npm start
7092```
0 commit comments