-
Notifications
You must be signed in to change notification settings - Fork 12k
chore(docs): add webpack update instructions #1456
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore(docs): add webpack update instructions #1456
Conversation
c7e8ffd
to
519d8e3
Compare
LGTM. |
* `./config/karma-test-shim.js` | ||
* `./src/app/system-config.ts` | ||
* `./angular-cli-build.js` | ||
* `./typings.json` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line 37 says ./typings.json
is updated, here (Line 50) it can be deleted. Typo?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo indeed, fixed now!
Also another note. Even if I do this for a new project,
I believe this is because |
2db4568
to
43b3276
Compare
@intellix at the moment we haven't yet done the There's a shortcut you can use as well, |
(closed by accident) |
## Local project package: | ||
``` | ||
rm -rf node_modules dist tmp typings | ||
npm install --save-dev angular-cli@webpack |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With the release to npm w/ webpack the @webpack
is not needed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hans said that the release would not be made as 1.0.0-beta.11
but rather as webpack
, so we need to install that particular version for now.
95dd6b5
to
061fc54
Compare
If you use sass. You have also to rename your css files to .scss or .sass in templateUrl otherwise It won't be picked up and an error message is shown. |
@elvirdolic good point. I'll add that to a list on the first comment so that it's updated before the release. |
1. Updated files: | ||
* `./config/karma.conf.js` - `frameworks`/`plugins`/`files`/`exclude`/`preprocessors` entries changed, added `angularCliConfig` entry. | ||
* `./e2e/tsconfig.json` - property cleanup, changed `outdir`, added `typeRoots` | ||
* `./package.json` - removed typings postinstall script, removed `ember-cli-inject-live-reload`/`es6-shim`/`systemjs` dependencies, added `core-js`/`ts-helpers` dependencies, updated `angular-cli`/`codelyzer`/`ts-node`/`ts-lint`/`typescript` devDependencies, added `@types/jasmine`/`@types/protractor`/`karma-coverage` devDependencies. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should #1468 be merged in before the @webpack
release, karma-remap-istanbul
will be added to the devDependencies
list.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Aiming to get his merged in asap, so will update it later with this change for an upcoming release.
17de707
to
79f1a00
Compare
@@ -0,0 +1,59 @@ | |||
# Upgrading from [email protected] to the [email protected] | |||
|
|||
To update `angular-cli` to the webpack preview, you must update both the global package, project's local package and your project files. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Technically the global package shouldn't care about it. Only the local package needs to be installed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the official update procedure for ember-cli itself actually. I don't think it's a good idea to have de-synced versions of global and local... plus without the global version your ng new
will generate old projects.
79f1a00
to
cdaa8de
Compare
|
||
## Project files | ||
|
||
You will need to run `ng init` to check for changes in all the auto-generated files created by `ng new` and allow you to update yours. You are offered four choices for each changed file: `y` (overwrite), `n` (don't overwrite), `d` (show diff between your file and the updated file) and `h` (help). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove ng init
. It's dangerous that people are relying on it; it will not touch files that have been deleted, or files added by the user. We need to list a higher level list of things to take care when updating the application.
I still have pretty strong comments about the structure of this document, but if you insist on getting this in first and then working on incremental updates I'm fine with its state right now. |
Hi there, I am trying a lot of approaches to migrate from my current project running on systemJS based on the quick-start to the format of the angular-cli. Do you maybe have some advice? |
@wouterkirstein I'd say this:
If you still have problems then stack overflow is the best place to ask. |
Hi Filipe!
Thanks for all the help appreciated!
Wouter
From: Filipe Silva <[email protected]>
To: angular/angular-cli <[email protected]>
Cc: Wouter Kirstein <[email protected]>; Mention <[email protected]>
Sent: Thursday, December 22, 2016 8:56 PM
Subject: Re: [angular/angular-cli] chore(docs): add webpack update instructions (#1456)
@wouterkirstein I'd say this:
- make a new project using ng new
- copy over the whole app into ./src/
- configure your main.ts in angular-cli.json (and anything else you see is different)
- remove any module.id you have in components (not needed)
- make all html/css paths in components relative
If you still have problems then stack overflow is the best place to ask.—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Blocked by #1455 and
angular-cli@webpack
release. This PR should not be merged before we do a release, as there are more changes that can happen meanwhile.Things that need to be incorporated into the guide:
styleUrls
to include their real suffix, in beta.10 we were always using.css
suffix in the array.