Skip to content

A Frontvue plugin for Stylus boilerplate and processing

License

Notifications You must be signed in to change notification settings

0vidiu/frontvue-plugin-stylus

Repository files navigation

Frontvue-Plugin-Stylus

Build Status codecov Commitizen friendly semantic-release

A Frontvue plugin for Stylus boilerplate and processing

This plugin will be one of the available options to choose from when you configure a new project using Frontvue. It handles Stylus files and comes with a boilerplate template of stylus partials. It comes with the following tasks:

  • stylus:config — registers a configuration questionnaire;
  • stylus:template — copies the Stylus boilerplate template (w.i.p);
  • stylus:clean — removes the build folder;
  • stylus:process — handles linting and compiling of Stylus partials;
  • stylus:watch — starts listeners for changes in Stylus partials;

Default configuration

{
  // Source files directory name
  sourceDir: 'stylus',

  // Source entry point file (all other partials are imported into this main file)
  entryPoint: 'app.styl',

  // Directory name where the CSS file will be created
  buildDir: 'css',

  // Name of the compiled CSS file
  buildFilename: 'app.css',
}