CLI tool to simplify the development of JavaScript apps/libraries with little to no configuration. (WORK IN PROGRESS/PACKAGE NOT PUBLISHED).
Develop JavaScript apps/libraries with little to no configuration and still be allowed to use all bleeding edge features available through Babel and Webpack.
This tool can be installed globally and be used to compile any project that follows the expected directory structure.
Some features must be enabled explicitly either through command flags, configuration or project type:
npm install @borela-tech/js-toolbox -g
The toolbox uses ´“bb” as its command alias, to see the available options type:
bb --help
bb scaffold lib
;Run the tests:
bb test
# Or in watch mode.
bb test --watch
Lint the sources and tests:
bb lint
# ESLint will try to fix linting errors but be aware that not all of them can
# be fixed automatically.
bb lint --fix
And finally, to build:
bb build
# The previous command includes a lot of stuff that’s only needed during
# development and some of them require the toolbox to be installed. You
# need to set NODE_ENV to production to remove them:
bb build --production
bb scaffold-project express
;The commands to test, lint and build are the same but this time, you can also:
bb start
This command will start the server using nodemon and any changes to the files will restart the server.
bb scaffold-project react/spa
;The commands to test, lint and build are the same but this time, you can also:
bb serve
This command will spin up Webpack’s Development Server to
serve your application on localhost:9000
. Features included:
To see the available commands/flags you can find more information on our
wiki or type --help
next to the command in question:
bb --help
bb build --help
bb test --help
# Etc...
Thanks goes to these wonderful people (emoji legend):
Alexandre Borela 💻 🎨 📖 👀 ⚠️ |
Batarian711 🎨 |
---|
This project follows the all-contributors specification. Contributions of any kind welcome!
If you are not included but created bug reports, sent ideas or patches please
send a pull request to the .all-contributorsrc
file.