Skip to content

refactor(all): Repackaging #2056

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

Merged
merged 21 commits into from
Sep 12, 2016
Merged

refactor(all): Repackaging #2056

merged 21 commits into from
Sep 12, 2016

Conversation

hansl
Copy link
Contributor

@hansl hansl commented Sep 11, 2016

Moving Angular-CLI into packages/ and building the angular-cli.

The published packages will now have JavaScript only (with their d.ts), instead of being a mix of TypeScript and JavaScript, and it won't have the hacks of having a custom require extension to load the TypeScript.

Our development flow will be more streamlined, tools are going to be better (no more undefined symbols that are actually defined), and the npm packages will boot up way faster (since there's no more compilation during runtime).

Locally nothing changes, use npm link and run your local ng. Using the npm releases though it should be all javascript from the release.

The E2E tests also now uses the dist folder output to install in the new E2E app, making sure the process works for an app published to npm.

Note: Even though we're following the lerna structure, we won't be using their tool anytime soon.

@hansl hansl force-pushed the repackaging branch 4 times, most recently from 892a5be to 0f1adc5 Compare September 12, 2016 04:34
"includes": [
"./custom-typings.d.ts"
"blueprints/*/files/**/*",
"**/*.spec.ts"
Copy link
Contributor

Choose a reason for hiding this comment

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

What spec files are these?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We'll move acceptance specs into this package later on. I can remove if you want.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm going to remove and put back. This tsconfig was copied from the one in ast-tools.

return files
.map((fileName) => path.relative(packagesRoot, fileName))
.filter((fileName) => {
if (/^angular-cli.blueprints/.test(fileName)) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Shouldn't this be /^angular-cli\/blueprints/ instead? There doesn't seem to be any file with angular-cli.blueprints in it's name.

Copy link
Contributor Author

@hansl hansl Sep 12, 2016

Choose a reason for hiding this comment

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

It's a regex, so . will match both / and \. Changed it to clearre.

Copy link
Contributor

Choose a reason for hiding this comment

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

That didn't even occur to me, but of course it makes sense.

@elvirdolic
Copy link

What is the goal/reason for this mega PR.

@hansl
Copy link
Contributor Author

hansl commented Sep 12, 2016

Clarified the text.

@hansl hansl merged commit 1572270 into angular:master Sep 12, 2016
@hansl hansl deleted the repackaging branch September 12, 2016 20:29
JohannesHoppe pushed a commit to angular-schule/angular-cli-ghpages that referenced this pull request Oct 8, 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.

5 participants