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

Commit bf5837f

Browse files
committed
Update to delite 0.7.1
1 parent 69b6731 commit bf5837f

7 files changed

+40
-20
lines changed

README.md

+24-2
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,10 @@ Then install dependencies with bower (or manually from github if you prefer to):
2424

2525
## How to use
2626

27-
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
28-
refer to modules with `"delite/foo"`.
27+
### `baseUrl` is the directory containing `delite-build`.
28+
This is the most common use-case so the needed configuration is built in the layer.
29+
To load the minified layer you just need to wrap your main `require` call with another `require`, requiring `"delite-build/layer"`.
30+
Then you should continue to refer to modules with `"delite/foo"`.
2931

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

47+
### Other `baseUrl`
48+
49+
If `baseUrl` is not the directory containing `delite-build`, custom configuration is needed.
50+
51+
```js
52+
require.config({
53+
paths: {
54+
"delite": "path/to/delite-build",
55+
"decor": "path/to/decor-build",
56+
"dpointer": "path/to/dpointer-build"
57+
}
58+
});
59+
```
60+
61+
62+
## Bug reporting
63+
64+
Issues should be filled against the source version of this project at [ibm-js/delite](https://github.com/ibm-js/delite)
65+
66+
4567
## Licensing
4668

4769
This project is distributed by the Dojo Foundation and licensed under the ["New" BSD License](./LICENSE).

bower.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
{
22
"name": "delite-build",
3-
"version": "0.6.0",
3+
"version": "0.7.1",
44
"dependencies": {
55
"jquery": ">=2.1",
66
"requirejs": "2.1.x",
7-
"decor-build": "0.5.x",
7+
"decor-build": "0.6.x",
88
"dpointer-build": "0.5.x"
99
},
1010
"devDependencies": {
11-
"delite": "0.6.0"
11+
"delite": "0.7.1"
1212
},
1313
"keywords": [
1414
"web-components",

layer.js

+4-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

layer.map

+1-1
Large diffs are not rendered by default.

samples/ExampleWidget.html

+2-6
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,9 @@
2525
}
2626
}
2727
},[
28-
"delite/register",
2928
"delite/samples/ExampleWidget",
30-
"delite/theme!delite/themes/{{theme}}/global.css", // page level CSS
31-
"requirejs-domready/domReady!"
32-
], function (register) {
33-
register.parse();
34-
});
29+
"delite/theme!delite/themes/{{theme}}/global.css" // page level CSS
30+
]);
3531
</script>
3632

3733
</head>

samples/ExampleWidget.js

+5-3
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,12 @@ define([
66
"requirejs-dplugins/has!bidi?delite/theme!./ExampleWidget/themes/{{theme}}/ExampleWidget_rtl.css"
77
], function (register, CssState, template) {
88

9+
/**
10+
* Example widget for testing and as template for new widgets.
11+
* @class module:delite/samples/ExampleWidget
12+
* @augments module:delite/CssState
13+
*/
914
return register("d-example", [HTMLElement, CssState], {
10-
// summary:
11-
// Example widget for testing and as template for new widgets.
12-
1315
template: template,
1416

1517
baseClass: "d-example-widget"

themes/layer_bootstrap.css

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)