3.0.0-pre.7 • Published 8 years ago

can-observe-info v3.0.0-pre.7

Weekly downloads
30
License
-
Repository
github
Last release
8 years ago

can-observe-info

Build Status

Core observable indicators

Usage

ES6 use

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

import plugin from 'can-observe-info';

CommonJS use

Use require to load can-observe-info and everything else needed to create a template that uses can-observe-info:

var plugin = require("can-observe-info");

AMD use

Configure the can and jquery paths and the can-observe-info 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: 'can-observe-info',
		    	location: 'node_modules/can-observe-info/dist/amd',
		    	main: 'lib/can-observe-info'
	    }]
	});
	require(["main-amd"], function(){});
</script>

Standalone use

Load the global version of the plugin:

<script src='./node_modules/can-observe-info/dist/global/can-observe-info.js'></script>

Contributing

Making a Build

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

npm install
node build

Running the tests

Tests can run in the browser by opening a webserver and visiting the test.html page. Automated tests that run the tests from the command line in Firefox can be run with

npm test
3.0.0-pre.7

8 years ago

3.0.0

8 years ago

3.0.0-pre.6

8 years ago

3.0.0-pre.5

8 years ago

3.0.0-pre.4

8 years ago

3.0.0-pre.3

8 years ago

3.0.0-pre.2

8 years ago

3.0.0-pre.1

8 years ago