Giter VIP home page Giter VIP logo

kingbookapp's Introduction

1、直接在命令行运行gulp进行开发,在浏览器打开:http://localhost:5000/index.html
2、源码在src目录下,发布目录在dist
3、对源码的html,js,css文件进行修改会自动刷新和构建.

全局命名空间和包名:
window.ebookweb//主包
window.ebookweb.config//一些配置
window.ebookweb.mediator//事件交互
window.ebookweb.events//事件
window.ebookweb.models//数据对象
window.ebookweb.views//视图包
window.ebookweb.views.components//视图组件
window.ebookweb.views.pages//页面
window.ebookweb.utils//一些共用的方法或者类

对应js路径在js目录

模版
templates目录
template/header.html#头部
template/footer.html#底部
template/components/*.html#组件的模版html,命名和id一样,下划线间隔
template/pages/*.html#页面的模版html,命名和id一样,下划线间隔

最终所有html打包成index.html


逻辑和组件js
包名对应文件夹名字

init.js//最先初始化的js
router.js//路由
stat.js//统计埋点相关
startwork.js//全部组件打包完成之后前端开始工作,最后执行

kingbookapp's People

Watchers

James Cloos avatar Vemedn avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.