Skip to content

Commit

Permalink
Next Restructure for v5 (#4387)
Browse files Browse the repository at this point in the history
* Reorganized files

* Adds new files

* Adds new files

* Updated to next-lerna

* Linting fixes, disable deprecations

* Created bundles and plugins folders

* Adds polyfill plugin

* Test pass

* Better build dest selection

* Externalized fragment shaders and vertex shaders

* Renamed plugins to packages

* Creates core package, updates Rollup version

* Reorganized pixi.js into packages

* Added packages, readmes, licenses for all packages

* Resolve minor build, dependency issues

* Ignore non-first comments with uglify

* Fixes fragment dependencies

* Adds settings, constants, utils, math, display, app

* Fixes import issues with core

* Fixes build all modules, updates deprecations

* Fixes listing issues

* Temporarily disable coverage

* Broke up tests

* Rename GeometryBuffer to Buffer

* Fixes tests for all

* Remove placeholder test

* Adds test for constants

* Add test for accessibility

* Created integrations tests

* Travis-friendly test concurrency

* Un-did concurrency for tests

* Better tester shebang

* Temporarily disable tests for mesh

* Log out floss error

* Moves filters to new filters root folder

* Combines premultiply, deprecates PIXI.extras namespace

* Documentation fixes

* Moves integration tests to tools

* TimeLimiter test is too unstable for slow environments
  • Loading branch information
bigtimebuddy committed Oct 31, 2017
1 parent db0caa6 commit 64ca373
Show file tree
Hide file tree
Showing 541 changed files with 6,564 additions and 4,321 deletions.
9 changes: 0 additions & 9 deletions .babelrc

This file was deleted.

1 change: 0 additions & 1 deletion .eslintignore

This file was deleted.

6 changes: 3 additions & 3 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
"env": {
"es6": true,
"browser": true,
"node": true
"node": true,
"mocha": true
},
"globals": {
"global": false,
"__VERSION__": false
"global": false
},
"parserOptions": {
"ecmaVersion": 6,
Expand Down
File renamed without changes.
File renamed without changes.
21 changes: 21 additions & 0 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<!--
Thank you for reporting an issue!
Before opening an issue _please_ check if a similar issue exists by
searching existing issues (https://github.com/pixijs/pixi.js/issues).
If possible, please provide code that demonstrates the problem.
Links to a running example of the problem are best!
Before submitting please read:
Contributors guide: https://github.com/pixijs/pixi.js/blob/dev/.github/CONTRIBUTING.md
Code of Conduct: https://github.com/pixijs/pixi.js/blob/dev/.github/CODE_OF_CONDUCT.md
-->

- **Library Version**: _version_
- **Browser & Version**: _version_
- **OS & Version**: _version_
- **Running Example**: _url_

<!-- Enter your issue details below this comment. -->
21 changes: 21 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<!--
Thank you for your pull request!
Bug fixes and new features should include tests and possibly benchmarks.
Before submitting please read:
Contributors guide: https://github.com/Fae/fae/blob/master/CONTRIBUTING.md
Code of Conduct: https://github.com/Fae/fae/blob/master/CODE_OF_CONDUCT.md
-->

##### Description of change
<!-- Provide a description of the change below this comment. -->

##### Pre-Merge Checklist
<!-- Remove items that do not apply. For completed items, change [ ] to [x]. -->

- [ ] Tests and/or benchmarks are included
- [ ] Documentation is changed or added
- [ ] Lint process passed (`npm run lint`)
- [ ] Tests passed (`npm run test`)
10 changes: 4 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
Thumbs.db
Desktop.ini
npm-debug.log
lerna-debug.log

# project files
.project
Expand All @@ -22,12 +23,9 @@ npm-debug.log
!.gitkeep
*__temp
node_modules
/docs
/examples_old
/bin
/coverage
/lib
/dist
docs
coverage
lib

# jetBrains IDE ignores
.idea
Empty file removed .npmignore
Empty file.
86 changes: 43 additions & 43 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
language: node_js
node_js:
- "4"
- "6"

env:
- CXX=g++-4.8
Expand Down Expand Up @@ -38,7 +38,7 @@ deploy:
acl: public_read
region: eu-west-1
cache_control: "max-age=60"
local_dir: dist
local_dir: bundles/pixi.js/lib
upload-dir: "$TRAVIS_BRANCH"
on:
all_branches: true
Expand All @@ -56,19 +56,19 @@ deploy:
on:
all_branches: true
condition: -z $TRAVIS_TAG
- provider: s3
access_key_id: $S3_ACCESS_KEY_ID
secret_access_key: $S3_SECRET_ACCESS_KEY
bucket: "pixi.js"
skip_cleanup: true
acl: public_read
region: eu-west-1
cache_control: "max-age=60"
local_dir: coverage
upload-dir: "$TRAVIS_BRANCH/coverage"
on:
all_branches: true
condition: -z $TRAVIS_TAG
# - provider: s3
# access_key_id: $S3_ACCESS_KEY_ID
# secret_access_key: $S3_SECRET_ACCESS_KEY
# bucket: "pixi.js"
# skip_cleanup: true
# acl: public_read
# region: eu-west-1
# cache_control: "max-age=60"
# local_dir: bundles/pixi.js/coverage
# upload-dir: "$TRAVIS_BRANCH/coverage"
# on:
# all_branches: true
# condition: -z $TRAVIS_TAG
# Deploy config for tagged releases
- provider: s3
access_key_id: $S3_ACCESS_KEY_ID
Expand All @@ -78,7 +78,7 @@ deploy:
acl: public_read
region: eu-west-1
cache_control: "max-age=2592000"
local_dir: dist
local_dir: bundles/pixi.js/lib
upload-dir: "$TRAVIS_BRANCH"
on:
all_branches: true
Expand All @@ -96,19 +96,19 @@ deploy:
on:
all_branches: true
condition: $TRAVIS_TAG
- provider: s3
access_key_id: $S3_ACCESS_KEY_ID
secret_access_key: $S3_SECRET_ACCESS_KEY
bucket: "pixi.js"
skip_cleanup: true
acl: public_read
region: eu-west-1
cache_control: "max-age=2592000"
local_dir: coverage
upload-dir: "$TRAVIS_BRANCH/coverage"
on:
all_branches: true
condition: $TRAVIS_TAG
# - provider: s3
# access_key_id: $S3_ACCESS_KEY_ID
# secret_access_key: $S3_SECRET_ACCESS_KEY
# bucket: "pixi.js"
# skip_cleanup: true
# acl: public_read
# region: eu-west-1
# cache_control: "max-age=2592000"
# local_dir: bundles/pixi.js/coverage
# upload-dir: "$TRAVIS_BRANCH/coverage"
# on:
# all_branches: true
# condition: $TRAVIS_TAG
# Deploy config for latest release
- provider: s3
access_key_id: $S3_ACCESS_KEY_ID
Expand All @@ -118,7 +118,7 @@ deploy:
acl: public_read
region: eu-west-1
cache_control: "max-age=1209600"
local_dir: dist
local_dir: bundles/pixi.js/lib
upload-dir: "release"
on:
all_branches: true
Expand All @@ -136,16 +136,16 @@ deploy:
on:
all_branches: true
condition: $TRAVIS_TAG
- provider: s3
access_key_id: $S3_ACCESS_KEY_ID
secret_access_key: $S3_SECRET_ACCESS_KEY
bucket: "pixi.js"
skip_cleanup: true
acl: public_read
region: eu-west-1
cache_control: "max-age=1209600"
local_dir: coverage
upload-dir: "release/coverage"
on:
all_branches: true
condition: $TRAVIS_TAG
# - provider: s3
# access_key_id: $S3_ACCESS_KEY_ID
# secret_access_key: $S3_SECRET_ACCESS_KEY
# bucket: "pixi.js"
# skip_cleanup: true
# acl: public_read
# region: eu-west-1
# cache_control: "max-age=1209600"
# local_dir: bundles/pixi.js/coverage
# upload-dir: "release/coverage"
# on:
# all_branches: true
# condition: $TRAVIS_TAG
17 changes: 1 addition & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -160,22 +160,7 @@ $> npm install
Then, to build the source, run:

```
$> npm run dist
```

This will create a minified version at `dist/pixi.min.js` and a non-minified version at `dist/pixi.js`
with all the plugins in the PixiJS project.

If there are specific plugins you don't want, say "interaction" or "extras", you can exclude those:

```
$> npm run dist -- --exclude extras --exclude interaction
```

You can also use the short-form `-e`:

```
$> npm run dist -- -e extras -e interaction -e filters
$> npm run build
```

### How to generate the documentation ###
Expand Down
21 changes: 21 additions & 0 deletions bundles/pixi.js/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
The MIT License

Copyright (c) 2013-2017 Mathew Groves, Chad Engler

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
66 changes: 66 additions & 0 deletions bundles/pixi.js/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
PixiJS — The HTML5 Creation Engine
=============

![pixi.js logo](http://www.goodboydigital.com/pixijs/pixiV4_wide_full.jpg)

[![Inline docs](http://inch-ci.org/github/pixijs/pixi.js.svg?branch=dev)](http://inch-ci.org/github/pixijs/pixi.js)
[![Build Status](https://travis-ci.org/pixijs/pixi.js.svg?branch=dev)](https://travis-ci.org/pixijs/pixi.js)

The aim of this project is to provide a fast lightweight 2D library that works
across all devices. The PixiJS renderer allows everyone to enjoy the power of
hardware acceleration without prior knowledge of WebGL. Also, it's fast. Really fast.

**Your support helps us make PixiJS even better. Make your pledge on [Patreon](https://www.patreon.com/user?u=2384552&ty=h&u=2384552) and we'll love you forever!**

### Setup

PixiJS can be installed with [npm](https://docs.npmjs.com/getting-started/what-is-npm) to integration with [Webpack](https://webpack.js.org/), [Browserify](http://browserify.org/), [Rollup](https://rollupjs.org/), [Electron](https://electron.atom.io/), [NW.js](https://nwjs.io/) or other module backed environments.

#### Install

```
$> npm install pixi.js
```

### Basic Usage Example

```js
// The application will create a renderer using WebGL, if possible,
// with a fallback to a canvas render. It will also setup the ticker
// and the root stage PIXI.Container.
const app = new PIXI.Application();

// The application will create a canvas element for you that you
// can then insert into the DOM.
document.body.appendChild(app.view);

// load the texture we need
PIXI.loader.add('bunny', 'bunny.png').load((loader, resources) => {

// This creates a texture from a 'bunny.png' image.
const bunny = new PIXI.Sprite(resources.bunny.texture);

// Setup the position of the bunny
bunny.x = app.renderer.width / 2;
bunny.y = app.renderer.height / 2;

// Rotate around the center
bunny.anchor.x = 0.5;
bunny.anchor.y = 0.5;

// Add the bunny to the scene we are building.
app.stage.addChild(bunny);

// Listen for frame updates
app.ticker.add(() => {
// each frame we spin the bunny around a bit
bunny.rotation += 0.01;
});
});
```

### License

This content is released under the (http://opensource.org/licenses/MIT) MIT License.

[![Analytics](https://ga-beacon.appspot.com/UA-39213431-2/pixi.js/index)](https://github.com/igrigorik/ga-beacon)
Loading

0 comments on commit 64ca373

Please sign in to comment.