1 Star 0 Fork 0

wellsfrog/js-signals-event

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT
# JS-Signals # [![Build Status](https://secure.travis-ci.org/millermedeiros/js-signals.png)](https://travis-ci.org/millermedeiros/js-signals) Custom event/messaging system for JavaScript inspired by [AS3-Signals](https://github.com/robertpenner/as3-signals). For a more in-depth introduction read the [JS-Signals Project Page](http://millermedeiros.github.com/js-signals/) and visit the links below. ## Links ## * [Project Page](http://millermedeiros.github.com/js-signals/) * [Wiki](http://github.com/millermedeiros/js-signals/wiki/) * [Documentation](http://millermedeiros.github.com/js-signals/docs) * [Changelog](http://github.com/millermedeiros/js-signals/blob/master/CHANGELOG.md) * [CompoundSignal - special Signal kind](https://github.com/millermedeiros/CompoundSignal) * [jasmine-signals](https://github.com/AdamNowotny/jasmine-signals) (Jasmine assertions to simplify signals testing) ## License ## * [MIT License](http://www.opensource.org/licenses/mit-license.php) ## Distribution Files ## You can use the same distribution file for all the evironments, browser script tag, AMD, CommonJS (since v0.7.0). Files inside `dist` folder: * docs/index.html : Documentation. * signals.js : Uncompressed source code with comments. * signals.min.js : Compressed code. You can install JS-Signals on Node.js using [NPM](http://npmjs.org/) npm install signals ## CompoundSignal Note that there is an advanced Signal type called `CompoundSignal` that is compatible with js-signals v0.7.0+. It's useful for cases where you may need to execute an action after multiple Signals are dispatched. It was split into its' own repository since this feature isn't always needed and that way it can be easily distributed trough npm. [CompoundSignal repository](https://github.com/millermedeiros/CompoundSignal) ## Repository Structure ## ### Folder Structure ### |-build -> files used on the build process |-src -> source files |-tests -> unit tests `-dist -> distribution files `-docs -> documentation ### Branches ### master -> always contain code from the latest stable version release-** -> code canditate for the next stable version (alpha/beta) develop -> main development branch (nightly) **other** -> features/hotfixes/experimental, probably non-stable code ## Building your own ## This project uses [Apache Ant](http://ant.apache.org/) for the build process. If for some reason you need to build a custom version of JS-Signals install Ant and run: ant build This will delete all JS files inside the `dist` folder, merge/update/compress source files, validate generated code using [JSLint](http://www.jslint.com/) and copy the output to the `dist` folder. There is also another ant task that runs the build task and generate documentation (used before each deploy): ant deploy **IMPORTANT:** `dist` folder always contain the latest version, regular users should **not** need to run build task. ## Running Tests ## The specs work on the browser and on node.js, during development you can use the `spec/runner_dev.html` file to avoid doing a build every time you make changes to the source files. On node.js you need to run `ant compile` after each source file change otherwise `npm test` will execute the files from last build - not adding it as a `pretest` script since the build adds information about the build date and build number and that would pollute the commit history.

简介

Custom Event/Messaging system for JavaScript inspired by AS3-Signals 展开 收起
JavaScript 等 5 种语言
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/wellsfrog/js-signals-event.git
git@gitee.com:wellsfrog/js-signals-event.git
wellsfrog
js-signals-event
js-signals-event
master

搜索帮助