Détail du package

cheminfo-tools

cheminfo469MITobsolète1.23.3

Please use the now standalone cheminfo-build and cheminfo-publish packages.

CLI tools to help cheminfo developers

cheminfo, tools

readme

cheminfo-tools

CLI tools to help cheminfo developers

Installation

npm install -g cheminfo-tools

This will add a new cheminfo command to your system.

Sub-commands

build

Make a browser build using webpack

options

  • -c, --cwd: directory of the project to build. Default: current working directory
  • -o, --out: directory where to put the build files. Default: dist
  • -n, --out-name: name of the output file. Default: name of npm package or bundle
  • -r, --root: root name of the library. Default: name of npm package (camelCase)
  • -e, --entry: entry point of the library. Default: main field of npm package or index.js
  • -u, --no-uglify: disable generation of min file and source map
  • --no-source-map: disable generation of source map only
  • -v, --verbose: output warnings if any

docs

Generate and push documentation.
It will be generated in the docs directory.

options

  • -p, --push: push the generated docs folder to GitHub

configuration

The following options can be set in the package.json's cheminfo.docs object:

  • tsEntry: path to the entry of a TypeScript project. Default is src/index.ts.

publish

Test, bump and publish a project on npm.
You need to run the command from the root of the project's directory. It is only for npm-only packages. Please use the GRM for browser packages.

  • -b, --bump <bump>: kind of version bump (optional, they are determined automatically and you will be prompted)
  • -o, --org <org>: organization (optional, will be determined automatically)
  • -f, --force: allows to skip some steps
  • -D, --no-docs: do not generate and publish documentation
  • -h, --help: output usage information

Example

cheminfo publish -o cheminfo -b major

This will:

  • Run the tests
  • Bump the version number to the next major
  • Update the history file
  • Publish on npm
  • Add admins from the cheminfo organization to npm owners
  • Create documentation and publish it in gh-pages (optional)
  • Push the changes to GitHub

License

MIT

changelog

1.23.3 (2019-06-16)

1.23.2 (2019-03-27)

Bug Fixes

  • correctly read tsEntry option (0e9250d)

1.23.1 (2019-03-27)

Bug Fixes

1.23.0 (2019-03-27)

Features

  • add tsEntry option to docs (204be42)

1.22.5 (2019-03-22)

Bug Fixes

1.22.4 (2018-11-07)

Bug Fixes

  • also publish custom-built docs (e83e6a1)

1.22.3 (2018-11-07)

Bug Fixes

  • docs: honor the --push flag (d5aa229)

1.22.2 (2018-11-07)

Bug Fixes

  • add new line after exec logs (ce3420e), closes #222
  • correct documentation lib names (4d80afa)

1.22.1 (2018-11-07)

Bug Fixes

  • do not publish docs if they were not built (4eb1b5a)

1.22.0 (2018-11-07)

Features

  • remove cheminfo-generate (718b58f)
  • docs: allow a project to define a custom build-docs script (6bdcac3)

1.21.1 (2018-10-08)

Bug Fixes

  • publish: skip tests with --force (69ee5c7)

1.21.0 (2018-10-02)

Bug Fixes

  • cheminfo-publish: show error log when npm publish fails (38148b0)
  • print recommended release type (41aef78)
  • use execNpmStdout when output is parsed (f169332)

Features

1.20.3 (2018-08-24)

Bug Fixes

  • log publish output when it fails (3645850)

1.20.2 (2017-12-04)

1.20.1 (2017-11-21)

1.20.0 (2017-09-20)

Features

  • add a banner to build artifacts (5211d03)

1.19.4 (2017-09-15)

1.19.3 (2017-09-15)

1.19.2 (2017-07-21)

Bug Fixes

  • bump version in package-lock.json if present (23744fd)

1.19.1 (2017-07-19)

Bug Fixes

  • don't add to org if already on it (#211) (e0ddada)
  • use doc module for build documentation (66b8ee8)

Features

1.19.0 (2017-07-19)

Features

1.18.1 (2017-07-13)

Bug Fixes

1.17.1 (2017-06-21)

1.17.0 (2017-06-21)

Features

1.16.2 (2017-06-12)

1.16.1 (2017-05-23)

1.16.0 (2017-05-12)

Features

  • cheminfo-build: add watch option (1712106)

1.15.0 (2017-03-10)

Features

  • always enable babel-preset-env and deprecate --babel option (ec318e8)

1.14.1 (2017-02-08)

1.14.0 (2017-02-08)

Features

  • update dependencies and change config to Webpack 2. Use babel-preset-env. (e84549b)

1.13.0 (2017-01-13)

Bug Fixes

  • parse org of ssh git urls (8ff92d8)

1.12.0 (2017-01-06)

Features

  • auto-select organization by reading package.json (ab5c8aa)

1.11.0 (2016-11-11)

Bug Fixes

  • update documentation.js and sort docs alphabetically (f166203)

Features

1.10.1 (2016-09-29)

1.10.0 (2016-09-23)

Features

  • use babili for minification (dd2d5d0)

1.9.0 (2016-08-18)

Features

  • doc: don't use gh-pages (b6b3d2c)

1.8.6 (2016-08-02)

1.8.5 (2016-07-29)

Bug Fixes

1.8.4 (2016-07-22)

1.8.3 (2016-07-21)

Bug Fixes

1.8.2 (2016-07-18)

Bug Fixes

  • update ml package generator (336c749)

1.8.1 (2016-07-18)

Bug Fixes

  • update ml package generator (ccdc4e6)

1.8.0 (2016-07-18)

Features

  • default choice for doc generation is false (8f49891)

1.7.0 (2016-07-11)

Features

  • generate: rename cheminfo org to cheminfo-js (90c5f1e)

1.6.0 (2016-07-11)

Bug Fixes

  • doc: use promisified node API (ee43a72)

Features

1.5.1 (2016-07-08)

Bug Fixes

  • publish: use correct path to exec documentation (f788b7b)

1.5.0 (2016-07-08)

Features

  • generate: add cheminfo-js generator (1f40f59)
  • generate: choose organization if not declared (0cf8937)

1.4.1 (2016-07-05)

Bug Fixes

  • publish: fix history generation (9acd163)

1.4.0 (2016-07-04)

Features

  • generate: add the basic structure (48296ad)
  • generate: add the yeoman's generator-mljs-packages (1425b83)
  • publish: add interactive CLI to suggest org and version bump (f2f40a1)
  • add tools version check (7ba32a9)
  • publish: add step to generate documentation (a4d9472)
  • publish: automatic update of the history file (430cc5f)

1.3.4 (2015-11-07)