https://github.com/webcaetano/jinx
CommonJS-style AS3 Pre-compiler. Make AS3 Much simpler and easy-to-use.
https://github.com/webcaetano/jinx
Last synced: 6 months ago
JSON representation
CommonJS-style AS3 Pre-compiler. Make AS3 Much simpler and easy-to-use.
- Host: GitHub
- URL: https://github.com/webcaetano/jinx
- Owner: webcaetano
- License: mit
- Created: 2015-05-02T08:05:25.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2015-12-25T21:27:24.000Z (over 10 years ago)
- Last Synced: 2024-12-29T10:28:51.675Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 88.9 KB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# 
Jinx is an AS3 Pre-compiler, that make AS3 simpler and easy-to-use, but more powerfull with some new features.
Jinx is [NPM](https://www.npmjs.com) friendly , for publish and load Jinxs packages (.jinx, .as and .swc).
Compiled currently on GulpJS it making easily to create news plugins and features.
### Features
- ✔ `CommonJS-style` require() & modules.exports for load modules from NPM like in nodejs, browserify, webpack.
- ✔ Open AS3 to NPM.
- ✔ IDE Free. Work on your favorite text editor.
- ✔ browser development, with livercompiler and liverload.
- ✔ Ready to Code. No need to start with [package -> public class -> public funciton].
- ✔ load or export swc from NPM.
- ✔ All of as3 but simpler with more.
- ✔ Open source.
Example :
```javascript
//as3 vanilla
package {
import flash.display.Sprite;
public class Main extends Sprite {
public function Main() {
trace('hello world');
}
}
} // 8 lines
//jinx
trace('hello world'); // one line
```
### Require()
Load jinx-packages from npm
```javascript
// jinx
// npm install jinx-mempanel
var memPanel = require("jinx-mempanel");
memPanel(); // load a jinx module + swc that show FPS, Memory usage and Number of particles in a panel.
//or just
require("jinx-mempanel")();
```
## Getting Started
Cloning this repo.
This repo is just a jinx boilerplate.
```Batchfile
git clone https://github.com/webcaetano/jinx.git
cd jinx
npm install && bower install
```
Start the development mode.
```Batchfile
gulp serve
```
Create the .swf
```Batchfile
gulp
# or
gulp build
```
### First Jinx Modules
- [jinx-mempanel](https://github.com/webcaetano/jinx-mempanel) Panel of Performance (Memory, FPS, Particles counter) [@webcaetano](https://github.com/webcaetano)
- [jinx-events](https://github.com/webcaetano/jinx-events) MovieClipe Events by Protoype & chaining [@webcaetano](https://github.com/webcaetano)
- [jinx-error-catcher](https://github.com/webcaetano/jinx-error-catcher) handle error and submit to browser console [@webcaetano](https://github.com/webcaetano)
- [jinx-console](https://github.com/webcaetano/jinx-console) enable console browser object on AS3 [@webcaetano](https://github.com/webcaetano)
### ScreenShots

---------------------------------
[The MIT License](https://raw.githubusercontent.com/webcaetano/jinx/master/LICENSE.md)