Coder Social home page Coder Social logo

teto.js's Introduction

Build Status bitHound Overall Score bitHound Dependencies bitHound Dev Dependencies bitHound Code Coverage Status js-standard-style dependencies devDependency Status

Installation

$ npm install

Running Dev Server

$ npm run dev

Tips

  • [email protected] 会导致 @autobind 不可用,所以采用 2.x
  • 除了 decorator,还可以使用操作符 :: 来实现 autobind,参见:http://babeljs.io/blog/2015/05/14/function-bind/
  • 开发时不应使用 extract-text-webpack-plugin,因为它让 CSS 无法热替换
  • Object.assign 与 Array.slice 都不是深拷贝
  • 组件的 key 参数使用时应避免使用索引值,而应该使用 id 等唯一值
  • 标签的嵌套要注意符合 W3C 规范,比如 button 不能嵌套 button、table 需要 tbody
  • 所有路由在 routes 目录下,为了实现异步加载,对应的 component 以 .async.js(x) 结尾

node-sass

如果收到提示:ERROR in The libsass binding was not found,则可以尝试:

$ npm rebuild node-sass

teto.js's People

Contributors

crossjs avatar kagawagao avatar lyfei022 avatar zhoumao avatar yaksea avatar

Watchers

James Cloos avatar  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.