Crafty is composed of small packages and can be used separately.
Here is an overview of their features.
Table of Contents
Command runner, this is the package that allows all other packages to run.
crafty --preset crafty-preset-babel jsLint presets/* --preset recommended --preset node
Also automatically reads your
crafty.config.js (in the current working
directory) and loads those presets as well.
Use this runner to bundle your code with Webpack.
Use this runner to be able to create Gulp tasks in your projects.
This preset provides EcmaScript 2015+ support with Babel for the Gulp, Webpack and rollup.js runners.
It also configures ESLint with our linting rules. Both in the runners and as a separate command.
Compile your CSS using PostCSS, works with Webpack and Gulp.
This preset provides TypeScript support for the Gulp, Webpack and rollup.js runners.
It also configures ESLint with our linting rules
This preset leverages Gulp to compress your SVG/PNG/JPG/GIF files and placing them in the destination folder.
In some cases, you might not have an internet connection on your build machine. As the tools to compress PNG/JPG/GIF need to be downloaded from GitHub, this preset will copy the files instead of copying them.
SVG is also compressed with this preset.
It works as a drop-in replacement for
If your code is inside a Maven project, this preset overrides the destination to
move your compiled assets to the right directory in
A preset that provides utilities for Jest and Hot Module Replacement in React projects.
JSX Compilation is handled by the
This preset will add Jest to the
crafty test command.
Its usage with the Babel and TypeScript preset allows you to test your EcmaScript 2015+ and TypeScript code effortlessly.
A Babel preset that supports EcmaScript 2015+, React and more
An ESLint plugin that contains all our recommended options and plugins.
All PostCSS plugins used in the Crafty styles preset are defined in this package.
Stylelint linting rules following the Swissquote CSS Guideline. Provides some custom Stylelint rules.