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

Commit

Permalink
Update to decor 0.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
clmath committed May 12, 2015
1 parent ec4ccd2 commit 8cf9088
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 7 deletions.
24 changes: 22 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,10 @@ Then install dependencies with bower (or manually from github if you prefer to):

## How to use

To load the minified layer you need to wrap your main `require` call with another `require`, requiring `"decor-build/layer"`. Then you should continue to
refer to modules with `"decor/foo"`.
### `baseUrl` is the directory containing `decor-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 `"decor-build/layer"`.
Then you should continue to refer to modules with `"decor/foo"`.

For example, this code:
```js
Expand All @@ -42,6 +44,24 @@ require(["decor-build/layer"], function() {
});
```

### Other `baseUrl`

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

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


## Bug reporting

Issues should be filled against the source version of this project at [ibm-js/decor](https://github.com/ibm-js/decor)


## Licensing

This project is distributed by the Dojo Foundation and licensed under the ["New" BSD License](./LICENSE).
Expand Down
4 changes: 2 additions & 2 deletions bower.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"name": "decor-build",
"version": "0.5.0",
"version": "0.6.0",
"dependencies": {
"requirejs": "2.1.x"
},
"devDependencies": {
"decor": "0.5.0"
"decor": "0.6.0"
},
"ignore": [
".jshintrc",
Expand Down
4 changes: 2 additions & 2 deletions layer.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion layer.map

Large diffs are not rendered by default.

0 comments on commit 8cf9088

Please sign in to comment.