Skip to content

chasenlehara/steal-each-module-dest-function

Repository files navigation

steal-each-module-dest-function

Build Status

Usage

ES6 use

With StealJS, you can import this module directly in a template that is autorendered:

import plugin from 'steal-each-module-dest-function';

CommonJS use

Use require to load steal-each-module-dest-function and everything else needed to create a template that uses steal-each-module-dest-function:

var plugin = require("steal-each-module-dest-function");

AMD use

Configure the can and jquery paths and the steal-each-module-dest-function package:

<script src="require.js"></script>
<script>
	require.config({
	    paths: {
	        "jquery": "node_modules/jquery/dist/jquery",
	        "can": "node_modules/canjs/dist/amd/can"
	    },
	    packages: [{
		    	name: 'steal-each-module-dest-function',
		    	location: 'node_modules/steal-each-module-dest-function/dist/amd',
		    	main: 'lib/steal-each-module-dest-function'
	    }]
	});
	require(["main-amd"], function(){});
</script>

Standalone use

Load the global version of the plugin:

<script src='./node_modules/steal-each-module-dest-function/dist/global/steal-each-module-dest-function.js'></script>

Contributing

Making a Build

To make a build of the distributables into dist/ in the cloned repository run

npm install
node build

Releases

No releases published

Packages

No packages published