package

cloudventure-io/package/nodejs

Terraform Module HCL NODEJS

Terraform module for packaging NodeJS modules

Install
module "package" {
source = "cloudventure-io/package/nodejs"
version = "2.0.0"
}
plain text: /constructs/tfmod-cloudventure-io-package-nodejs/install.txt
⭐ Source on GitHub 📦 Registry page
README

Terraform Module NodeJS Package This module packages the nodejs module code. It scans the target directories and outputs map of filename to filepaths for files matching to specified pattern. This is a helper module to build NodeJS modules with terraform. The output of this module can be combined with other modules to construct module dependencies. This module will NOT do dependency resolution of child modules, it simply adds dependencies of sub-modules to node_modules directory of each sub-module. Example Package all .js files from src directory. ``hcl module "code" { source = "cloudventure-io/package/nodejs" version = "~> 1.0" files = [ { path = "${path.module}/src" include = [".js"] exclude = ["\\.test\\.js$"] }, { path = "${path.module}" include = ["LICENSE"] exclude = [] }, ] } output

Inputs (2)
NameTypeDescriptionDefault
fileslist(object({ path = stThe list of files for the modules. `path` and `include` patterns are passed to required
moduleslist(object({ name = striThe list of sub-modules. Each module will be included output files map under th[]
Outputs (1)
files — Map of `filename => filepath` entries, including sub-moduled.
Details
FrameworkTerraform Module
LanguageHCL
Version2.0.0
Cloud NODEJS
★ Stars0
Forks1
Total downloads1.1k
Inputs2
Outputs1
LicenseMIT
Namespacecloudventure-io
Updated