Skip to content

Commit cc83fbf

Browse files
committed
build
1 parent 97c6fb7 commit cc83fbf

File tree

4 files changed

+14
-32
lines changed

4 files changed

+14
-32
lines changed

README.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,14 @@
44

55
Built with [Vue.js](http://vuejs.org) and the official [HackerNews API](https://github.com/HackerNews/API), with routing, comments, comment folding, user profile & realtime updates.
66

7-
The build setup uses Browserify and the [Vueify](https://github.com/vuejs/vueify) transform, which enables Vue components to be written in a format that encapsulates a component's style, template and logic in a single file.
7+
The build setup uses Browserify and the [Vueify](https://github.com/vuejs/vueify) transform, which enables Vue components to be written in a format that encapsulates a component's style, template and logic in a single file.
8+
9+
### Building
10+
11+
``` bash
12+
npm install
13+
# watch:
14+
npm run dev
15+
# build:
16+
npm run build
17+
```

build/build.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.

npm-debug.log

Lines changed: 0 additions & 29 deletions
This file was deleted.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"main": "index.js",
66
"scripts": {
77
"dev": "watchify -v -t vueify -e src/main.js -o build/build.js",
8-
"build": "browserify -t vueify src/main.js | uglifyjs -c -m > build/build.js"
8+
"build": "./node_modules/watchify/node_modules/.bin/browserify -t vueify src/main.js | uglifyjs -c -m > build/build.js"
99
},
1010
"repository": {
1111
"type": "git",
@@ -20,6 +20,7 @@
2020
"devDependencies": {
2121
"insert-css": "^0.2.0",
2222
"stylus": "^0.49.1",
23+
"uglify-js": "^2.4.15",
2324
"vueify": "^0.1.0",
2425
"watchify": "^2.0.0"
2526
},

0 commit comments

Comments
 (0)