kist
Version:
Lightweight Package Pipeline Processor with Plugin Architecture
51 lines (45 loc) • 1.58 kB
YAML
stages:
- name: Manage Package Files
steps:
- name: Read Existing Package.json
action: PackageManagerAction
options:
# Path to the existing package.json file to read
packageJsonPath: "./existing/package.json"
- name: Create New Package.json
action: PackageManagerAction
options:
# Directory where the new package.json should be created
outputDir: "./output"
# Custom configuration to merge with the default package.json template
customConfig:
name: "example-project"
version: "1.0.0"
description: "An example project demonstrating pack.gl capabilities"
scripts:
start: "node index.js"
test: "jest"
dependencies:
express: "^4.18.2"
devDependencies:
typescript: "^4.9.5"
stages:
- name: Package Management
steps:
- name: Generate package.json
action: PackageManagerAction
options:
packageJsonPath: "./existing/package.json" # Path to the existing package.json
outputDir: "./dist" # Where to write the new package.json
fields:
- name
- version
- dependencies
- scripts
customConfig:
private: true
scripts:
start: "node index.js"
build: "npm run build"
devDependencies:
typescript: "^5.0.0"