Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/maolion/weboot

Quickly and easily make a web application bootstrap program
https://github.com/maolion/weboot

bootstrap spa weboot

Last synced: about 2 months ago
JSON representation

Quickly and easily make a web application bootstrap program

Awesome Lists containing this project

README

        

# Weboot

Quickly and easily make a web application bootstrap program!

## Installation

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

## Usage

```sh
$ weboot --help
```

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

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

**boot.js**

```javascript

// 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]

```css
/* custom style code */
```

## Example

[weboot-example](https://github.com/maolion/weboot-example)

## License

MIT License.

----

**Enjoy it**