Skip to content

Commit

Permalink
Upgrade build process to Rollup (#130)
Browse files Browse the repository at this point in the history
* WIP

* Support bundle, clearning typings

* Adds watch command

* Fixes export test

* Updates typings to add signals import

* Clean up build commands for Travis

* Remove gulp references from readme

* Bumped sinon, mocha and karma to latest versions
  • Loading branch information
bigtimebuddy authored and englercj committed May 12, 2019
1 parent 3a2a8d7 commit 60539c6
Show file tree
Hide file tree
Showing 21 changed files with 3,666 additions and 2,160 deletions.
3 changes: 0 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,4 @@ install:
- npm install

script:
- npm run lint
- npm run build
- npm run minify
- npm test
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ A generic resource loader, made with web games in mind.

```js
// ctor
import { Loader, middleware } from 'resource-loader';

const loader = new Loader();

loader
Expand All @@ -14,11 +16,11 @@ loader

// Chainable `pre` to add a middleware that runs for each resource, *before* loading that resource.
// This is useful to implement custom caching modules (using filesystem, indexeddb, memory, etc).
.pre(cachingMiddleware)
.pre(middleware.caching)

// Chainable `use` to add a middleware that runs for each resource, *after* loading that resource.
// This is useful to implement custom parsing modules (like spritesheet parsers, spine parser, etc).
.use(parsingMiddleware)
.use(middleware.parsing)

// The `load` method loads the queue of resources, and calls the passed in callback called once all
// resources have loaded.
Expand All @@ -40,7 +42,7 @@ loader.onComplete.add(() => {}); // called once when the queued resources all lo

## Building

You will need to have [node][node] and [gulp][gulp] setup on your machine.
You will need to have [node][node] setup on your machine.

Then you can install dependencies and build:

Expand All @@ -51,7 +53,6 @@ npm i && npm run build
That will output the built distributables to `./dist`.

[node]: http://nodejs.org/
[gulp]: http://gulpjs.com/

## Supported Browsers

Expand Down
2 changes: 1 addition & 1 deletion jsdoc.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
},
"plugins": [
"plugins/markdown",
"./scripts/jsdoc-plugin-es6"
"@pixi/jsdoc-template/plugins/es6-fix"
],
"templates": {
"cleverLinks" : false,
Expand Down
Loading

0 comments on commit 60539c6

Please sign in to comment.