Package Exports
- bedrock-views
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (bedrock-views) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
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 the bower module, bedrock-angular, which provides client-side resources.
bedrock-views has the following properties/features:
- Server-rendered views via the Swig templating engine
- Client-side AngularJS application via bedrock-angular
- 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
- HTML optimization via html-minifier
- AngularJS template optimization
Requirements
- npm v3+
Quick Examples
npm install bedrock-viewsStart an express server with an AngularJS frontend:
bower install bedrock-angularvar bedrock = require('bedrock');
require('bedrock-express');
require('bedrock-server');
require('bedrock-views');
bedrock.start();Setup
- bower install bedrock-angular
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.