Skip to content

pinf/pinf-for-jquery

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Status: DEV

PINF JavaScript Loader for jQuery

A jQuery plugin for loading PINF JavaScript Bundles.

Install

npm install pinf-for-jquery

Usage

http://localhost/index.html

<script src="jquery.js"></script>
<script src="pinf.jquery.js"></script>
<script>
    $.pinf.sandbox("bundle.js", function(sandbox) {
        sandbox.main();
    });
</script>

http://localhost/bundle.js

PINF.bundle("", function(require) {
    require.memoize("/main.js", function(require, exports, module) {
        exports.main = function(options) {
            console.log("HelloWorld!");
        }
    });
});

Test & Development

Requirements:

Run tests:

make test

Launch development workspace:

make run-dev
open http://localhost:8080/

Build

make build

License

UNLICENSE