Skip to content
This repository has been archived by the owner on Aug 7, 2021. It is now read-only.

feat: make webpack deps production deps of the plugin #571

Merged
merged 5 commits into from
Jun 20, 2018

Conversation

sis0k0
Copy link
Contributor

@sis0k0 sis0k0 commented Jun 18, 2018

implements #569

BREAKING CHANGES:

The dependencies that were previously added by the nativescript-dev-webpack plugin to the project's package.json are now dependencies of the plugin itself.

MIGRATION:

  1. Remove all obsolete dependencies from your project. You can do that by invoking the script:
./node_modules/.bin/update-ns-webpack --deps
  1. [Angular] Add the following packages as devDependencies:
//package.json

"devDependencies": {
    "@angular-devkit/build-angular": "~0.7.0-rc.0",
    "@angular/compiler-cli": "~6.1.0-beta.1",
    //...
}

@sis0k0 sis0k0 force-pushed the sis0k0/move-dependencies branch from 4239015 to c9ed233 Compare June 18, 2018 13:50
@sis0k0
Copy link
Contributor Author

sis0k0 commented Jun 18, 2018

test

@sis0k0
Copy link
Contributor Author

sis0k0 commented Jun 19, 2018

test

@sis0k0 sis0k0 merged commit ba68a1b into master Jun 20, 2018
@sis0k0 sis0k0 deleted the sis0k0/move-dependencies branch June 20, 2018 10:05
sis0k0 added a commit that referenced this pull request Jul 3, 2018
@angular-devkit/build-angular is not a dependency

Revert to adding @ngtools/webpack instead of
@angular-devkit/build-angular because the later is ~150mb bigger and
slows down the {N} cloud builds.
Add @ngtools/webpack to the project dependencies only if
@angular-devkit/build-angular isn't there already. That's because the
@angular-devkit/build-angular already depends on @ngtools/webpack. This will prevent the
plugin from adding multiple instances of @ngtools/webpack to the project
which would cause the build to fail.

related to #571, #569
sis0k0 added a commit that referenced this pull request Jul 3, 2018
@angular-devkit/build-angular is not a dependency

Revert to adding @ngtools/webpack instead of
@angular-devkit/build-angular because the later is ~150mb bigger and
slows down the {N} cloud builds.
Add @ngtools/webpack to the project dependencies only if
@angular-devkit/build-angular isn't there already. That's because the
@angular-devkit/build-angular already depends on @ngtools/webpack. This will prevent the
plugin from adding multiple instances of @ngtools/webpack to the project
which would cause the build to fail.

related to #571, #569

fixes #595
sis0k0 added a commit that referenced this pull request Jul 3, 2018
@angular-devkit/build-angular is not a dependency

Revert to adding @ngtools/webpack instead of
@angular-devkit/build-angular because the later is ~150mb bigger and
slows down the {N} cloud builds.
Add @ngtools/webpack to the project dependencies only if
@angular-devkit/build-angular isn't there already. That's because the
@angular-devkit/build-angular already depends on @ngtools/webpack. This will prevent the
plugin from adding multiple instances of @ngtools/webpack to the project
which would cause the build to fail.

related to #571, #569

BREAKING CHANGES

Not really a breaking change but:
It's a good idea to remove the `@angular-devkit/build-angular` from the
package.json and add `@ngtools/webpack` instead as this will speed up
the build.

fixes #595
sis0k0 added a commit that referenced this pull request Jul 4, 2018
…ld-angular is not a dependency (#594)

* fix: add @ngtools/webpack to project deps only if
@angular-devkit/build-angular is not a dependency

Revert to adding @ngtools/webpack instead of
@angular-devkit/build-angular because the later is ~150mb bigger and
slows down the {N} cloud builds.
Add @ngtools/webpack to the project dependencies only if
@angular-devkit/build-angular isn't there already. That's because the
@angular-devkit/build-angular already depends on @ngtools/webpack. This will prevent the
plugin from adding multiple instances of @ngtools/webpack to the project
which would cause the build to fail.

related to #571, #569

BREAKING CHANGES

Not really a breaking change but:
It's a good idea to remove the `@angular-devkit/build-angular` from the
package.json and add `@ngtools/webpack` instead as this will speed up
the build.

fixes #595

* test(e2e): update demo Angular deps
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.

2 participants