This repository was archived by the owner on Sep 5, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Custom Patterns
Cornelis G. A. Kolbach edited this page Nov 12, 2015
·
2 revisions
Patterns wants to make it easy to program new interaction patterns and add them to your project. It allows you to use the bundling mechanism and to use the Patterns properties parser if you want to use that.
Here's how you create a new Pattern.
Each custom Pattern should go into its own folder inside '/src/patterns/name-of-your-custom-pattern'.
Consult the Patterns documentation for how to program a Pattern or how to turn an existing Jquery plugin into a Pattern.
- Open the file '/main.js' in your editor. Create a new line under
paths, under// Project Patternsthat contains the name and path to your Pattern. - Open the file '/bundle-config.js' in your editor. Create a new line under
define([with the name of your Pattern. This will make sure that your script is included in the bundle.
Run the make bundle command in your project folder to create a new bundle that includes your new Pattern.