Skip to content

Commit ca3b654

Browse files
committed
Correct cordova setup
1 parent bbd520a commit ca3b654

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

config/setup-mobile.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ const path = require('path');
77
const pkg = require(path.join(process.cwd(), 'package.json'));
88
// const cordovaTemp = path.join(process.cwd(), 'cordova');
99
const root = path.join(process.cwd());
10-
const cmd = `cordova create cordova ${pkg.identifier} "${pkg.title}"`;
10+
const localNodeBin = path.join(process.cwd(), 'node_modules/.bin/')
11+
const cmd = `${localNodeBin}cordova create cordova ${pkg.identifier} "${pkg.title}"`;
1112

1213
// Run command to create cordova in a temporary directory
1314
exec(cmd, (error) => {

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"version": "3.1.0",
55
"description": "A starter kit for building a standard navigation-style app with Aurelia, typescript and webpack.",
66
"main": "dist/app.js",
7+
"identifier": "ch.w3tec.app",
78
"scripts": {
89
"install:dev": "npm i && npm run install:typings",
910
"install:typings": "./node_modules/.bin/typings i",
@@ -126,6 +127,7 @@
126127
"chalk": "^1.1.3",
127128
"compression-webpack-plugin": "0.3.2",
128129
"concurrently": "3.2.0",
130+
"cordova": "^6.5.0",
129131
"cross-env": "3.1.4",
130132
"electron": "1.4.15",
131133
"favicons-webpack-plugin": "0.0.7",

0 commit comments

Comments
 (0)