initial commit of the new UI based on Angular
At this point it is still the example Angular application.
This commit is contained in:
58
pdb-js/build.gradle
Normal file
58
pdb-js/build.gradle
Normal file
@@ -0,0 +1,58 @@
|
||||
plugins {
|
||||
id "com.moowork.node" version "1.3.1"
|
||||
}
|
||||
|
||||
apply plugin: 'com.moowork.node'
|
||||
|
||||
|
||||
node {
|
||||
// Version of node to use.
|
||||
//version = '0.11.10'
|
||||
version = '12.11.1'
|
||||
|
||||
// Version of npm to use.
|
||||
//npmVersion = '7.1.0'
|
||||
npmVersion = '6.11.3'
|
||||
|
||||
// Version of Yarn to use.
|
||||
//yarnVersion = '0.16.1'
|
||||
|
||||
// Base URL for fetching node distributions (change if you have a mirror).
|
||||
//distBaseUrl = 'https://nodejs.org/dist'
|
||||
|
||||
// If true, it will download node using above parameters.
|
||||
// If false, it will try to use globally installed node.
|
||||
//download = true
|
||||
|
||||
// Set the work directory for unpacking node
|
||||
//workDir = file("${project.buildDir}/nodejs")
|
||||
|
||||
// Set the work directory for NPM
|
||||
npmWorkDir = file("${project.buildDir}/npm")
|
||||
|
||||
// Set the work directory for Yarn
|
||||
//yarnWorkDir = file("${project.buildDir}/yarn")
|
||||
|
||||
// Set the work directory where node_modules should be located
|
||||
//nodeModulesDir = file("${project.projectDir}")
|
||||
}
|
||||
|
||||
sourceSets {
|
||||
main {
|
||||
resources {
|
||||
srcDir 'build/generated'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
jar.dependsOn 'npm_run_build'
|
||||
|
||||
jar {
|
||||
from 'build/generated/resources' into 'resources'
|
||||
}
|
||||
|
||||
|
||||
dependencies {
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user