mirror of
https://github.com/apache/cordova-android.git
synced 2026-05-11 00:00:05 +08:00
build: build cordova.js during npm prepare (#1271)
This commit is contained in:
committed by
GitHub
parent
b94409ffe0
commit
35f0d07521
@@ -50,7 +50,12 @@ class AndroidTestRunner {
|
||||
return Promise.resolve()
|
||||
.then(_ => console.log(`[${this.testTitle}] Preparing Gradle wrapper for Java unit tests.`))
|
||||
.then(_ => {
|
||||
// TODO we should probably not only copy these files, but instead create a new project from scratch
|
||||
fs.copyFileSync(path.resolve(this.projectDir, '../../framework/cdv-gradle-config-defaults.json'), path.resolve(this.projectDir, 'cdv-gradle-config.json'));
|
||||
fs.copyFileSync(
|
||||
path.join(__dirname, '../templates/project/assets/www/cordova.js'),
|
||||
path.join(this.projectDir, 'app/src/main/assets/www/cordova.js')
|
||||
);
|
||||
})
|
||||
.then(_ => this._createProjectBuilder())
|
||||
.then(_ => this._gradlew('--version'))
|
||||
|
||||
Reference in New Issue
Block a user