@@ -10,7 +10,7 @@ as an example, but you should be able to adjust these instructions to other setu
10
10
Note for Windows users: we show unix commands here like ` cp -r ` to copy and ` rm -rf ` to delete files.
11
11
Windows does not have these commands so use Explorer instead.
12
12
13
- Start with preparing your existing project folder, let's call it ` awesome-app ` .
13
+ Start with preparing your existing project folder. We'll refer to it as ` awesome-app ` .
14
14
- commit and push your existing changes.
15
15
- clean your folder from temporary files and ignored files using ` git clean -fdx ` .
16
16
- rename your project folder to ` old-awesome-app ` .
@@ -24,18 +24,18 @@ Now make a new project on the same parent folder as `old-awesome-app` using Angu
24
24
25
25
Copy over your app files.
26
26
- Remove the existing app: ` rm -rf src/app src/styles.css src/index.html e2e ` .
27
- - Copy ` src/app/ ` , ` src/index.html ` , ` src/styles.css ` and ` e2e/ ` .
27
+ - Copy ` src/app/ ` , ` src/index.html ` , ` src/styles.css ` and ` e2e/ ` from your old app .
28
28
If you don't have a ` src/ ` folder then these files and folders should be
29
29
at the root of the old project instead.
30
30
```
31
- cp -r ../old-awesome-project /src/app ./src/app
32
- cp ../old-awesome-project /src/index.html ./src/index.html
33
- cp ../old-awesome-project /src/styles.css ./src/styles.css
34
- cp -r ../old-awesome-project /e2e ./e2e/
31
+ cp -r ../old-awesome-app /src/app ./src/app
32
+ cp ../old-awesome-app /src/index.html ./src/index.html
33
+ cp ../old-awesome-app /src/styles.css ./src/styles.css
34
+ cp -r ../old-awesome-app /e2e ./e2e/
35
35
```
36
- - Don't copy ` ../old-awesome-project /src/main.ts ` . Instead compare it to the new ` ./src/main.ts `
36
+ - Don't copy ` ../old-awesome-app /src/main.ts ` . Instead compare it to the new ` ./src/main.ts `
37
37
and manually copy any extra code the old one has.
38
- - Compare ` ../old-awesome-project /package.json ` to the new ` ./package.json ` and add in your
38
+ - Compare ` ../old-awesome-app /package.json ` to the new ` ./package.json ` and add in your
39
39
third party libraries and ` @types/* ` packages, project descriptions and any other fields.
40
40
- Run ` npm install ` to install any packages you added.
41
41
- Copy over any other files your app needs like images into ` src/assets ` .
@@ -53,10 +53,10 @@ relative paths instead.
53
53
- Do the same for any remaining script tags as well, using the ` scripts ` array instead.
54
54
55
55
The final step is to copy your git history so you can continue working without losing anything:
56
- - Copy over the git folder: ` cp -r ../old-awesome-project /.git .git `
56
+ - Copy over the git folder: ` cp -r ../old-awesome-app /.git .git `
57
57
- Commit and push your changes as normal.
58
58
59
- You can now delete ` ../old-existing-project ` , and you're done!
59
+ You can now delete ` ../old-awesome-app ` , and you're done!
60
60
61
61
The CLI runs static analysis on your code to ensure it's AOT ready, so you might run into a few
62
62
new compilation errors that weren't there before.
0 commit comments