Skip to content
This repository was archived by the owner on Apr 4, 2023. It is now read-only.

Commit 6fbb40b

Browse files
committed
chore: update to latest webpack
Update to latest nativescript-dev-webpack and fix build with --bundle.
1 parent 1b139bc commit 6fbb40b

File tree

3 files changed

+12
-16
lines changed

3 files changed

+12
-16
lines changed

demo/package.json

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,17 @@
99
}
1010
},
1111
"dependencies": {
12+
"firebase-functions": "^2.0.5",
1213
"nativescript-plugin-firebase": "file:../publish/package/nativescript-plugin-firebase-7.1.1.tgz",
1314
"nativescript-theme-core": "^1.0.4",
1415
"nativescript-unit-test-runner": "^0.3.4",
1516
"tns-core-modules": "^4.2.1"
1617
},
1718
"devDependencies": {
1819
"@types/jasmine": "~2.8.0",
19-
"awesome-typescript-loader": "~3.1.3",
2020
"babel-traverse": "6.12.0",
2121
"babel-types": "6.11.1",
2222
"babylon": "6.8.4",
23-
"copy-webpack-plugin": "~4.0.1",
24-
"css-loader": "~0.28.7",
25-
"extract-text-webpack-plugin": "~3.0.0",
2623
"filewalker": "0.1.2",
2724
"jasmine-core": "~2.8.0",
2825
"karma": "^1.7.1",
@@ -31,21 +28,13 @@
3128
"lazy": "1.0.11",
3229
"nativescript-css-loader": "~0.26.0",
3330
"nativescript-dev-typescript": "~0.7.1",
34-
"nativescript-dev-webpack": "~0.10.0",
35-
"nativescript-worker-loader": "~0.8.1",
36-
"raw-loader": "~0.5.1",
37-
"resolve-url-loader": "~2.1.0",
31+
"nativescript-dev-webpack": "^0.16.2",
3832
"tns-platform-declarations": "~4.2.0",
3933
"tslint": "~5.4.3",
40-
"typescript": "~2.8.0",
41-
"webpack": "~3.8.1",
42-
"webpack-bundle-analyzer": "^2.8.2",
43-
"webpack-sources": "~1.0.1",
44-
"uglifyjs-webpack-plugin": "~1.1.6",
45-
"clean-webpack-plugin": "~0.1.19"
34+
"typescript": "~2.8.0"
4635
},
4736
"scripts": {
4837
"build.plugin": "cd ../src && npm run build",
4938
"ci.tslint": "npm i && tslint --config '../tslint.json' 'app/**/*.ts' --exclude '**/node_modules/**' --exclude '**/typings/**'"
5039
}
51-
}
40+
}

demo/tsconfig.tns.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"extends": "./tsconfig",
3+
"compilerOptions": {
4+
"module": "es2015",
5+
"moduleResolution": "node"
6+
}
7+
}

src/scripts/postinstall.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3695,7 +3695,7 @@ module.exports = function($logger, $projectData) {
36953695
let dependenciesNode = buildGradleContent.indexOf("dependencies", 0);
36963696
if (dependenciesNode > -1) {
36973697
dependenciesNode = buildGradleContent.indexOf("}", dependenciesNode);
3698-
buildGradleContent = buildGradleContent.substr(0, dependenciesNode - 1) + ' classpath "io.fabric.tools:gradle:1.25.1"\\n' + buildGradleContent.substr(dependenciesNode - 1);
3698+
buildGradleContent = buildGradleContent.substr(0, dependenciesNode - 1) + ' classpath "io.fabric.tools:gradle:1.25.4"\\n' + buildGradleContent.substr(dependenciesNode - 1);
36993699
}
37003700
}
37013701

0 commit comments

Comments
 (0)