@bedrock/views
v12.0.0
Published
Bedrock website views module
Downloads
660
Keywords
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 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 v6+
Quick Examples
npm install @bedrock/views
Start an express server with an Vue frontend:
npm install @bedrock/vue
import * as bedrock from '@bedrock/core';
import '@bedrock/express';
import '@bedrock/server';
import '@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.
License
Apache License, Version 2.0 Copyright 2011-2024 Digital Bazaar, Inc.
Other Bedrock libraries are available under a non-commercial license for uses such as self-study, research, personal projects, or for evaluation purposes. See the Bedrock Non-Commercial License v1.0 for details.
Commercial licensing and support are available by contacting Digital Bazaar [email protected].