/weboot

Quickly and easily make a web application bootstrap program

Primary LanguageTypeScript

Weboot

Quickly and easily make a web application bootstrap program!

Installation

$ npm install weboot -g
# or
$ yarn global add weboot

Usage

$ weboot --help

Boot script usage (if you want to do ...)

$ weboot path/to/index.html -b boot.js

boot.js

// Invoked before resources start load
onReady(function(callback) {
  // ...
  callback(); // <-- required
});

// Invoked when the resource is loading
onProgress(function(percentage, resource) {
  // ...
});

// Invoked when the resource is load failed
onError(function(error) {
  // ...
});

// Invoked after all resources loaded
onDone(function() {
  // ...
});

boot.css [option]

/* custom style code */

Example

weboot-example

License

MIT License.


Enjoy it