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

Commit 2380a6f

Browse files
committed
refactor: remove the postinstall helper info
The following helper message is displayed after installation of the plugin: ``` NativeScript Webpack plugin was successfully added. You can now bundle your project by passing --bundle flag to NativeScript CLI commands: - tns build android --bundle - tns build ios --bundle - tns run android --bundle - tns run ios --bundle You can also pass the "--env.uglify" flag to use UglifyJS for minification. For more information check out https://docs.nativescript.org/tooling/bundling-with-webpack#bundling. ``` With {N} 6.0, this message is not relevant any more: 1). the `bundle` flag is not needed for webpack builds; 2). the default build/run workflow uses webpack.
1 parent cf74631 commit 2380a6f

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

dependencyManager.js

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,6 @@ Some dependencies have already been added. \
1010
If you want to force update them, please run "node_modules/.bin/update-ns-webpack".
1111
`;
1212

13-
const USAGE_MESSAGE = `
14-
NativeScript Webpack plugin was successfully added.
15-
You can now bundle your project by passing --bundle flag to NativeScript CLI commands:
16-
- tns build android --bundle
17-
- tns build ios --bundle
18-
- tns run android --bundle
19-
- tns run ios --bundle
20-
You can also pass the "--env.uglify" flag to use Terser for minification.
21-
For more information check out https://docs.nativescript.org/tooling/bundling-with-webpack#bundling.
22-
`;
23-
2413
function addProjectDeps(packageJson, force = false) {
2514
packageJson.devDependencies = packageJson.devDependencies || {};
2615
const postinstallOptions = {
@@ -105,8 +94,6 @@ function dependsOn(packageJson, package) {
10594
}
10695

10796
function showHelperMessages({ newDepsAdded, hasOldDeps }) {
108-
console.info(USAGE_MESSAGE);
109-
11097
if (hasOldDeps) {
11198
console.info(ALREADY_ADDED_MESSAGE);
11299
}

0 commit comments

Comments
 (0)