forked from pixijs-userland/spine
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
adamdanielsdesign
committed
Apr 17, 2015
1 parent
5a4c335
commit ace9371
Showing
65 changed files
with
624 additions
and
3,080 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,20 @@ | ||
; This file is for unifying the coding style for different editors and IDEs. | ||
; More information at http://EditorConfig.org | ||
# This file is for unifying the coding style for different editors and IDEs. | ||
# More information at http://EditorConfig.org | ||
|
||
root = true | ||
|
||
[**.js] | ||
indent_style = space | ||
indent_size = 4 | ||
# General Options | ||
[*] | ||
end_of_line = lf | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
indent_size = 4 | ||
indent_style = space | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
|
||
# Markdown | ||
[*.md] | ||
trim_trailing_whitespace = false | ||
|
||
# Special Files | ||
[{package.json,.travis.yml}] | ||
indent_size = 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,19 @@ | ||
node_modules | ||
# Sublime Text files | ||
*.sublime* | ||
*.*~*.TMP | ||
|
||
# OS temp files | ||
.DS_Store | ||
.project | ||
*.sublime-* | ||
*.log | ||
Thumbs.db | ||
Desktop.ini | ||
|
||
bin/pixi.dev.js.map | ||
# Tool temp files | ||
npm-debug.log | ||
*.sw* | ||
*~ | ||
\#*# | ||
|
||
# project ignores | ||
!.gitkeep | ||
node_modules | ||
dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,101 @@ | ||
{ | ||
// -------------------------------------------------------------------- | ||
// JSHint Configuration | ||
// -------------------------------------------------------------------- | ||
// | ||
|
||
// == Enforcing Options =============================================== | ||
// | ||
// These options tell JSHint to be more strict towards your code. Use | ||
// them if you want to allow only a safe subset of JavaScript, very | ||
// useful when your codebase is shared with a big number of developers | ||
// with different skill levels. | ||
|
||
"bitwise" : false, // Disallow bitwise operators (&, |, ^, etc.). | ||
"camelcase" : true, // Force all variable names to use either camelCase or UPPER_CASE. | ||
"curly" : true, // Require {} for every new block or scope. | ||
"eqeqeq" : true, // Require triple equals i.e. `===`. | ||
"es3" : false, // Enforce conforming to ECMAScript 3. | ||
"forin" : false, // Disallow `for in` loops without `hasOwnPrototype`. | ||
"immed" : true, // Require immediate invocations to be wrapped in parens e.g. `( function(){}() );` | ||
"indent" : 4, // Require that 4 spaces are used for indentation. | ||
"latedef" : "nofunc", // Prohibit variable use before definition. | ||
"newcap" : true, // Require capitalization of all constructor functions e.g. `new F()`. | ||
"noarg" : true, // Prohibit use of `arguments.caller` and `arguments.callee`. | ||
"noempty" : true, // Prohibit use of empty blocks. | ||
"nonew" : true, // Prohibit use of constructors for side-effects. | ||
"plusplus" : false, // Disallow use of `++` & `--`. | ||
"quotmark" : true, // Force consistency when using quote marks. | ||
"undef" : true, // Require all non-global variables be declared before they are used. | ||
"unused" : true, // Warn when varaibles are created but not used. | ||
"strict" : false, // Require `use strict` pragma in every file. | ||
"trailing" : true, // Prohibit trailing whitespaces. | ||
"maxparams" : 7, // Prohibit having more than X number of params in a function. | ||
"maxdepth" : 6, // Prohibit nested blocks from going more than X levels deep. | ||
"maxstatements" : false, // Restrict the number of statements in a function. | ||
"maxcomplexity" : false, // Restrict the cyclomatic complexity of the code. | ||
"maxlen" : 125, // Require that all lines are n characters or less. | ||
"globals" : { // Register globals that are used in the code. | ||
}, | ||
|
||
// == Relaxing Options ================================================ | ||
// | ||
// These options allow you to suppress certain types of warnings. Use | ||
// them only if you are absolutely positive that you know what you are | ||
// doing. | ||
|
||
"asi" : false, // Tolerate Automatic Semicolon Insertion (no semicolons). | ||
"boss" : false, // Tolerate assignments inside if, for & while. Usually conditions & loops are for comparison, not assignments. | ||
"debug" : false, // Allow debugger statements e.g. browser breakpoints. | ||
"eqnull" : false, // Tolerate use of `== null`. | ||
"esnext" : false, // Allow ES.next specific features such as `const` and `let`. | ||
"evil" : false, // Tolerate use of `eval`. | ||
"expr" : false, // Tolerate `ExpressionStatement` as Programs. | ||
"funcscope" : false, // Tolerate declarations of variables inside of control structures while accessing them later from the outside. | ||
"globalstrict" : false, // Allow global "use strict" (also enables 'strict'). | ||
"iterator" : false, // Allow usage of __iterator__ property. | ||
"lastsemic" : false, // Tolerate missing semicolons when the it is omitted for the last statement in a one-line block. | ||
"laxbreak" : false, // Tolerate unsafe line breaks e.g. `return [\n] x` without semicolons. | ||
"laxcomma" : false, // Suppress warnings about comma-first coding style. | ||
"loopfunc" : false, // Allow functions to be defined within loops. | ||
"moz" : false, // Code that uses Mozilla JS extensions will set this to true | ||
"multistr" : false, // Tolerate multi-line strings. | ||
"proto" : false, // Tolerate __proto__ property. This property is deprecated. | ||
"scripturl" : false, // Tolerate script-targeted URLs. | ||
"smarttabs" : false, // Tolerate mixed tabs and spaces when the latter are used for alignmnent only. | ||
"shadow" : false, // Allows re-define variables later in code e.g. `var x=1; x=2;`. | ||
"sub" : false, // Tolerate all forms of subscript notation besides dot notation e.g. `dict['key']` instead of `dict.key`. | ||
"supernew" : false, // Tolerate `new function () { ... };` and `new Object;`. | ||
"validthis" : false, // Tolerate strict violations when the code is running in strict mode and you use this in a non-constructor function. | ||
|
||
// == Environments ==================================================== | ||
// | ||
// These options pre-define global variables that are exposed by | ||
// popular JavaScript libraries and runtime environments—such as | ||
// browser or node.js. | ||
|
||
"browser" : true, // Standard browser globals e.g. `window`, `document`. | ||
"browserify" : true, // Standard browser globals e.g. `window`, `document`. | ||
"couch" : false, // Enable globals exposed by CouchDB. | ||
"devel" : false, // Allow development statements e.g. `console.log();`. | ||
"dojo" : false, // Enable globals exposed by Dojo Toolkit. | ||
"jquery" : false, // Enable globals exposed by jQuery JavaScript library. | ||
"mootools" : false, // Enable globals exposed by MooTools JavaScript framework. | ||
"node" : false, // Enable globals available when code is running inside of the NodeJS runtime environment. | ||
"nonstandard" : false, // Define non-standard but widely adopted globals such as escape and unescape. | ||
"prototypejs" : false, // Enable globals exposed by Prototype JavaScript framework. | ||
"rhino" : false, // Enable globals available when your code is running inside of the Rhino runtime environment. | ||
"worker" : false, // Enable globals available when your code is running as a WebWorker. | ||
"wsh" : false, // Enable globals available when your code is running as a script for the Windows Script Host. | ||
"yui" : false, // Enable globals exposed by YUI library. | ||
|
||
// == JSLint Legacy =================================================== | ||
// | ||
// These options are legacy from JSLint. Aside from bug fixes they will | ||
// not be improved in any way and might be removed at any point. | ||
|
||
"nomen" : false, // Prohibit use of initial or trailing underbars in names. | ||
"onevar" : false, // Allow only one `var` statement per function. | ||
"passfail" : false, // Stop on first error. | ||
"white" : false // Check against strict whitespace and indentation rules. | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
# How to contribute | ||
|
||
Please read this short guide to contributing before performing pull requests or reporting issues. The purpose | ||
of this guide is to ensure the best experience for all involved and make development as smooth as possible. | ||
|
||
|
||
## Reporting issues | ||
|
||
To report a bug, request a feature, or even ask a question, make use of the [GitHub Issues][10] in this repo. | ||
When submitting an issue please take the following steps: | ||
|
||
**1. Search for existing issues.** Your bug may have already been fixed or addressed in an unreleased version, so | ||
be sure to search the issues first before putting in a duplicate issue. | ||
|
||
**2. Create an isolated and reproducible test case.** If you are reporting a bug, make sure you also have a minimal, | ||
runnable, code example that reproduces the problem you have. | ||
|
||
**3. Include a live example.** After narrowing your code down to only the problem areas, make use of [jsFiddle][11], | ||
[jsBin][12], or a link to your live site so that we can view a live example of the problem. | ||
|
||
**4. Share as much information as possible.** Include browser/node version affected, your OS, version of the library, | ||
steps to reproduce, etc. "X isn't working!!!1!" will probably just be closed. | ||
|
||
[10]: https://github.com/pixijs/pixi-spine/issues | ||
[11]: http://jsfiddle.net | ||
[12]: http://jsbin.com/ | ||
|
||
|
||
## Making Changes | ||
|
||
To build the library you will need to download node.js from [nodejs.org][20]. After it has been installed open a | ||
console and run `npm install -g gulp` to install the global `gulp` executable. | ||
|
||
After that you can clone the repository and run `npm install` inside the cloned folder. This will install | ||
dependencies necessary for building the project. You can rebuild the project by running `gulp` in the cloned | ||
folder. | ||
|
||
Once that is ready, you can make your changes and submit a Pull Request: | ||
|
||
- **Send Pull Requests to the `master` branch.** All Pull Requests must be sent to the `master` branch, which is where | ||
all "bleeding-edge" development takes place. | ||
|
||
- **Ensure changes are jshint validated.** Our JSHint configuration file is provided in the repository and you | ||
should check against it before submitting. This should happen automatically when running `gulp` in the repo directory. | ||
|
||
- **Never commit new builds.** When making a code change you should always run `gulp` which will rebuild the project | ||
so you can test, *however* please do not commit the new builds placed in `dist/` or your PR will be closed. By default | ||
the build process will output to an ignored folder (`build/`) you should be fine. | ||
|
||
- **Only commit relevant changes.** Don't include changes that are not directly relevant to the fix you are making. | ||
The more focused a PR is, the faster it will get attention and be merged. Extra files changing only whitespace or | ||
trash files will likely get your PR closed. | ||
|
||
[20]: http://nodejs.org | ||
|
||
|
||
## Quickie Code Style Guide | ||
|
||
Use EditorConfig and JSHint! Both tools will ensure your code is in the required styles! Either way, here are some tips: | ||
|
||
- Use 4 spaces for tabs, never tab characters. | ||
|
||
- No trailing whitespace, blank lines should have no whitespace. | ||
|
||
- Always favor strict equals `===` unless you *need* to use type coercion. | ||
|
||
- Follow conventions already in the code, and listen to jshint. Our config is set-up for a reason. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
Copyright (c) 2015, Mat Groves | ||
|
||
Permission to use, copy, modify, and/or distribute this software for any purpose with | ||
or without fee is hereby granted, provided that the above copyright notice and this | ||
permission notice appear in all copies. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD | ||
TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN | ||
NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL | ||
DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER | ||
IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN | ||
CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | ||
|
||
Source: http://opensource.org/licenses/ISC |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,18 @@ | ||
# pixi-spine | ||
Pixi.js plugin that enables Spine support. | ||
# pixi-spine.js | ||
|
||
Spine implementation for pixi v3 | ||
|
||
## Building | ||
|
||
You will need to have [node][node] and [gulp][gulp] setup on your machine. | ||
|
||
Then you can install dependencies and build: | ||
|
||
```js | ||
npm i && npm run build | ||
``` | ||
|
||
That will output the built distributables to `./dist`. | ||
|
||
[node]: http://nodejs.org/ | ||
[gulp]: http://gulpjs.com/ |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.