Skip to content
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

build: use webpack for building apps. #1325

Closed
wants to merge 12 commits into from
Closed

build: use webpack for building apps. #1325

wants to merge 12 commits into from

Conversation

TheLarkInn
Copy link
Member

This pull request replaces the underlying broccoli build system and then replaces it with webpack as the build and bundler.

This will affect the following commands (however the user-level) functionality should go unchanged (besides unimplemented flags which will come after this PR.):

ng build (with --env flag and --watch flag supported)
ng serve (with --port flag supported)
ng test / ng e2e

The webpack configuration is blackboxed, and therefore users will not see a webpack.config.js file in their repository.

Also this PR will bump the typescript version to 2.0 (beta).

Fixes #909 #1155 #882

@googlebot
Copy link

We found a Contributor License Agreement for you (the sender of this pull request) and all commit authors, but as best as we can tell these commits were authored by someone else. If that's the case, please add them to this pull request and have them confirm that they're okay with these commits being contributed to Google. If we're mistaken and you did author these commits, just reply here to confirm.

@TheLarkInn TheLarkInn changed the title Webpack: It's getting real. Webpack: It's getting real (as the angular-cli bundler/build system). Jul 11, 2016
@TheLarkInn
Copy link
Member Author

@s-panferov s-panferov/awesome-typescript-loader#188 getting merged is very important for this build to pass. Let me know if you need to followup on it with me.

"declaration": false,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"mapRoot": "/",
"module": "commonjs",
"module": "es6",
Copy link
Member Author

Choose a reason for hiding this comment

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

Tree shake

@MarkPieszak
Copy link
Member

MarkPieszak commented Jul 13, 2016

@TheLarkInn Did you push the commit with VSCode or some other editor perhaps? Sometimes if you're in an office it could be strangely connected to some network drive that mysteriously has a .gitconfig on it, and it attached those names/emails on it. (Very bizarre I know).

Wow so no more SystemJS? 👍

@@ -0,0 +1,272 @@

Copy link
Contributor

Choose a reason for hiding this comment

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

Remove. Please use stashing and/or ghost commits to save work.

"mapRoot": "/",
"module": "commonjs",
"module": "es6",
"target": "es5",
Copy link
Contributor

Choose a reason for hiding this comment

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

Keep this file alphabetically ordered please.

@googlebot
Copy link

CLAs look good, thanks!

@hansl hansl changed the title Webpack: It's getting real (as the angular-cli bundler/build system). build: use webpack for building apps. Jul 14, 2016
chunksSortMode: 'dependency'
}),
new webpack.optimize.CommonsChunkPlugin({
name: ['polyfills', 'vendor'].reverse()
Copy link
Member

Choose a reason for hiding this comment

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

This is something PatrickJS added on his starter, but you can simply put it on the right order, is just two items.

Copy link
Member Author

Choose a reason for hiding this comment

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

Was this for tracking who was using it @filipesilva was curious. I thought it had bearing.

@@ -10,6 +10,7 @@
"keywords": [],
Copy link
Contributor

Choose a reason for hiding this comment

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

There seems to be a lot more stuff here that have been added, than what is actually needed.

@googlebot
Copy link

We found a Contributor License Agreement for you (the sender of this pull request) and all commit authors, but as best as we can tell these commits were authored by someone else. If that's the case, please add them to this pull request and have them confirm that they're okay with these commits being contributed to Google. If we're mistaken and you did author these commits, just reply here to confirm.

@filipesilva filipesilva force-pushed the webpack branch 2 times, most recently from 40d9b4b to b119b6d Compare July 15, 2016 04:51
@filipesilva
Copy link
Contributor

@googlebot these commits have been authored in by @TheLarkInn, @filipesilva and @hansl. All three ok with them their commits being included in this PR.

@filipesilva filipesilva reopened this Jul 15, 2016
TheLarkInn and others added 8 commits July 15, 2016 18:07
This pull request replaces the underlying broccoli build system and then
replaces it with webpack as the build and bundler.

This will affect the following commands (however the user-level)
functionality should go unchanged (besides unimplemented flags which
will come after this PR.):

ng build (with --env flag and --watch flag supported)
ng serve (with --port flag supported)
ng test / ng e2e

The webpack configuration is blackboxed, and therefore users will not
see a webpack.config.js file in their repository.

Also this PR will bump the typescript version to 2.0 (beta).

Fixes #909 #1155 #882
…ode, indentation causing linting errors, add back tsconfig sourcemapping, removed console logs, deleted material unused files.
@filipesilva filipesilva force-pushed the webpack branch 2 times, most recently from 1d1833e to e64a527 Compare July 15, 2016 19:45
@hansl
Copy link
Contributor

hansl commented Jul 15, 2016

Closing this for now, as we will work with PR to the webpack branch from now on.

@hansl hansl closed this Jul 15, 2016
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 10, 2019
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.

[Enhancement] Webpack and friends as alternative for underlying build/bundling system.
7 participants