Skip to content

Commit

Permalink
Add setup files
Browse files Browse the repository at this point in the history
  • Loading branch information
kazupon committed Aug 22, 2015
1 parent 3f23ebe commit efbe4dc
Show file tree
Hide file tree
Showing 4 changed files with 69 additions and 0 deletions.
13 changes: 13 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>HackerNews Clone</title>
<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no">
<link rel="icon" href="logo.png" type="image/x-icon">
</head>
<body>
<div id="app"></div>
<script src="build/build.js"></script>
</body>
</html>
Binary file added logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
34 changes: 34 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"name": "vue-router-hackernews",
"description": "Hackernews clone with vue.js + vue-router",
"version": "1.0.0",
"author": "kazuya kawaguchi",
"bugs": {
"url": "https://github.com/kazupon/vue-router-hackernews/issues"
},
"homepage": "https://github.com/kazupon/vue-router-hackernews#README",
"license": "MIT",
"main": "index.js",
"private": true,
"repository": {
"type": "git",
"url": "git+https://github.com/kazupon/vue-router-hackernews.git"
},
"scripts": {
"dev": "webpack --watch"
},
"devDependencies": {
"babel-core": "^5.8.22",
"babel-loader": "^5.3.2",
"babel-runtime": "^5.8.20",
"css-loader": "^0.16.0",
"firebase": "^2.2.9",
"html-loader": "^0.3.0",
"style-loader": "^0.12.3",
"stylus-loader": "^1.2.1",
"vue": "^0.12.10",
"vue-loader": "^3.0.3",
"vue-router": "^0.5.1",
"webpack": "^1.11.0"
}
}
22 changes: 22 additions & 0 deletions webpack.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
var vue = require('vue-loader')

module.exports = {
entry: './src/index.js',
output: {
path: './build',
filename: 'build.js'
},
module: {
loaders: [{
test: /\.vue$/,
loader: vue.withLoaders({
js: 'babel?optional[]=runtime'
})
}, {
test: /\.js$/,
exclude: /node_modules|vue\/src/,
loader: 'babel?optional[]=runtime'
}]
},
devtool: 'source-map'
}

0 comments on commit efbe4dc

Please sign in to comment.