Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade build process to Rollup #130

Merged
merged 8 commits into from
May 12, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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