Skip to content

Commit a296b12

Browse files
Merge pull request #389 from dtaylor113/branch-4.0-dev
(Angular) Branch 4.0 dev merge
2 parents a3913cc + bc3a76f commit a296b12

File tree

16 files changed

+44
-1098
lines changed

16 files changed

+44
-1098
lines changed

README.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,38 @@ Note:
8989
'patternfly.charts'
9090
]);
9191

92+
### Using with Webpack
93+
94+
In order to use Angular-Patternfly in a Webpack-bundled application there are some things you need to keep in mind:
95+
96+
#### Create an alias for the jQuery module
97+
98+
In order to let Webpack find the correct jQuery module when assembling all the dependencies you need to create an alias for it in the webpack.conf.js file:
99+
100+
```
101+
...
102+
resolve: {
103+
alias: {
104+
"jquery": "angular-patternfly/node_modules/patternfly/node_modules/jquery"
105+
}
106+
}
107+
...
108+
```
109+
110+
Additionally, you have to use the `webpack.ProvidePlugin` so the $ and the jQuery variables are added to the `window` object, making them available to the other modules (Patternfly included):
111+
```
112+
...
113+
plugins: [
114+
new webpack.ProvidePlugin({
115+
$: "jquery",
116+
jQuery: "jquery",
117+
"window.jQuery": "jquery",
118+
"window.jquery": "jquery"
119+
})
120+
]
121+
...
122+
```
123+
92124
## API documentation
93125

94126
The API documentation can be built with:

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,6 @@
4949
},
5050
"devDependencies": {
5151
"angular-mocks": "1.5.*",
52-
"angular-ui-router": "^0.3.2"
52+
"angular-ui-router": "^1.0.0-beta.3"
5353
}
5454
}

misc/examples.css

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -60,14 +60,6 @@ hr {
6060
padding-top: 2px;
6161
}
6262

63-
.list-view-container span {
64-
padding-left: 5px;
65-
}
66-
67-
.list-view-container .fa {
68-
padding-left: 0px;
69-
}
70-
7163
.card-view-container {
7264
border: 1px solid #000000;
7365
margin: 10px;

scripts/build.sh

Lines changed: 0 additions & 81 deletions
This file was deleted.

scripts/publish.sh

Lines changed: 0 additions & 85 deletions
This file was deleted.

scripts/release/README.md

Lines changed: 0 additions & 43 deletions
This file was deleted.

scripts/release/build.sh

Lines changed: 0 additions & 123 deletions
This file was deleted.

0 commit comments

Comments
 (0)