-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
bonnel-n
committed
Dec 1, 2016
1 parent
958e637
commit 9b1d911
Showing
9 changed files
with
220 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"presets": ["es2015", "stage-2"], | ||
"plugins": ["transform-runtime"], | ||
"comments": false | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
module.exports = { | ||
root: true, | ||
parser: 'babel-eslint', | ||
parserOptions: { | ||
sourceType: 'module' | ||
}, | ||
// https://github.com/feross/standard/blob/master/RULES.md#javascript-standard-style | ||
extends: 'standard', | ||
// required to lint *.vue files | ||
plugins: [ | ||
'html' | ||
], | ||
// add your custom rules here | ||
'rules': { | ||
// allow paren-less arrow functions | ||
'arrow-parens': 0, | ||
// allow async-await | ||
'generator-star-spacing': 0, | ||
// allow debugger during development | ||
'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0, | ||
// This rule is required because atom vue-format package remove the space | ||
'space-before-function-paren': 0 | ||
}, | ||
globals:{ | ||
localStorage: true | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
<template> | ||
<div> | ||
Component here | ||
Component here | ||
</div> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
name: 'home' | ||
name: 'openapi' | ||
} | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import Vue from 'vue' | ||
import VueMaterial from 'vue-material' | ||
import openapi from './OpenAPI.vue' | ||
import 'vue-material/dist/vue-material.css' | ||
|
||
Vue.use(VueMaterial) | ||
Vue.material.theme.register('default', { | ||
primary: 'cyan', | ||
accent: 'pink' | ||
}) | ||
|
||
new Vue({ | ||
el: '#app', | ||
template: '<openapi></openapi>', | ||
components: { | ||
openapi | ||
} | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
var webpack = require('webpack') | ||
|
||
module.exports = { | ||
entry: './app.js', | ||
output: { | ||
filename: 'bundle.js', | ||
path: './', | ||
publicPath: '/', | ||
chunkFilename: '[id].[hash].app.js' | ||
}, | ||
module: { | ||
loaders: [{ | ||
test: /\.vue$/, | ||
loader: 'vue' | ||
}, { | ||
test: /\.js$/, | ||
exclude: /(node_modules|bower_components)/, | ||
loader: 'babel-loader', | ||
query: { | ||
presets: ['es2015'] | ||
} | ||
}, { | ||
test: /\.css$/, | ||
loader: process.env.NODE_ENV !== 'development' ? 'style!css?minimize' : 'style!css?-minimize' | ||
}, { | ||
test: /\.less$/, | ||
loader: process.env.NODE_ENV !== 'development' ? 'style!css?minimize!less' : 'style!css?-minimize!less' | ||
}, { | ||
test: /\.svg$/, | ||
exclude: /assets\/.*$/, | ||
loader: 'svg-url-loader' | ||
}, { | ||
test: /assets\/.*$/, | ||
loader: 'file?name=assets/[name].svg' | ||
}, { | ||
test: [/flags\/(1x1|4x3)\/.*\.svg$/, /moment\/locale\/(?!fr)/], | ||
exclude: /flags\/(1x1|4x3)\/(gb|fr)\.svg$/, | ||
loader: 'ignore-loader' | ||
}] | ||
}, | ||
resolve: { | ||
alias: { | ||
'vue$': 'vue/dist/vue.common.js' | ||
} | ||
}, | ||
devtool: process.env.NODE_ENV !== 'development' ? 'source-map' : 'eval', | ||
plugins: process.env.NODE_ENV !== 'development' ? [ | ||
new webpack.optimize.UglifyJsPlugin(), | ||
new webpack.optimize.DedupePlugin() | ||
] : [] | ||
} |