@groovy.transform.CompileStatic class NodeJSUtils extends Object
Utilities for dealing with NodeJS in an Asciidoctor-Gradle context
| Constructor and description |
|---|
NodeJSUtils
() |
| Type Params | Return Type | Name and description |
|---|---|---|
|
static void |
initPackageJson(File npmHome, String projectAlias, org.ysb33r.grolifant.api.core.ProjectOperations po, AsciidoctorJSNodeExtension nodejs, AsciidoctorJSNpmExtension npm)Creates a skeleton package.json file. |
Creates a skeleton package.json file.
Primarily used to keep NPM from complaining.
npmHome - Working home directory for NPM.
This is the directory in which node_modules will be created.projectAlias - An name for the project than can be used inside package.json.po - The ProjectOperations instance to use to resolve the version.nodejs - The NodeJS extension which is being used for this operation.npm - The NPM extension that is being used for this operation.Copyright © 2013-2024 the original author or authors. All rights reserved.