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

Commit 415f668

Browse files
committed
chore(demos): add preinstall script
Refer `nativescript-dev-webpack` from a local `.tgz` file.
1 parent b0357d3 commit 415f668

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

demo/AngularApp/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@
2929
"zone.js": "^0.8.26"
3030
},
3131
"devDependencies": {
32+
"@angular/compiler-cli": "~6.1.0-beta.3",
3233
"@ngtools/webpack": "~6.1.0-rc.0",
33-
"@angular/compiler-cli": "~6.1.0-beta.1",
3434
"@types/chai": "^4.0.2",
3535
"@types/mocha": "^2.2.41",
3636
"@types/node": "^7.0.5",
@@ -46,10 +46,11 @@
4646
"nativescript-dev-appium": "next",
4747
"nativescript-dev-sass": "next",
4848
"nativescript-dev-typescript": "next",
49-
"nativescript-dev-webpack": "file:../..",
49+
"nativescript-dev-webpack": "file:nativescript-dev-webpack.tgz",
5050
"typescript": "~2.7.2"
5151
},
5252
"scripts": {
53+
"preinstall": "npm pack ../../ && cp nativescript-dev-webpack*.tgz nativescript-dev-webpack.tgz",
5354
"e2e": "tsc -p e2e && mocha --opts ../config/mocha.opts --recursive e2e --appiumCapsLocation ../config/appium.capabilities.json",
5455
"compile-tests": "tsc -p e2e --watch"
5556
}

demo/JavaScriptApp/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,11 @@
2929
"mocha-multi": "^0.11.0",
3030
"nativescript-dev-appium": "next",
3131
"nativescript-dev-sass": "next",
32-
"nativescript-dev-webpack": "file:../..",
32+
"nativescript-dev-webpack": "file:nativescript-dev-webpack.tgz",
3333
"node-sass": "^4.7.1"
3434
},
3535
"scripts": {
36+
"preinstall": "npm pack ../../ && cp nativescript-dev-webpack*.tgz nativescript-dev-webpack.tgz",
3637
"e2e": "mocha --opts ../config/mocha.opts --recursive e2e --appiumCapsLocation ../config/appium.capabilities.json"
3738
}
3839
}

demo/TypeScriptApp/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,11 @@
3030
"nativescript-dev-appium": "next",
3131
"nativescript-dev-sass": "next",
3232
"nativescript-dev-typescript": "next",
33-
"nativescript-dev-webpack": "file:../..",
33+
"nativescript-dev-webpack": "file:nativescript-dev-webpack.tgz",
3434
"typescript": "~2.7.2"
3535
},
3636
"scripts": {
37+
"preinstall": "npm pack ../../ && cp nativescript-dev-webpack*.tgz nativescript-dev-webpack.tgz",
3738
"e2e": "tsc -p e2e && mocha --opts ../config/mocha.opts --recursive e2e --appiumCapsLocation ../config/appium.capabilities.json",
3839
"compile-tests": "tsc -p e2e --watch"
3940
}

0 commit comments

Comments
 (0)