Skip to content

Commit 7b31852

Browse files
committed
Basic vue-cli browserify-simple scaffolding.
0 parents  commit 7b31852

File tree

7 files changed

+99
-0
lines changed

7 files changed

+99
-0
lines changed

.babelrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"presets": ["es2015"]
3+
}

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.DS_Store
2+
node_modules/
3+
dist/build.js
4+
npm-debug.log

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# i-boards
2+
3+
> iBoards Library
4+
5+
## Build Setup
6+
7+
``` bash
8+
# install dependencies
9+
npm install
10+
11+
# serve with hot reload at localhost:8080
12+
npm run dev
13+
14+
# build for production with minification
15+
npm run build
16+
```
17+
18+
For more information see the [docs for vueify](https://github.com/vuejs/vueify).

index.html

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="utf-8">
5+
<title>i-boards</title>
6+
</head>
7+
<body>
8+
<div id="app"></div>
9+
<script src="dist/build.js"></script>
10+
</body>
11+
</html>

package.json

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{
2+
"name": "i-boards",
3+
"description": "iBoards Library",
4+
"author": "Andy Wood <andy@ideaflip.com>",
5+
"private": true,
6+
"scripts": {
7+
"watchify": "watchify -vd -p browserify-hmr -e src/main.js -o dist/build.js",
8+
"serve": "http-server -o -s -c 1 -a localhost",
9+
"dev": "npm-run-all --parallel watchify serve",
10+
"build": "cross-env NODE_ENV=production browserify -g envify src/main.js | uglifyjs -c warnings=false -m > dist/build.js"
11+
},
12+
"dependencies": {
13+
"vue": "^2.0.1"
14+
},
15+
"devDependencies": {
16+
"babel-core": "^6.0.0",
17+
"babel-preset-es2015": "^6.0.0",
18+
"babelify": "^7.2.0",
19+
"browserify": "^13.0.1",
20+
"browserify-hmr": "^0.3.1",
21+
"cross-env": "^1.0.6",
22+
"envify": "^3.4.1",
23+
"http-server": "^0.9.0",
24+
"npm-run-all": "^2.1.2",
25+
"uglify-js": "^2.5.0",
26+
"vueify": "^9.1.0",
27+
"watchify": "^3.4.0"
28+
},
29+
"browserify": {
30+
"transform": [
31+
"vueify",
32+
"babelify"
33+
]
34+
}
35+
}

src/App.vue

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<template>
2+
<div id="app">
3+
<h1>{{ msg }}</h1>
4+
</div>
5+
</template>
6+
7+
<script>
8+
export default {
9+
data () {
10+
return {
11+
msg: 'Hello Vue!'
12+
}
13+
}
14+
}
15+
</script>
16+
17+
<style>
18+
body {
19+
font-family: Helvetica, sans-serif;
20+
}
21+
</style>

src/main.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import Vue from 'vue'
2+
import App from './App.vue'
3+
4+
new Vue({
5+
el: '#app',
6+
render: h => h(App)
7+
})

0 commit comments

Comments
 (0)