Package Exports
- @bedrock/views
- @bedrock/views/lib/index.js
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 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/viewsStart an express server with an Vue frontend:
npm install @bedrock/vueimport * 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.
Additional Bedrock libraries are available for non-commercial use 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 support@digitalbazaar.com.