包详细信息

build-tools-javascript

adidas244MIT不推荐使用1.3.0

This package is unmaintained and for reference only, please use the native tools instead

Configurations to use javascript tooling

自述文件

npm version

build-tools-javascript

Set of tools and configurations to work with JavaScript: linter and documentation.

  • Linter: eslint runner and adidas linter configs.
  • JavaScript documentation: based on jsdoc tool.

Install

npm install --save-dev build-tools-javascript

Usage

To use adidas linter configurations check https://github.com/adidas/js-linter-configs/tree/master/packages/eslint-config-adidas-es6.

To use jsdoc, create a jsdoc.config.js file with the following:

const jsdocConfig = require('build-tools-javascript/jsdoc.config.js');
const { name } = require('./package.json');

jsdocConfig.systemName = name;

module.exports = jsdocConfig;

Then you can run jsdoc, e.g:

npx jsdoc -r -c ./jsdoc.config.js -R ./README.md -d doc src/

Links

更新日志

1.3.0

  • Updated ESLint version.
  • Updated eslint-config-adidas-*, eslint-plugin-*, ink-docstrap and jsdoc semver.
  • Updated engines to node >= 12 and npm >= 6.

1.2.0

  • Updated ESLint version.
  • Updated eslint-config-adidas versions.

1.1.1

  • Updated ESLint and JSDoc version.

1.1.0

  • Updated ESLint version.

1.0.1

  • Initial version: build-tools-javascript.