Skip to content

Commit

Permalink
Switch to bower for dependencies.
Browse files Browse the repository at this point in the history
  • Loading branch information
dignifiedquire committed Mar 30, 2013
1 parent 977f257 commit 5456cc3
Show file tree
Hide file tree
Showing 336 changed files with 61,152 additions and 5,248 deletions.
18 changes: 11 additions & 7 deletions Gruntfile.coffee
Expand Up @@ -24,14 +24,14 @@ module.exports = (grunt) ->
bundle.transform coffeeify
shim bundle,
angular:
path: './vendor/script/angular/angular.js'
path: './components/angular/angular.js'
exports: 'angular'
'angular-cookies':
path: './vendor/script/angular/angular-cookies.js'
path: './components/angular-cookies/angular-cookies.js'
exports: null
depends: angular: 'angular'
'angular-resource':
path: './vendor/script/angular/angular-resource.js'
path: './components/angular-resource/angular-resource.js'
exports: null
depends: angular: 'angular'

Expand All @@ -52,7 +52,7 @@ module.exports = (grunt) ->
options:
paths: [
'app/assets/style'
'vendor/style'
'components'
]
files:
'build/development/css/app.css': [
Expand All @@ -76,14 +76,17 @@ module.exports = (grunt) ->
options:
port: 8002
base: "./#{DEV_PATH}"
copy:
development:
cwd: 'components/font-awesome/'
src: 'font/*'
dest: 'build/development'
expand: true

watch:
coffee:
files: ['app/*.coffee', 'app/**/*.coffee']
tasks: 'browserify2:development'
concat:
files: ['vendor/script/**/*.js', 'vendor/style/**/*.css']
tasks: 'concat:development'
jade:
files: ['app/index.jade', 'app/partials/*.jade']
tasks: 'jade:development'
Expand Down Expand Up @@ -124,6 +127,7 @@ module.exports = (grunt) ->
grunt.registerTask 'config', 'coffee:config'
grunt.registerTask 'development', [
'clean:development'
'copy:development'
'browserify2:development'
'jade:development'
'less:development'
Expand Down
1 change: 1 addition & 0 deletions README.md
Expand Up @@ -16,6 +16,7 @@ When it's setup it will make your development live much easier. You will be able
* [Jade](http://jade-lang.com/) for the templates
* [Phantomjs](http://phantomjs.org/) for the headless
* [Mocha](http://visionmedia.github.com/mocha/) and [Chai](http://chaijs.com/) for the tests
* [Bower](http://twitter.github.com/bower/) for dependencies

## How do I get it?
Install it via
Expand Down
7 changes: 5 additions & 2 deletions app/assets/style/app.less
@@ -1,7 +1,7 @@
// app/assets/style/app.less

// load twitter bootstrap
@import "bootstrap.less";
@import 'bootstrap.less';

// here you can load and write your own styles

Expand All @@ -13,5 +13,8 @@ body {
padding: 9px 0;
}




// load responsive styles
@import "bootstrap/responsive.less";
@import 'bootstrap/less/responsive.less';
68 changes: 34 additions & 34 deletions app/assets/style/bootstrap.less
@@ -1,53 +1,53 @@
// CSS Reset
@import "bootstrap/reset.less";
@import 'bootstrap/less/reset.less';

// Core variables and mixins
@import "bootstrap/variables.less"; // Modify this for custom colors, font-sizes, etc
@import "bootstrap/mixins.less";
@import 'bootstrap/less/variables.less'; // Modify this for custom colors, font-sizes, etc
@import 'bootstrap/less/mixins.less';

// Grid system and page structure
@import "bootstrap/scaffolding.less";
@import "bootstrap/grid.less";
@import "bootstrap/layouts.less";
@import 'bootstrap/less/scaffolding.less';
@import 'bootstrap/less/grid.less';
@import 'bootstrap/less/layouts.less';

// Base CSS
@import "bootstrap/type.less";
@import "bootstrap/code.less";
@import "bootstrap/forms.less";
@import "bootstrap/tables.less";
@import 'bootstrap/less/type.less';
@import 'bootstrap/less/code.less';
@import 'bootstrap/less/forms.less';
@import 'bootstrap/less/tables.less';

// Components: common
//@import "bootstrap/sprites.less";
@import "fontAwesome/font-awesome.less";
@import "bootstrap/dropdowns.less";
@import "bootstrap/wells.less";
@import "bootstrap/component-animations.less";
@import "bootstrap/close.less";
//@import 'bootstrap/less/sprites.less';
@import 'font-awesome/less/font-awesome.less';
@import 'bootstrap/less/dropdowns.less';
@import 'bootstrap/less/wells.less';
@import 'bootstrap/less/component-animations.less';
@import 'bootstrap/less/close.less';

// Components: Buttons & Alerts
@import "bootstrap/buttons.less";
@import "bootstrap/button-groups.less";
@import "bootstrap/alerts.less"; // Note: alerts share common CSS with buttons and thus have styles in buttons.less
@import 'bootstrap/less/buttons.less';
@import 'bootstrap/less/button-groups.less';
@import 'bootstrap/less/alerts.less'; // Note: alerts share common CSS with buttons and thus have styles in buttons.less

// Components: Nav
@import "bootstrap/navs.less";
@import "bootstrap/navbar.less";
@import "bootstrap/breadcrumbs.less";
@import "bootstrap/pagination.less";
@import "bootstrap/pager.less";
@import 'bootstrap/less/navs.less';
@import 'bootstrap/less/navbar.less';
@import 'bootstrap/less/breadcrumbs.less';
@import 'bootstrap/less/pagination.less';
@import 'bootstrap/less/pager.less';

// Components: Popovers
@import "bootstrap/modals.less";
@import "bootstrap/tooltip.less";
@import "bootstrap/popovers.less";
@import 'bootstrap/less/modals.less';
@import 'bootstrap/less/tooltip.less';
@import 'bootstrap/less/popovers.less';

// Components: Misc
@import "bootstrap/thumbnails.less";
@import "bootstrap/labels-badges.less";
@import "bootstrap/progress-bars.less";
@import "bootstrap/accordion.less";
@import "bootstrap/carousel.less";
@import "bootstrap/hero-unit.less";
@import 'bootstrap/less/thumbnails.less';
@import 'bootstrap/less/labels-badges.less';
@import 'bootstrap/less/progress-bars.less';
@import 'bootstrap/less/accordion.less';
@import 'bootstrap/less/carousel.less';
@import 'bootstrap/less/hero-unit.less';

// Utility classes
@import "bootstrap/utilities.less"; // Has to be last to override when necessary
@import 'bootstrap/less/utilities.less'; // Has to be last to override when necessary
30 changes: 16 additions & 14 deletions app/index.jade
Expand Up @@ -14,25 +14,27 @@ html(lang='en')
script(src='//html5shiv.googlecode.com/svn/trunk/html5.js')
script(src='/js/app.js')
body(ng-controller='AppController')
.navbar.navbar-fixed-top.navbar-inverse
.navbar.navbar-fixed-top
.navbar-inner
.container-fluid
.container
button.btn.btn-navbar(data-toggle='collapse', data-target='.nav-collapse')
span.icon-bar
span.icon-bar
span.icon-bar
a(href='/').brand YAAS
a(href='/').brand
| yaas 
span(app-version)
.nav-collapse
div(ng-include="'/partials/navigation.html'")
.container-fluid
.row-fluid
.span12
.hero-unit
h1 Hello from YAAS
p Version:
span(app-version)
div(ng-view)
hr
footer
p © 2012 Friedel Ziegelmayer | Get the source 
.jumbotron.masthead
.container
h1 Welcome to yaas
p yet another angular seed

.container
div(ng-view)
hr
footer
.container
p © 2013 Friedel Ziegelmayer | Get the source 
a(href='https://github.com/dignifiedquire/yaas') yaas@github
7 changes: 6 additions & 1 deletion app/partials/first.jade
@@ -1 +1,6 @@
p This is the partial for view 1.
.row-fluid
.span12
h2
i.icon-home
|   View 1
p This is the partial for view 1.
7 changes: 6 additions & 1 deletion app/partials/second.jade
@@ -1 +1,6 @@
p This is the partial for view 2.
.row-fluid
.span12
h2
i.icon-home
|   View 2
p This is the partial for view 2.

0 comments on commit 5456cc3

Please sign in to comment.