Skip to content
This repository has been archived by the owner on Feb 2, 2020. It is now read-only.

ibm-js/dpointer-build

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dpointer-build

Build version of ibm-js/dpointer.

Status

No official release yet.

Installation

Bower release installation:

$ bower install dpointer-build

Manual master installation:

$ git clone git://github.com/ibm-js/dpointer-build.git

Then install dependencies with bower (or manually from github if you prefer to):

$ cd dpointer-build
$ bower install

How to use

baseUrl is the directory containing dpointer-build.

This is the most common use-case so the needed configuration is built in the layer. To load the minified layer you just need to wrap your main require call with another require, requiring "dpointer-build/layer". Then you should continue to refer to modules with "dpointer/foo".

For example, this code:

require(["app/main", "dpointer/foo"], function() {
	...
});

Becomes:

require(["dpointer-build/layer"], function() {
	require(["app/main", "dpointer/foo"], function() {
		...
	});
});

Other baseUrl

If baseUrl is not the directory containing dpointer-build, custom configuration is needed.

require.config({
	paths: {
		"dpointer": "path/to/dpointer-build"
	}
});

Bug reporting

Issues should be filled against the source version of this project at ibm-js/dpointer

Licensing

This project is distributed by the Dojo Foundation and licensed under the "New" BSD License. All contributions require a Dojo Foundation CLA.