Updated readme

master
Jonathan Garbee 2015-06-01 08:51:05 -04:00
parent aa4d1b081a
commit c896df664f
1 changed files with 30 additions and 30 deletions

View File

@ -1,8 +1,8 @@
# Material Design Lite # Material Design Lite
> A library of [Material Design](http://www.google.com/design/spec/material-design/introduction.html) components in CSS, JS and HTML > A library of [Material Design](http://www.google.com/design/spec/material-design/introduction.html) components in CSS, JS, and HTML
Material Design Lite lets you add a Material Design look and feel to your static content websites. It doesnt rely on any JavaScript frameworks and aims to optimise for cross-device use, gracefully degrade in older browsers and offer an experience that is accessible from the get-go. Material Design Lite lets you add a Material Design look and feel to your static content websites. It doesnt rely on any JavaScript frameworks or libraries. Optimised for cross-device use, gracefully degrade in older browsers, and offer an experience that is accessible from the get-go.
## Quick start ## Quick start
@ -15,27 +15,28 @@ Four quick start options are available:
### What's included ### What's included
Within the download you'll find the following directories and files, logically grouping common assets and providing both compiled and minified variations. You'll see something like this: Within the download you'll find the following directories and files.
``` * bower.json
├── css * Bower package configuration.
│   ├── material.css * CONTRIBUTING.md
│   └── material.min.css * MDL contribution guidelines
├── js * docs
│   ├── material.js * Template files for documentation.
│   ├── material.min.js * gulpfile.js
│   └── material.min.js.map * gulp configuration for MDL.
├── templates * LICENSE
├── images * Project license information.
├── src * package.json
├── package.json * NPM package information.
├── bower.json * README.md
├── gulpfile.js * This file. Details quickly understanding the project.
├── LICENSE * src
├── README.md * Source code for MDL.
``` * templates
* Example templates.
We provide compiled CSS and JS (`material.*`), as well as compiled and minified CSS and JS (`material.min.*`). JS source maps (`material.*.map`) are available for use with certain browsers' developer tools. * test
* Project test files.
## Getting Started ## Getting Started
@ -56,13 +57,13 @@ included.
### npm ### npm
``` ```
$ npm install --save material-design-lite npm install --save material-design-lite
``` ```
### bower ### bower
``` ```
$ bower install --save material-design-lite bower install --save material-design-lite
``` ```
@ -72,13 +73,13 @@ The sources (JS, Sass) and demo files for all components can be found in the `sr
modifying them, first install the necessary dependencies, from the root of the project: modifying them, first install the necessary dependencies, from the root of the project:
``` ```
$ npm install && npm install -g gulp npm install && npm install -g gulp
``` ```
Next, run the following one-liner to preview the components: Next, run the following one-liner to preview the components:
``` ```
$ gulp serve gulp serve
``` ```
Any changes made to files inside the `src` directory will cause the page to reload. This page can also be loaded Any changes made to files inside the `src` directory will cause the page to reload. This page can also be loaded
@ -87,11 +88,10 @@ up on physical devices thanks to BrowserSync.
To build a production version of the components, run: To build a production version of the components, run:
``` ```
$ gulp gulp
``` ```
This will clean and update the `css`, `js` and `images` directories in the root of the project with minified and This will clean the `dist` folder and rebuild the assets for serving.
concatenated versions of the component files. Namely, `css/material.min.css` and `js/material.min.js`.
## Templates ## Templates
@ -119,7 +119,7 @@ For transparency into our release cycle and in striving to maintain backward com
## Feature requests ## Feature requests
If you find MDL doesn't contain a particular component you think would be useful, please check the issue tracker in case work has already started on it. If not, you can request new component in the [following](https://github.com/google/material-design-lite/issues/92) thread. Please be sure to include justification for why you think the component should be implemented to help us with planning. If you find MDL doesn't contain a particular component you think would be useful, please check the issue tracker in case work has already started on it. If not, you can request a [new component](https://github.com/Google/material-design-lite/issues/new?title=[Component%20Request]%20{Component}&body=Please%20include:%0A*%20Description%0A*%20Material%20Design%20Spec%20link%0A*%20Use%20Case%28s%29).
## In-development ## In-development