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

Commit

Permalink
Update to delite 0.7.1
Browse files Browse the repository at this point in the history
  • Loading branch information
clmath committed May 12, 2015
1 parent 69b6731 commit bf5837f
Show file tree
Hide file tree
Showing 7 changed files with 40 additions and 20 deletions.
26 changes: 24 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 `"delite-build/layer"`. Then you should continue to
refer to modules with `"delite/foo"`.
### `baseUrl` is the directory containing `delite-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 `"delite-build/layer"`.
Then you should continue to refer to modules with `"delite/foo"`.

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

### Other `baseUrl`

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

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


## Bug reporting

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


## Licensing

This project is distributed by the Dojo Foundation and licensed under the ["New" BSD License](./LICENSE).
Expand Down
6 changes: 3 additions & 3 deletions bower.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"name": "delite-build",
"version": "0.6.0",
"version": "0.7.1",
"dependencies": {
"jquery": ">=2.1",
"requirejs": "2.1.x",
"decor-build": "0.5.x",
"decor-build": "0.6.x",
"dpointer-build": "0.5.x"
},
"devDependencies": {
"delite": "0.6.0"
"delite": "0.7.1"
},
"keywords": [
"web-components",
Expand Down
8 changes: 4 additions & 4 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.

8 changes: 2 additions & 6 deletions samples/ExampleWidget.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,9 @@
}
}
},[
"delite/register",
"delite/samples/ExampleWidget",
"delite/theme!delite/themes/{{theme}}/global.css", // page level CSS
"requirejs-domready/domReady!"
], function (register) {
register.parse();
});
"delite/theme!delite/themes/{{theme}}/global.css" // page level CSS
]);
</script>

</head>
Expand Down
8 changes: 5 additions & 3 deletions samples/ExampleWidget.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,12 @@ define([
"requirejs-dplugins/has!bidi?delite/theme!./ExampleWidget/themes/{{theme}}/ExampleWidget_rtl.css"
], function (register, CssState, template) {

/**
* Example widget for testing and as template for new widgets.
* @class module:delite/samples/ExampleWidget
* @augments module:delite/CssState
*/
return register("d-example", [HTMLElement, CssState], {
// summary:
// Example widget for testing and as template for new widgets.

template: template,

baseClass: "d-example-widget"
Expand Down
2 changes: 1 addition & 1 deletion themes/layer_bootstrap.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit bf5837f

Please sign in to comment.