lift enhancer for details specific to the JavaScript language
REPLACED BY @form8ion/javascript
- Adds scripts to
package.json
from results
- Install dependencies from results
- Configure eslint configs from results
$ npm install @form8ion/lift-javascript --save-prod
import {lift, test} from '@form8ion/lift-javascript';
const projectRoot = process.cwd();
(async () => {
if (await test({projectRoot})) {
await lift({
projectRoot,
configs: {eslint: {scope: '@foo'}},
results: {
dependencies: [],
devDependencies: [],
scripts: {},
eslintConfigs: [],
packageManager: 'npm'
}
});
}
})();
predicate function that returns true
when the project is a JavaScript project
Arguments:
path to the root of the project
function that takes results from a JavaScript sub-scaffolder and applies the necessary changes to an existing project
Arguments:
path to the root of the project
results from sub-scaffolder
Config details scaffolding for ESLint. eslintConfigs
in results will only be processed if these details
are provided.
The npm scope to be used when installing and configuring use of shareable ESLint config packages.
$ nvm install
$ npm install
$ npm test