This package has been deprecated

Author message:

the capabilities of this package are now maintained under `@form8ion/javascript`

@form8ion/lift-javascript

3.3.0 • Public • Published

lift-javascript

lift enhancer for details specific to the JavaScript language

Node CI Workflow Status

Table of Contents

Features

  • Adds scripts to package.json from results

Coming Soon

  • Install dependencies from results
  • Configure eslint configs from results

Usage

MIT license npm Try @form8ion/lift-javascript on RunKit

Installation

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

Example

Import

import {lift, test} from '@form8ion/lift-javascript';

Execute

const projectRoot = process.cwd();

(async () => {
  if (await test({projectRoot})) {
    await lift({
      projectRoot,
      configs: {eslint: {scope: '@foo'}},
      results: {
        dependencies: [],
        devDependencies: [],
        scripts: {},
        eslintConfigs: [],
        packageManager: 'npm'
      }
    });
  }
})();

API

test

predicate function that returns true when the project is a JavaScript project

Arguments:

projectRoot string (required)

path to the root of the project

lift

function that takes results from a JavaScript sub-scaffolder and applies the necessary changes to an existing project

Arguments:

projectRoot string (required)

path to the root of the project

results object (required)

results from sub-scaffolder

configs object (optional)

eslint object (optional)

Config details scaffolding for ESLint. eslintConfigs in results will only be processed if these details are provided.

scope string (required)

The npm scope to be used when installing and configuring use of shareable ESLint config packages.

Contributing

PRs Welcome Conventional Commits Commitizen friendly semantic-release Renovate

Dependencies

$ nvm install
$ npm install

Verification

$ npm test

Readme

Keywords

none

Package Sidebar

Install

npm i @form8ion/lift-javascript

Weekly Downloads

62

Version

3.3.0

License

MIT

Unpacked Size

43.2 kB

Total Files

8

Last publish

Collaborators

  • form8ion-bot
  • travi