Skip to content

Commit 6ef96ca

Browse files
committed
Use npm for dependencies instead of bower
1 parent c50a179 commit 6ef96ca

25 files changed

+70
-81
lines changed

.codeclimate.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ languages:
44
PHP: false
55
exclude_paths:
66
- "dist/*"
7-
- "bower_components/*"
87
- "node_modules/*"
98
- "gulpfile.js"
109
- "examples/*"

.dockerignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
1-
bower_components/
21
coverage/
32
node_modules/

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
.idea/
22
node_modules/
33
test/fixtures/shots/
4-
bower_components/
54
coverage/
65
examples/bundle.js

.jscsrc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@
7171
"disallowKeywords": [ "with" ],
7272

7373
"excludeFiles": [
74-
"bower_components/**",
7574
"node_modules/**",
7675
"dist/**",
7776
"coverage/**",

.jshintignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
bower_components/
21
node_modules/
32
dist/
43
tmp/

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ WORKDIR /src
33
ADD . ./
44
RUN chown -R node:node /src
55
USER node
6-
RUN npm install && npm install bower && ./node_modules/bower/bin/bower install
6+
RUN npm install
77
CMD ["npm", "test"]

README.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,6 @@ there are numerous breaking changes in this version notably:
2626
* `$scope.$apply` is not called anymore on mouse hover functions calls
2727
* obviously all Chart.js breaking changes as well in how options are set, etc.
2828

29-
### bower
30-
31-
bower install --save angular-chart.js
32-
3329
### npm
3430

3531
npm install --save angular-chart.js
@@ -53,7 +49,7 @@ adding the dependencies for Angular and Chart.js first:
5349
...
5450
</body>
5551
<script src="node_modules/angular/angular.min.js"></script>
56-
<script src="node_modules/Chart.js/Chart.min.js"></script>
52+
<script src="node_modules/chart.js/Chart.min.js"></script>
5753
<script src="node_modules/angular-chart.js/dist/angular-chart.min.js"></script>
5854
```
5955

bower.json

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,5 @@
4040
"dependencies": {
4141
"angular": "1.x",
4242
"Chart.js": "2.x"
43-
},
44-
"devDependencies": {
45-
"angular-bootstrap": "~0.11.0",
46-
"angular-mocks": "~1.x",
47-
"font-awesome": "~4.1.0",
48-
"rainbow": "~1.1.9",
49-
"requirejs": "~2.1.20"
5043
}
5144
}

examples/amd.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@
2121
</div>
2222
</div>
2323

24-
<script data-main="amd" src="../bower_components/requirejs/require.js"></script>
24+
<script data-main="amd" src="../node_modules/requirejs/require.js"></script>
2525
</body>
2626
</html>

examples/amd.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33

44
require.config({
55
paths: {
6-
angular: '../bower_components/angular/angular.min',
7-
chart: '../bower_components/Chart.js/dist/Chart',
6+
angular: '../node_modules/angular/angular.min',
7+
chart: '../node_modules/chart.js/dist/Chart',
88
'angular-chart': '../angular-chart'
99
},
1010
shim: {

0 commit comments

Comments
 (0)