-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add readme advanced usage and more full example
- Loading branch information
1 parent
434d9ba
commit a4ff9b6
Showing
49 changed files
with
740 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"name": "bower", | ||
"version": "0.0.0", | ||
"authors": [ | ||
"Chris Montgomery <[email protected]>" | ||
], | ||
"license": "MIT", | ||
"ignore": [ | ||
"**/.*", | ||
"node_modules", | ||
"bower_components", | ||
"test", | ||
"tests" | ||
], | ||
"dependencies": { | ||
"angular": "~1.2.18", | ||
"bootstrap": "~3.1.1", | ||
"jquery": "~2.1.1", | ||
"spin": "~0.0.1" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
console.log("angular"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
console.log("angular.min"); |
3 changes: 3 additions & 0 deletions
3
examples/full/bower_components/bootstrap/dist/css/bootstrap.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
.bootstrap { | ||
background-color: red; | ||
} |
3 changes: 3 additions & 0 deletions
3
examples/full/bower_components/bootstrap/dist/css/bootstrap.min.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
.bootstrap.min { | ||
background-color: blue; | ||
} |
Binary file added
BIN
+19.9 KB
examples/full/bower_components/bootstrap/dist/fonts/glyphicons-halflings-regular.eot
Binary file not shown.
229 changes: 229 additions & 0 deletions
229
...les/full/bower_components/bootstrap/dist/fonts/glyphicons-halflings-regular.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+40.3 KB
examples/full/bower_components/bootstrap/dist/fonts/glyphicons-halflings-regular.ttf
Binary file not shown.
Binary file added
BIN
+22.8 KB
examples/full/bower_components/bootstrap/dist/fonts/glyphicons-halflings-regular.woff
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
console.log('bootstrap'); |
1 change: 1 addition & 0 deletions
1
examples/full/bower_components/bootstrap/dist/js/bootstrap.min.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
console.log('bootstrap.min'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
console.log("jquery"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
console.log("jquery.min"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
console.log("spin") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
var prodLikeEnvs = ['production', 'staging']; // when NODE_ENV=staging or NODE_ENV=production | ||
module.exports = { | ||
bundle: { | ||
vendor: { | ||
scripts: [ | ||
{src: './bower_components/jquery/jquery.js', minSrc: './bower_components/jquery/jquery.min.js'}, | ||
{src: './bower_components/angular/angular.js', minSrc: './bower_components/angular/angular.min.js'}, | ||
'./bower_components/spin/spin.js' | ||
], | ||
styles: { | ||
src: './bower_components/bootstrap/dist/css/bootstrap.css', | ||
minSrc: './bower_components/bootstrap/dist/css/bootstrap.min.css' | ||
}, | ||
options: { | ||
useMin: prodLikeEnvs, // pre-minified files | ||
uglify: false, // never let bundler minify js since bower already ships with minified versions | ||
rev: prodLikeEnvs // file revisioning | ||
} | ||
}, | ||
article: { | ||
scripts: './lib/article/**/*.js', | ||
styles: './lib/article/**/*.less', // if you supply .less files they will be compiled to .css for you | ||
options: { | ||
uglify: prodLikeEnvs, | ||
rev: prodLikeEnvs | ||
} | ||
}, | ||
main: { | ||
scripts: [ | ||
'./js/app.js', | ||
'./js/controllers.js', | ||
'./js/directives.js', | ||
'./js/filters.js' | ||
], | ||
styles: [ | ||
'./styles/**/*.css', | ||
'./styles/**/*.less' // mix of file types | ||
], | ||
options: { | ||
uglify: prodLikeEnvs, | ||
rev: prodLikeEnvs | ||
} | ||
} | ||
}, | ||
copy: [ | ||
{ | ||
src: './bower_components/bootstrap/dist/fonts/**/*.*', | ||
base: './bower_components/bootstrap/dist/' | ||
}, | ||
'./images/**/*.*' | ||
] | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"vendor": { | ||
"styles": "<link href='/public/vendor-bfff3428.css' media='screen' rel='stylesheet' type='text/css'/>", | ||
"scripts": "<script src='/public/vendor-fc7efeba.js' type='text/javascript'></script>" | ||
}, | ||
"article": { | ||
"styles": "<link href='/public/article-c2107e48.css' media='screen' rel='stylesheet' type='text/css'/>", | ||
"scripts": "<script src='/public/article-d41d8cd9.js' type='text/javascript'></script>" | ||
}, | ||
"main": { | ||
"styles": "<link href='/public/main-41e43699.css' media='screen' rel='stylesheet' type='text/css'/>", | ||
"scripts": "<script src='/public/main-d41d8cd9.js' type='text/javascript'></script>" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
var gulp = require('gulp'), | ||
rimraf = require('gulp-rimraf'), | ||
bundle = require('../../index'); | ||
|
||
gulp.task('bundle', ['clean'], function () { | ||
|
||
process.env.NODE_ENV = 'production'; // hardcode to always run in production mode | ||
|
||
return gulp.src('./bundle.config.js') | ||
.pipe(bundle()) | ||
.pipe(bundle.results({ | ||
dest: './', | ||
pathPrefix: '/public/' | ||
})) | ||
.pipe(gulp.dest('./public')); | ||
}); | ||
|
||
gulp.task('clean', function () { | ||
return gulp.src('./public', { read: false }) | ||
.pipe(rimraf()); | ||
}); |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
//placeholder |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
//placeholder |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
//placeholder |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
//placeholder |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
//placeholder |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
//placeholder |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
.page { | ||
background-color: red; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"name": "full", | ||
"version": "0.0.0", | ||
"description": "", | ||
"main": "bundle.config.js", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
}, | ||
"author": "", | ||
"license": "ISC", | ||
"devDependencies": { | ||
"gulp": "^3.8.6", | ||
"gulp-rimraf": "^0.1.0" | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Binary file not shown.
Oops, something went wrong.