123456789101112131415161718192021222324252627 |
- plugins {
- id "com.moowork.node" version "1.2.0"
- }
- node {
- download = true
- }
- yarn {
- args = ['--registry', 'https://registry.npm.taobao.org']
- }
- task npmRunDev(group: 'npm', type: NpmTask, dependsOn: yarn) {
- args = ["run", "dev"]
- }
- task npmRunBuild(group: 'npm', type: NpmTask, dependsOn: yarn) {
- args = ["run", "build"]
- }
- task yarnRunDev(group: 'yarn', type: YarnTask, dependsOn: yarn) {
- args = ["run", "dev"]
- }
- task yarnRunBuild(group: 'yarn', type: YarnTask, dependsOn: yarn) {
- args = ["run", "build"]
- }
|