Skip to content

Commit b7dd5ee

Browse files
committed
Remove bower dep
1 parent 0ca5492 commit b7dd5ee

File tree

6 files changed

+215
-180
lines changed

6 files changed

+215
-180
lines changed

Gruntfile.js

-19
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,6 @@ module.exports = function (grunt) {
2121

2222
// Watches files for changes and runs tasks based on the changed files
2323
watch: {
24-
bower: {
25-
files: ['bower.json'],
26-
tasks: ['bowerInstall']
27-
},
2824
js: {
2925
files: ['<%= config.app %>/scripts/{,*/}*.js'],
3026
options: {
@@ -68,7 +64,6 @@ module.exports = function (grunt) {
6864
middleware: function(connect) {
6965
return [
7066
connect.static('.tmp'),
71-
connect().use('/bower_components', connect.static('./bower_components')),
7267
connect.static(config.app)
7368
];
7469
}
@@ -101,9 +96,6 @@ module.exports = function (grunt) {
10196
sass: {
10297
options: {
10398
implementation: require('node-sass'),
104-
loadPath: [
105-
'bower_components'
106-
]
10799
},
108100
dist: {
109101
files: [{
@@ -140,17 +132,6 @@ module.exports = function (grunt) {
140132
}
141133
},
142134

143-
// Automatically inject Bower components into the HTML file
144-
bowerInstall: {
145-
app: {
146-
src: ['<%= config.app %>/index.html'],
147-
exclude: ['bower_components/bootstrap-sass-official/vendor/assets/javascripts/bootstrap.js']
148-
},
149-
sass: {
150-
src: ['<%= config.app %>/styles/{,*/}*.{scss,sass}']
151-
}
152-
},
153-
154135
// Renames files for browser caching purposes
155136
rev: {
156137
dist: {

app/index.html

+1-5
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@
1010
<link rel="shortcut icon" href="/favicon.png">
1111

1212
<!-- build:css styles/vendor.css -->
13-
<!-- bower:css -->
1413

15-
<!-- endbower -->
1614
<!-- endbuild -->
1715
<!-- build:css(.tmp) styles/main.css -->
1816
<link rel="stylesheet" href="styles/main.css">
@@ -98,10 +96,8 @@ <h1>
9896
</div>
9997

10098
<!-- build:js scripts/vendor.js -->
101-
<!-- bower:js -->
102-
<script src="../bower_components/angular/angular.js"></script>
99+
<script src="scripts/vendor/angular.min.js"></script>
103100
<script src="scripts/vendor/rainbow-custom.min.js"></script>
104-
<!-- endbower -->
105101
<!-- endbuild -->
106102

107103
<!-- Google Analytics: change UA-XXXXX-X to be your site's ID. -->

0 commit comments

Comments
 (0)