From 582d119e529bf5f280a44d012ba05949d3513b76 Mon Sep 17 00:00:00 2001 From: tigerb <624661874@qq.com> Date: Fri, 25 Nov 2016 18:01:02 +0800 Subject: [PATCH] feat: do not rely on bower :sparkles: --- .bowerrc | 3 --- .gitignore | 1 + README.md | 15 ++++++++------- app.js | 3 +++ bower.json | 26 -------------------------- index.html | 10 ---------- package.json | 7 +++++-- webpack.config.js | 4 ---- 8 files changed, 17 insertions(+), 52 deletions(-) delete mode 100644 .bowerrc delete mode 100644 bower.json delete mode 100644 index.html diff --git a/.bowerrc b/.bowerrc deleted file mode 100644 index 2f1d40f..0000000 --- a/.bowerrc +++ /dev/null @@ -1,3 +0,0 @@ -{ - "directory":"bower_components" -} diff --git a/.gitignore b/.gitignore index 28f15cb..5244950 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ node_modules bower_components dist npm-debug.log +index.html diff --git a/README.md b/README.md index bbeaa66..95ac788 100644 --- a/README.md +++ b/README.md @@ -3,12 +3,14 @@ > a easy example to use vue to implement easy web -## Latest Version 0.5.0(2016/11/22) +## Latest Version 0.5.1(2016/11/25) -- 0.5.0 +- 0.5.1 (2016/11/25) + + do not rely on bower +- 0.5.0 (2016/11/22) + use vue 2.0 + use vuex 2.0 -- 0.3.0 +- 0.3.0 (2016/09/13) + change UI for easy-vue + use vue-progressbar + add loading animation component in src/components @@ -17,7 +19,7 @@ + implements page change + optimize UI -> [latest version download](https://github.com/TIGERB/easy-vue/releases/tag/v0.5.0) +> [latest version download](https://github.com/TIGERB/easy-vue/releases/tag/v0.5.1) ## Demo @@ -25,8 +27,7 @@ ## How To Use ? 1. npm install -2. bower install -3. build +2. build: - develop environment: `DOMAIN=http://yourdomain npm run test` - production environment: `DOMAIN=http://yourdomain npm run build` -4. php environment to use server.php simulate api +3. php environment to use server.php simulate api diff --git a/app.js b/app.js index ec22827..a6b4a28 100644 --- a/app.js +++ b/app.js @@ -1,3 +1,6 @@ +require('!style!css!ratchet-npm/dist/css/ratchet.css');// get ratchet +require('!style!css!font-awesome/css/font-awesome.css');// get font-awesome + var Vue    = require('vue'); // get vue var App    = require('./app.vue'); // get root module var store   = require('./store.js'); // get vuxe -> store diff --git a/bower.json b/bower.json deleted file mode 100644 index ed8a589..0000000 --- a/bower.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "name": "easy-vue", - "description": "Learn Vue Easy", - "main": "index.html", - "authors": [ - "tigerb <624661874@qq.com>" - ], - "license": "ISC", - "keywords": [ - "vue" - ], - "homepage": "https://github.com/TIGERB/easy-vue", - "moduleType": [], - "ignore": [ - "**/.*", - "node_modules", - "bower_components", - "test", - "tests" - ], - "dependencies": { - "ratchet": "^2.0.2", - "font-awesome": "^4.5.0", - "fastclick": "^1.0.6" - } -} diff --git a/index.html b/index.html deleted file mode 100644 index f4dfe8b..0000000 --- a/index.html +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - -
- - diff --git a/package.json b/package.json index 4cf56b4..c23da54 100644 --- a/package.json +++ b/package.json @@ -4,8 +4,8 @@ "description": "Learn Vue Easy", "main": "index.js", "scripts": { - "test": "webpack -p", - "build": "NODE_ENV=production webpack -p" + "test": "webpack -p -d --colors", + "build": "NODE_ENV=production webpack -p --colors" }, "author": "TIGERB", "license": "ISC", @@ -30,7 +30,10 @@ "webpack-dev-server": "^1.14.1" }, "dependencies": { + "fastclick": "^1.0.6", "fetch": "^1.0.1", + "font-awesome": "^4.7.0", + "ratchet-npm": "^2.0.4", "vue": "^2.0.0", "vue-infinite-scroll": "^2.0.0", "vue-progressbar": "^0.7.0", diff --git a/webpack.config.js b/webpack.config.js index cc0791a..54dbee9 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -12,10 +12,6 @@ var domain = process.env.DOMAIN; // your domain process.env.DOMAIN // input webpackConfig.entry  = { app:[ - // vender - './bower_components/ratchet/dist/css/ratchet.css', - './bower_components/font-awesome/css/font-awesome.css', - // main './app.js', ],