rna-cli-poster

RNA Cli

A CLI to rule them all.

Welcome to the RNA cli wiki!

RNA is a CLI for Web and NPM projects management. It collects and configures a lot of awesome tools like Git, NPM, Editorconfig, Babel, PostCSS, Rollup, Karma, Mocha, Chai, ESLint, StyleLint, Lerna and many others.

Commands

init

Setup or update a new project, providing configurations for editorconfig, linters, git and npm. Project can be a NPM module, a Web App or a monorepo of NPM modules.

Usage


build

Build and bundle project files for distribution.

Usage


serve

Setup a development server with JavaScript and CSS livereload, external tunnel through localtunnel and HTTPS support.

Usage


lint

Run lint tasks across the projects. It uses ESLint for JavaScript and TypeScript projects and StyleLint for CSS and SCSS files, looking for .eslintrc.yml and .stylelintrc.yml in the project root and fallbacking to RNA core config files missing. Configuration files and lint runners needs to be saved in the project, in order to provide integration with your IDE (eg VS Code).

Usage


unit

Run unit and e2e tests in Node and Browser environments, using Mocha as test framework and Chai as assertion library. Tests in the browsers are launched by Karma.

Usage


publish

It publishes modules of modules and monorepos NPM, creating a release tag for Git.
If a lerna.json is found in the root of the project, it uses lerna to publish modules.

Usage


documentate

Generate API references for a module in Markdown format, using dts-apigen.

Usage