bedrock-views
A bedrock module that combines a number of popular frontend technologies to provide a modern, flexible, and extensible Web-based user interface. It is coupled with webpack, and bedrock-vue, which provides client-side resources.
bedrock-views has the following properties/features:
- Server-rendered views via a consolidate.js templating engine
- Client-side Vue application via bedrock-vue
- Client-side modules and JavaScript optimization using bedrock-webpack
- HTML and CSS framework via bootstrap v3
- Less compilation support via less
- CSS optimization via clean-css
Requirements
- npm v3+
Quick Examples
npm install bedrock-views
Start an express server with an Vue frontend:
npm install bedrock-vue
var bedrock = require('bedrock');
require('bedrock-express');
require('bedrock-server');
require('bedrock-views');
bedrock.start();
Setup
- npm install bedrock-vue
Configuration
bedrock-views uses bedrock's configuration to expose its own options and to expose less, clean-css, and [html-minifier][] options.
More documentation about their usage can be found in config.js.