This CLI contains tools for compiling/building nodes for Blackprint.
You can install this globally
$ npm i -g @blackprint/cli-tools
$ blackprint create
The build
and serve
command will watch for blackprint.config.js
from current working directory and search deeper inside of nodes
directory. So.. make sure you're not putting node_modules
inside of nodes
directory, or it will fill up your computer memory 😅
To use it, you can execute this command on the root of your project.
$ blackprint serve
To build the module, you need execute this command on the root of your project.
$ blackprint build
To minify the files for production, you can use production
or prod
.
$ blackprint build prod
If you installed this with package.json
on your project, you can use npx.
$ npx blackprint build