Skip to content
This repository was archived by the owner on Feb 26, 2024. It is now read-only.

Bump angular to 4+, update year to 2017, HTML output for build via webpack #158

Merged
merged 4 commits into from
Jul 17, 2017

Conversation

mcescalante
Copy link
Contributor

@mcescalante mcescalante commented Feb 3, 2017

Changes:

  • Bump Angular and some other dependencies to latest versions
  • Update angular2-in-memory-web-api to angular-in-memory-web-api to reflect latest package changes (package name changed, see https://www.npmjs.com/package/angular2-in-memory-web-api)
  • Remove bootstrap from dependencies (it's not linked or used anywhere)
  • Add html-webpack-plugin and plugin to webpack.config.js so that npm run build outputs a working index.html file.
  • Update year to 2017 in the index

I have tested bumped versions with a fresh clone. Happy to make additional changes if needed for this PR!

@googlebot
Copy link

Thanks for your pull request. It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

📝 Please visit https://cla.developers.google.com/ to sign.

Once you've signed, please reply here (e.g. I signed it!) and we'll verify. Thanks.


  • If you've already signed a CLA, it's possible we don't have your GitHub username or you're using a different email address. Check your existing CLA data and verify that your email is set on your git commits.
  • If you signed the CLA as a corporation, please let us know the company's name.

@mcescalante
Copy link
Contributor Author

All set, I signed the CLA! :)

@googlebot
Copy link

CLAs look good, thanks!

@mcescalante mcescalante changed the title Bump angular, update year to 2017 Bump angular, update year to 2017, HTML output for build Feb 3, 2017
@mcescalante mcescalante mentioned this pull request Feb 13, 2017
@pascal08
Copy link

I can confirm this works. Just deployed my package on a server after I merged these changes. Thanks!

@mcescalante
Copy link
Contributor Author

@pascal08 if you are using this base and want Angular 4+ and other updated dependencies, I just added another commit that updates dependencies 😄

@mcescalante mcescalante changed the title Bump angular, update year to 2017, HTML output for build Bump angular to 4+, update year to 2017, HTML output for build via webpack Apr 16, 2017
@@ -16,12 +17,17 @@ var webpackConfig = {
plugins: [
new webpack.ContextReplacementPlugin(
// The (\\|\/) piece accounts for path separators in *nix and Windows
/angular(\\|\/)core(\\|\/)src(\\|\/)linker/,
path.resolve(__dirname, './src'),
/angular(\\|\/)core(\\|\/)@angular/,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you explain why you want to change this?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This ContextReplacementPlugin has to do with silencing some warnings that webpack outputs. See this issue: angular/angular#11580. The behavior between Angular 2.x and 4.x changed a little, and so with the update to 4.x we also want to update the webpack "workaround". If you are staying on Angular 2.x, you wouldn't want to make this change.

This specific comment in the issue addresses the updated behavior and updated webpack config: angular/angular#11580 (comment)

@pascal08
Copy link

@mcescalante I just merged your changes and bumped my project to Angular 4. Works like a charm. This should be merged!

@PatrickJS PatrickJS merged commit 1f7ed58 into angular:master Jul 17, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants