diff --git a/build/project-template-gradle/build-tools/android-static-binding-generator/ast-parser/package.json b/build/project-template-gradle/build-tools/android-static-binding-generator/ast-parser/package.json deleted file mode 100644 index 3545a964e..000000000 --- a/build/project-template-gradle/build-tools/android-static-binding-generator/ast-parser/package.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "name": "ast-parser", - "version": "1.0.0", - "description": "", - "main": "js_parser.js", - "scripts": { - "test": "echo \"Error: no test specified\" && exit 1" - }, - "author": "", - "license": "ISC", - "dependencies": { - "babel-traverse": "^6.4.5", - "babel-types": "^6.4.5", - "babylon": "^6.4.5", - "filewalker": "^0.1.2", - "lazy": "^1.0.11" - } -} \ No newline at end of file diff --git a/build/project-template-gradle/build-tools/android-static-binding-generator/build.gradle b/build/project-template-gradle/build-tools/android-static-binding-generator/build.gradle index 665fba7fe..64f620a33 100644 --- a/build/project-template-gradle/build-tools/android-static-binding-generator/build.gradle +++ b/build/project-template-gradle/build-tools/android-static-binding-generator/build.gradle @@ -44,28 +44,6 @@ task generateInterfaceNamesList() { } } -// won't run if node_modules are installed -task runNpmInstallForAstParser () { - - //check this way so it doesn't slow down the build by snapshot-ing the node_modules - outputs.upToDateWhen { - (new File("$astParserDir/node_modules")).exists() - } - - doFirst { - exec { - workingDir astParserDir - - if(isWinOs) { - commandLine "cmd", "/c", "npm", "install" - } - else { - commandLine "npm", "install" - } - } - } -} - // if there are new dependencies the parser will run again task runAstParser () { inputs.files fileTree(dir: absoluteJsCodeDir) @@ -105,7 +83,6 @@ task generateBindings() { } } -runNpmInstallForAstParser.dependsOn(generateInterfaceNamesList) -runAstParser.dependsOn(runNpmInstallForAstParser) +runAstParser.dependsOn(generateInterfaceNamesList) generateBindings.dependsOn(runAstParser)