@form8ion/lift

10.0.0 • Public • Published

lift

tool for running sub-scaffolders on existing projects 🚡

Node CI Workflow Status Codecov OpenSSF Scorecard SLSA Level 2

Table of Contents

Features

  • Runs registered sub-scaffolders independantly of the project-scaffolder, enabling existing projects to be lifted with additional functionality
    • Injects badges from the sub-scaffolder results into the README.md as long as the existing README.md lists the badges using the (fairly recent) zoning convention
  • Modify existing README.md files to add badges
  • Apply lift enhancers for additional project-specific updates

Usage

npm Try @form8ion/lift on RunKit MIT license node

Installation

$ npm install @form8ion/lift --save-prod

Example

Import

import {lift, questionNames} from '@form8ion/lift';

Execute

(async () => {
  await lift({scaffolders: {}, decisions: {[questionNames.SCAFFOLDER]: 'foo'}, enhancers: {}});
})();

API

scaffolders object (required)

  • keys: string Name of each scaffolder
  • values: function Does the scaffolding when executed
    • receives an options object as the first argument
      • projectRoot: string path of the working directory where the CLI command was executed
      • vcs: object details of the exisitng vcs and host
        • owner: string owner of the vcs host account
        • name: string name of the repository on the host

decisions object (optional)

Answers for expected prompts, to enable consistent behavior while skipping those particular interactive prompts

  • keys: string Name of each question
  • values: mixed The answer to provide instead of being prompted interactively

enhancers object (optional)

Additional lift processors to be applied to projects based on the result of applying the provided predicate function to the current project

  • keys: string Name of each enhancer. Provided only for developer experience. Does not influence execution behavior.
  • values: function Does the additional lifting when executed
    • receives an options object as the first argument
      • projectRoot: string path of the working directory where the CLI command was executed
      • results: object results returned from executing the chosen sub-scaffolder
      • vcs: object details of the exisitng vcs and host
        • owner: string owner of the vcs host account
        • name: string name of the repository on the host

Contributing

Conventional Commits Commitizen friendly semantic-release PRs Welcome Renovate

Dependencies

$ nvm install
$ npm install

Verification

$ npm test

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
5.0.0-alpha.10alpha
4.0.0-beta.20beta
10.0.0
518latest

Version History

VersionDownloads (Last 7 Days)Published
10.0.0
518
9.2.3
164
9.2.2
46
9.2.1
0
9.2.0
0
9.1.3
0
9.1.2
0
9.1.1
0
9.1.0
0
9.0.2
0
9.0.1
0
9.0.0
0
8.0.2
0
8.0.1
0
8.0.0
0
7.0.00
6.2.00
6.1.10
6.1.00
6.0.10
6.0.00
5.0.10
5.0.00
5.0.0-alpha.10
4.1.00
4.0.00
4.0.0-beta.20
4.0.0-beta.10
3.2.0-beta.10
3.1.20
3.1.10
3.1.00
3.0.30
3.0.20
3.0.10
3.0.00
2.5.00
2.4.01
2.3.00
2.2.00
2.1.30
2.1.20
2.1.10
2.1.00
2.0.00
1.12.40
1.12.30
1.12.20
1.12.10
1.12.00
1.12.0-alpha.20
1.12.0-alpha.10
1.11.10
1.11.00
1.10.30
1.10.20
1.10.10
1.10.00
1.9.20
1.9.10
1.9.00
1.8.00
1.8.0-beta.10
1.7.00
1.6.10
1.6.01
1.5.00
1.4.10
1.4.00
1.3.00
1.2.10
1.2.00
1.1.40
1.1.30
1.1.20
1.1.10
1.1.01
1.1.0-alpha.40
1.1.0-alpha.30
1.1.0-alpha.20
1.1.0-alpha.10
1.0.00
1.0.0-alpha.10

Package Sidebar

Install

npm i @form8ion/lift

Weekly Downloads

731

Version

10.0.0

License

MIT

Unpacked Size

15 kB

Total Files

5

Last publish

Collaborators

  • travi
  • form8ion-bot