build success
This commit is contained in:
parent
e77c28a1f7
commit
1ab23346f8
38
README.md
38
README.md
@ -1,2 +1,36 @@
|
|||||||
# jackblog-vue
|
# Jackblog Vue 版
|
||||||
Jackblog vue 版
|
|
||||||
|
Jackblog 是使用 Node.js + MongoDB + 其它客户端框架,开发的个人博客系统,前后端分离,仿简书模板.此为客户端 Vue版
|
||||||
|
服务端有:
|
||||||
|
[express版](https://github.com/jackhutu/jackblog-api-express)
|
||||||
|
[koa版](https://github.com/jackhutu/jackblog-api-koa)
|
||||||
|
客户端有:
|
||||||
|
[angular1.x版](https://github.com/jackhutu/jackblog-angular1)
|
||||||
|
[react redux 版](https://github.com/jackhutu/jackblog-react-redux)
|
||||||
|
[vue 版](https://github.com/jackhutu/jackblog-vue)
|
||||||
|
移动端有:
|
||||||
|
[react native 版](https://github.com/jackhutu/jackblog-react-native-redux)
|
||||||
|
|
||||||
|
|
||||||
|
## 开发
|
||||||
|
需要预先安装sass,compass
|
||||||
|
|
||||||
|
```
|
||||||
|
$ npm install
|
||||||
|
$ gulp serve
|
||||||
|
```
|
||||||
|
|
||||||
|
## 打包
|
||||||
|
|
||||||
|
```
|
||||||
|
$ gulp build 或 gulp serve:dist
|
||||||
|
```
|
||||||
|
|
||||||
|
## 线上布署
|
||||||
|
```
|
||||||
|
$ pm2 start process.json
|
||||||
|
```
|
||||||
|
可参考[利用git和pm2一键布署项目到vps](http://angular1.jackhu.top/article/55cd8e00c6e998b817a930c7)
|
||||||
|
|
||||||
|
## License
|
||||||
|
MIT
|
||||||
|
@ -9,7 +9,7 @@ import gulpSequence from 'gulp-sequence'
|
|||||||
import nodemon from 'gulp-nodemon'
|
import nodemon from 'gulp-nodemon'
|
||||||
import open from 'open'
|
import open from 'open'
|
||||||
|
|
||||||
const DEV_PORT = 5200,PROD_PORT = 8400
|
const DEV_PORT = 5100,PROD_PORT = 8400
|
||||||
gulp.task('serve', cb =>{
|
gulp.task('serve', cb =>{
|
||||||
let webpackConfig = require('./webpack.config')
|
let webpackConfig = require('./webpack.config')
|
||||||
let myConfig = Object.create(webpackConfig)
|
let myConfig = Object.create(webpackConfig)
|
||||||
|
@ -66,6 +66,7 @@
|
|||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"express": "^4.13.4",
|
"express": "^4.13.4",
|
||||||
|
"pm2": "^0.15.10",
|
||||||
"serve-favicon": "^2.3.0"
|
"serve-favicon": "^2.3.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -3,7 +3,7 @@ var express = require('express');
|
|||||||
var favicon = require('serve-favicon');
|
var favicon = require('serve-favicon');
|
||||||
|
|
||||||
var app = new express();
|
var app = new express();
|
||||||
var port = process.env.PORT || 8300;
|
var port = process.env.PORT || 8400;
|
||||||
|
|
||||||
app.use(express.static(path.join(__dirname, 'dist')));
|
app.use(express.static(path.join(__dirname, 'dist')));
|
||||||
app.use(favicon(path.join(__dirname, 'dist', 'favicon.ico')));
|
app.use(favicon(path.join(__dirname, 'dist', 'favicon.ico')));
|
||||||
|
@ -35,7 +35,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
created () {
|
created () {
|
||||||
getSnsLogins()
|
if(this.logins.length < 1){
|
||||||
|
getSnsLogins()
|
||||||
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
showModal(){
|
showModal(){
|
||||||
|
@ -5,6 +5,9 @@
|
|||||||
<title>Jackblog Vue 版</title>
|
<title>Jackblog Vue 版</title>
|
||||||
</head>
|
</head>
|
||||||
<body class="day-mode">
|
<body class="day-mode">
|
||||||
|
<!--[if lt IE 10]>
|
||||||
|
<p class="browsehappy">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.</p>
|
||||||
|
<![endif]-->
|
||||||
<div id="root"></div>
|
<div id="root"></div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
@ -11,8 +11,7 @@ module.exports = {
|
|||||||
],
|
],
|
||||||
output: {
|
output: {
|
||||||
path: process.cwd(),
|
path: process.cwd(),
|
||||||
filename: 'bundle.js',
|
filename: 'bundle.js'
|
||||||
//publicPath: '/'
|
|
||||||
},
|
},
|
||||||
plugins: [
|
plugins: [
|
||||||
new webpack.optimize.OccurenceOrderPlugin(),
|
new webpack.optimize.OccurenceOrderPlugin(),
|
||||||
|
@ -67,7 +67,7 @@ module.exports = {
|
|||||||
},
|
},
|
||||||
resolve: {
|
resolve: {
|
||||||
root: path.resolve(__dirname, 'node_modules'),
|
root: path.resolve(__dirname, 'node_modules'),
|
||||||
extensions: ['','.js','.scss']
|
extensions: ['','.js','.vue','.scss']
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user