@@ -28,33 +28,55 @@ We recommend [nvm](https://github.com/creationix/nvm) for managing multiple vers
28
28
## Create a new project based on the QuickStart
29
29
30
30
Clone 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
33
33
cd my-proj
34
34
```
35
35
36
36
We 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)
40
40
rd .git /S/Q # windows
41
41
```
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
+ ` ` `
42
61
43
62
# ## Create a new git repo
44
63
You could [start writing code](# start-development) now and throw it all away when you're done.
45
64
If you' d rather preserve your work under source control, consider taking the following steps.
46
65
47
66
Initialize this project as a *local git repo* and make the first commit:
48
- ``` bash
67
+ ```shell
49
68
git init
50
69
git add .
51
70
git commit -m "Initial commit"
52
71
```
53
72
73
+ >Recover the deleted `.gitignore` from the QuickStart repository
74
+ if you lost it in the _Delete non-essential files_ step.
75
+
54
76
Create a *remote repository* for this project on the service of your choice.
55
77
56
78
Grab its address (e.g. *`https://github.com/<my-org>/my-proj.git`*) and push the *local repo* to the *remote*.
57
- ``` bash
79
+ ```shell
58
80
git remote add origin <repo-address>
59
81
git push -u origin master
60
82
```
@@ -64,7 +86,7 @@ git push -u origin master
64
86
65
87
Install the npm packages described in the `package.json` and verify that it works:
66
88
67
- ``` bash
89
+ ```shell
68
90
npm install
69
91
npm start
70
92
```
0 commit comments