Created separate project for frontend
This commit is contained in:
parent
030531277c
commit
64edb1219a
95 changed files with 27768 additions and 25 deletions
36
trader-frontend/build.gradle
Normal file
36
trader-frontend/build.gradle
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
plugins {
|
||||
id "com.github.node-gradle.node" version "3.1.1"
|
||||
}
|
||||
|
||||
node {
|
||||
// Whether to download and install a specific Node.js version or not
|
||||
// If false, it will use the globally installed Node.js
|
||||
// If true, it will download node using above parameters
|
||||
// Note that npm is bundled with Node.js
|
||||
download = true
|
||||
|
||||
// Version of node to download and install (only used if download is true)
|
||||
// It will be unpacked in the workDir
|
||||
version = '16.13.0'
|
||||
}
|
||||
|
||||
task build() {
|
||||
dependsOn npm_run_build
|
||||
}
|
||||
|
||||
npm_run_build {
|
||||
// make sure the build task is executed only when appropriate files change
|
||||
inputs.files fileTree('public')
|
||||
inputs.files fileTree('src')
|
||||
|
||||
// 'node_modules' appeared not reliable for dependency change detection (the task was rerun without changes)
|
||||
// though 'package.json' and 'package-lock.json' should be enough anyway
|
||||
inputs.file 'package.json'
|
||||
inputs.file 'package-lock.json'
|
||||
|
||||
outputs.dir 'dist'
|
||||
}
|
||||
|
||||
npm_run_serve {
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue