Skip to content

imjeen/i

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

64 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

单页面SPA with Vue.js

Overview

基于 Vue.js框架部署的单页面web应用程序。

同时,模块以nodejs风格编码并使用ES6语法,显得编码更加简洁易懂。

ES6

通过 babel 预编译 ES6 语法的js。而vue文件已经默认对ES6进行预编译。那么意味着可以通过ES6 语法来编写js和vue文件。见babelvue-loader 配置和使用。

SVG sprites

通过 webpack 的加载器 svg-sprite-loader 引用svg文件。

Usage

	$ bower install # install bower package for first
	$ npm install # install npm package for first
	$ npm run build # build for dev

	$ NODE_ENV=production npm run build # build for product/release
	$ npm run server # go to the URL: http://localhost
	$ npm run watch # extra watch files

*Note: 对于本项目的自动发布流程脚本,大多数情况只适用当前部署环境

Plugin

  • vue-router Vue.js 官方路由。与 Vue.js 内核深度整合,让构建单页应用易如反掌。
  • vue-resource 通过 XMLHttpRequest 或 JSONP 发起请求并处理响应。

About

make the SPA with Vue@1.0.6, vue-router

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published