All Projects → fastify → fastify-bankai

fastify / fastify-bankai

Licence: MIT license
Bankai assets compiler for Fastify

Programming Languages

javascript
184084 projects - #8 most used programming language
HTML
75241 projects

Projects that are alternatives of or similar to fastify-bankai

Bankai
🚉 - friendly web compiler
Stars: ✭ 1,064 (+6993.33%)
Mutual labels:  browserify, assets
SecureAssetDownload
Craft CMS plugin for secure asset download URLs
Stars: ✭ 22 (+46.67%)
Mutual labels:  assets
gupack
基于gulp的前端构建工具
Stars: ✭ 13 (-13.33%)
Mutual labels:  browserify
laravel-theme
This package creates multiple managed theme infrastructure for Laravel.
Stars: ✭ 19 (+26.67%)
Mutual labels:  assets
cypress-browserify-preprocessor
Cypress preprocessor for bundling JavaScript via browserify
Stars: ✭ 23 (+53.33%)
Mutual labels:  browserify
RxAssetManager
An RxJava2 implementation of the Android AssetManager.
Stars: ✭ 53 (+253.33%)
Mutual labels:  assets
pug-symfony
Pug (Jade) template engine for Symfony
Stars: ✭ 40 (+166.67%)
Mutual labels:  assets
serverless-plugin-browserifier
Reduce the size and speed up your Node.js based lambda's using browserify.
Stars: ✭ 26 (+73.33%)
Mutual labels:  browserify
browserify-test
An easy way to test front-end libraries using browserify and mocha
Stars: ✭ 37 (+146.67%)
Mutual labels:  browserify
serverless-s3bucket-sync
Serverless Plugin to sync local folders with an S3 bucket
Stars: ✭ 24 (+60%)
Mutual labels:  assets
puppeteer-assets
Measuring and monitor assets metrics using Puppeteer and Prometheus
Stars: ✭ 29 (+93.33%)
Mutual labels:  assets
typedarray-to-buffer
Convert a typed array to a Buffer without a copy.
Stars: ✭ 64 (+326.67%)
Mutual labels:  browserify
mocaccino.js
Mocha test runner as a Browserify plugin
Stars: ✭ 22 (+46.67%)
Mutual labels:  browserify
assetic
Asset Management for PHP
Stars: ✭ 61 (+306.67%)
Mutual labels:  assets
LoanJS
Calculate loan in js (browser/node.js) for equal installments, installments decreasing, the sum of interest, etc.
Stars: ✭ 20 (+33.33%)
Mutual labels:  browserify
Riot-Games-API-Developer-Assets
Riot Games API Developer Assets!
Stars: ✭ 23 (+53.33%)
Mutual labels:  assets
titaniumifier
Get a Titanium™ SDK CommonJS module out of a Node package!
Stars: ✭ 95 (+533.33%)
Mutual labels:  browserify
Unity TransparentWindowManager
Make Unity's window transparent and overlay on desktop.
Stars: ✭ 91 (+506.67%)
Mutual labels:  assets
OCSInventory-Docker-Image
Docker image for OCSInventory Server
Stars: ✭ 54 (+260%)
Mutual labels:  assets
assets
Assets management
Stars: ✭ 17 (+13.33%)
Mutual labels:  assets

fastify-bankai

js-standard-style Build Status Greenkeeper badge

If you need to compile (browserify style!) your code, this plugin is for you! Internally it uses bankai, so refer to its documentation for the options.

fastify-bankai will automatically live-reload your HTML and regenerate your bundle whenever your code change. This can be disabled in test or in production.

Install

npm i fastify-bankai --save

Usage

Simply require this plugin, pass the entry file and you are done!

const fastify = require('fastify')()

fastify.register(require('fastify-bankai'), {
  entry: './client.js'
})

fastify.listen(3000, err => {
  if (err) throw err
  console.log('Server listenting on localhost:', fastify.server.address().port)
})

In tests or in production

If you are including fastify-bankai in any test run or in production, you must disable the automatic watch mode:

const fastify = require('fastify')()

fastify.register(require('fastify-bankai'), {
  entry: './client.js',
  watch: false
})

fastify.listen(3000, err => {
  if (err) throw err
  console.log('Server listenting on localhost:', fastify.server.address().port)
})

Options

  • entry: Your application entry point
  • prefix: prefix all paths served by fastify-bankai with the given path

The option object is passed directly to bankai.

Acknowledgements

This project is kindly sponsored by:

License

Licensed under MIT.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].