Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/maolion/weboot
- Owner: maolion
- Created: 2017-09-24T06:00:47.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-11-02T19:56:15.000Z (about 7 years ago)
- Last Synced: 2024-11-28T06:08:27.747Z (2 months ago)
- Topics: bootstrap, spa, weboot
- Language: TypeScript
- Homepage:
- Size: 28.3 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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**