0.0.5 • Published 1 year ago

atom-cli-test v0.0.5

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

atom-cli-test

A Cli for Atom Test

Thanks for How to Create Your Own CLI with Node.js article.

two steps

  • Creating a cli npm package.

  • Packaging, setting up template projects.

some command line:

npm link
npm ls -g
npm unlink <name> -g
npx rollup -c rollup.config.js
npx atom-cli-test

some rollup parameters:

"scripts": {
"build": "rollup -c rollup.config.js",
"dev": "rollup -c rollup.config.js -w"
},
  • -c or --config - path to a rollup config file (if omitted, rollup looks for rollup.config.js in the current directory)
  • -w or --watch - watch files in bundle and rebuild on changes

Libraries

  • arg: parse command line parameters.

  • inquirer: create an interactive command line interface.

  • execa: is used to run commands.

  • chalk: is a terminal string styling tool.

  • listr: is a terminal task list.

  • ncp: is a tool for asynchronous and recursive copying.

  • pkg-install: provides a platform-independent package installer.

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago