Skip to content

Commit 87e5279

Browse files
committed
Add initial firefox support and finish first documentation release
1 parent a9f4dbd commit 87e5279

File tree

110 files changed

+376
-115
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

110 files changed

+376
-115
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
55
Vue Material is lightweight framework built exactly according to the <a href="http://material.google.com" target="_blank">Material Design</a> specs. It aims to deliver a collection of reusable components and a series of UI Elements to build applications with support to <a href="https://saucelabs.com/u/vuejs" target="_blank">modern Web Browsers</a> through Vue 2.0. Build powerful and well-designed web apps that can can fit on every screen. You can generate and use themes dynamically, use components on demand, take advantage of UI Elements and Components with an ease-to-use API.
66

7+
## Demo and Documentation
8+
<a href="https://marcosmoura.github.io/vue-material/" target="_blank">Material Design</a>
9+
710
## Installation
811

912
Install Vue Material through npm or yarn
@@ -54,6 +57,9 @@ Vue.material.theme.registerAll({
5457
accent: 'pink'
5558
}
5659
});
60+
61+
## Changelog
62+
<a href="https://marcosmoura.github.io/vue-material/#/changelog" target="_blank">Link</a>
5763
```
5864

5965
## Build Setup

build/config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const config = {
77
docsPath: 'docs',
88
indexPath: 'docs/index.html',
99
publicPath: '/',
10-
assetsPath: '/'
10+
assetsPath: 'docs/src/assets'
1111
};
1212

1313
let dev = {

build/server/index.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,7 @@ compiler.plugin('compilation', (compilation) => {
3232
app.use(historyApiFallback());
3333
app.use(devMiddlewareInstance);
3434
app.use(hotMiddlewareInstance);
35-
app.use(express.static(__dirname + config.devPath));
36-
37-
app.get('*', function(req, res) {
38-
res.sendFile(path.join(__dirname, 'index.html'));
39-
});
35+
app.use('/assets', express.static(path.join(__dirname, '..', '..', config.assetsPath)));
4036

4137
export default app.listen(config.server.port, (error) => {
4238
let uri = 'http://localhost:' + config.server.port;

build/webpack/base.js

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,6 @@ import autoprefixer from 'autoprefixer';
44
import eslintFormatter from 'eslint-friendly-formatter';
55
import config from '../config';
66

7-
const buildAssetsPath = (_path) => {
8-
return path.posix.join(_path);
9-
};
10-
117
export default {
128
entry: {
139
docs: './docs/src/index.js'
@@ -21,7 +17,7 @@ export default {
2117
extensions: ['', '.js', '.vue'],
2218
fallback: [config.nodePath],
2319
alias: {
24-
vue: 'vue/dist/vue.common.js'
20+
assets: path.resolve(__dirname, '../../docs/src/assets')
2521
}
2622
},
2723
resolveLoader: {
@@ -68,14 +64,6 @@ export default {
6864
{
6965
test: /\.html$/,
7066
loader: 'vue-html'
71-
},
72-
{
73-
test: /\.(png|jpe?g|gif|svg)(\?.*)?$/,
74-
loader: 'url',
75-
query: {
76-
limit: 10000,
77-
name: buildAssetsPath('images/[name].[hash:7].[ext]')
78-
}
7967
}
8068
]
8169
},

build/webpack/prod-docs.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import webpack from 'webpack';
22
import path from 'path';
33
import merge from 'webpack-merge';
44
import ExtractTextPlugin from 'extract-text-webpack-plugin';
5+
import CopyWebpackPlugin from 'copy-webpack-plugin';
56
import HtmlWebpackPlugin from 'html-webpack-plugin';
67
import config from '../config';
78
import baseConfig from './base';
@@ -28,6 +29,13 @@ export default merge(baseConfig, {
2829
}),
2930
new webpack.optimize.OccurenceOrderPlugin(),
3031
new ExtractTextPlugin('[name].[contenthash:8].css'),
32+
new CopyWebpackPlugin([
33+
{
34+
context: config.assetsPath,
35+
from: '**/*',
36+
to: path.join(config.rootPath, 'docs', 'assets')
37+
}
38+
]),
3139
new HtmlWebpackPlugin({
3240
filename: 'index.html',
3341
template: config.indexPath,

dist/components/mdAvatar/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/components/mdBottomBar/index.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)