Crafty comes with some commands by default and presets can add new commands.
Here are the default commands:
Table of Contents
Will list the available commands and tasks.
crafty run [task [task...]]
This is the main entry point to execute one or more tasks in Crafty.
crafty run without a task will execute the
You can specify one or more tasks to run, separated by space.
Running the watch mode will execute all tasks once at the start. After that, it will watch for file system changes and re-execute related tasks once a change occurs.
All presets can add watchers for any file pattern or use their embedded watcher (like Webpack).
Presets can register test runners, when running
crafty test all these test
runners are invoked.
We have one test runner which is provided as a preset; Jest.
Commands added by presets
crafty cssLint [file|dir|glob]*
Bundled Stylelint with embedded presets, read more here
crafty jsLint [file|dir|glob]*
Bundled ESLint with embedded presets, read more here