Skip to content

pinf/pinf-for-dojo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Status: DEV Circle CI

PINF JavaScript Loader for Dojo 2

A Dojo 2 Loader plugin for loading PINF JavaScript Bundles.

Any portable bundle may be loaded. Modules and packages written for Dojo may also be bundled and loaded via the PINF JavaScript Bundle Loader potentially eliminating the need for the Dojo loader.

Install

npm install pinf-for-dojo

Usage

http://localhost/index.html

<script src="dojo/loader.js"></script>
<script>
    require({
        paths: {
            pinf: "pinf.require"
        }
    }, [
        "pinf!bundle"
    ], 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:

npm test

Launch development workspace:

npm run dev
open http://localhost:8080/

Build

npm run build

License

UNLICENSE

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published