nativescript-dev-webpack
nativescript-dev-webpack copied to clipboard
Split the package into framework-specific plugins
Follows up on #685
What?
The nativescript-dev-webpack package will be split into several packages that are framework-specific:
@nativescript/webpack-corewill contain the common build logic and will NOT be a dependency in the user projects. It will be a dependency of the framework-specific packages.@nativescript/webpack-ngwill be the webpack build package for NativeScript Angular projects.@nativescript/webpack-vuewill be the webpack build package for NativeScript Vue projects.@nativescript/webpack-tswill be the webpack build package for NativeScript TypeScript projects.@nativescript/webpack-js- will be the webpack build package for NativeScript JavaScript projects.
How?
Monorepo, managed with Lerna.
Migration
The nativescript-dev-webpack plugin will be deprecated and the new packages will be released. The developers should start using framework-specific plugins in their projects.
For example, if the project is built with NativeScript Angular, the migration steps are:
- Remove
nativescript-dev-webpack:
npm uninstall -D nativescript-dev-webpack
- Add
@nativescript/webpack-ngasdevDependency:
npm install -D @nativescript/webpack-ng