@videinfra/static-website-builder v1.15.4
static-website-builder is a customizable static site project builder powered by Gulp, Webpack, Babel, SASS, PostCSS, TwigJS, BrowserSync
Features
- Gulp: built using gulp
- Built-in Server: Local development server with hot reloading
- Templates: HTML templates with minification
- TWIG: Optional TwigJS template engine with optional plugins for additional functions and filters
- Stylesheets: Autoprefixing and minification with PostCSS support
- SASS: Optional SASS / SCSS compilation
- Javascript: Transpilation with Babel, bundling and minification
- SVG icons: Sprite generation from individual SVG files
- Paths: Source and destinations paths are configurable
- Features: All features can be configured or disabled
- Plugins: create additional plugins / gulp tasks
Quick start
npm init
npm install @videinfra/static-website-builder --save
npx builder initStart development server
npm run startBuild production files
npm run startNote: these commands are added to the project during npm init.
Commands
Development server
npx run builder
Generate production ready files
npx run builder build
List all available tasks
npx run builder --tasks
Project templates
As used in quick start, project templates are used to generate boilerplate / starter files and add commands to the project:
default- simple template with normalize.scss
Plugins
Built-in plugins:
sass- adds.sassand.scssfile rendering using SASStwig- adds.twigfile rendering using TwigJStwig/symfony-filters- addshumanizefilter as found in Symfonytwig/symfony-functions- addsassetfunction as found in Symfonytwig/lodash-filters- addsomit,pick,filter,rejectandfindfilters as in lodash
Plugins can be enabled by adding them to the config/config.js, eg.
exports.plugins = [
// Enables SASS engine and .sass and .scss file compilation
require('@videinfra/static-website-builder/plugins/sass'),
// Enables TwigJS engine .twig file compilation
require('@videinfra/static-website-builder/plugins/twig'),
require('@videinfra/static-website-builder/plugins/twig/symfony-filters'),
require('@videinfra/static-website-builder/plugins/twig/symfony-functions'),
require('@videinfra/static-website-builder/plugins/twig/lodash-filters'),
];Wiki
See our wiki for additional information.
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago