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

refactor: remove the postinstall helper info #984

Merged
merged 1 commit into from
Jul 16, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 0 additions & 13 deletions dependencyManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,6 @@ Some dependencies have already been added. \
If you want to force update them, please run "node_modules/.bin/update-ns-webpack".
`;

const USAGE_MESSAGE = `
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 Terser for minification.
For more information check out https://docs.nativescript.org/tooling/bundling-with-webpack#bundling.
`;

function addProjectDeps(packageJson, force = false) {
packageJson.devDependencies = packageJson.devDependencies || {};
const postinstallOptions = {
Expand Down Expand Up @@ -105,8 +94,6 @@ function dependsOn(packageJson, package) {
}

function showHelperMessages({ newDepsAdded, hasOldDeps }) {
console.info(USAGE_MESSAGE);

if (hasOldDeps) {
console.info(ALREADY_ADDED_MESSAGE);
}
Expand Down