-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit ac5f090
Showing
56 changed files
with
7,264 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"directory": "bower_components" | ||
} |
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,5 @@ | ||
.DS_Store | ||
node_modules/ | ||
*.sass-cache* | ||
bower_components/ | ||
*.log |
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,154 @@ | ||
module.exports = function(grunt) { | ||
grunt.initConfig({ | ||
pkg: grunt.file.readJSON('package.json'), | ||
|
||
sass: { | ||
options: { | ||
// If you can't get source maps to work, run the following command in your terminal: | ||
// $ sass scss/foundation.scss:css/foundation.css --sourcemap | ||
// (see this link for details: http://thesassway.com/intermediate/using-source-maps-with-sass ) | ||
sourceMap: true | ||
}, | ||
|
||
dist: { | ||
options: { | ||
outputStyle: 'compressed' | ||
}, | ||
files: { | ||
'css/site-uber-style.min.css': 'scss/site-uber-style.scss' | ||
} | ||
} | ||
}, | ||
|
||
copy: { | ||
scripts: { | ||
expand: true, | ||
cwd: 'bower_components/foundation/js/vendor/', | ||
src: '**', | ||
flatten: 'true', | ||
dest: 'js/vendor/' | ||
}, | ||
|
||
iconfonts: { | ||
expand: true, | ||
cwd: 'bower_components/fontawesome/', | ||
src: ['**', '!**/less/**', '!**/css/**', '!bower.json'], | ||
dest: 'fonts/fontawesome/' | ||
}, | ||
|
||
angular: { | ||
expand: true, | ||
cwd: 'bower_components/angular/', | ||
src: ['angular.min.js','angular.min.js.map'], | ||
dest: 'js/vendor/' | ||
}, | ||
|
||
angularresource: { | ||
expand: true, | ||
cwd: 'bower_components/angular-resource/', | ||
src: ['angular-resource.min.js','angular-resource.min.js.map'], | ||
dest: 'js/vendor/' | ||
}, | ||
|
||
momentjs: { | ||
expand: true, | ||
cwd: 'bower_components/moment/min/', | ||
src: ['moment.min.js'], | ||
dest: 'js/vendor/' | ||
}, | ||
|
||
}, | ||
|
||
|
||
'string-replace': { | ||
|
||
fontawesome: { | ||
files: { | ||
'fonts/fontawesome/scss/_variables.scss': 'fonts/fontawesome/scss/_variables.scss' | ||
}, | ||
options: { | ||
replacements: [ | ||
{ | ||
pattern: '../fonts', | ||
replacement: '../fonts/fontawesome/fonts' | ||
} | ||
] | ||
} | ||
}, | ||
}, | ||
|
||
concat: { | ||
options: { | ||
separator: ';', | ||
}, | ||
dist: { | ||
src: [ | ||
|
||
// Foundation core | ||
'bower_components/foundation/js/foundation/foundation.js', | ||
|
||
// Pick the componenets you need in your project | ||
/*'bower_components/foundation/js/foundation/foundation.abide.js', | ||
'bower_components/foundation/js/foundation/foundation.accordion.js', | ||
'bower_components/foundation/js/foundation/foundation.alert.js', | ||
'bower_components/foundation/js/foundation/foundation.clearing.js', | ||
'bower_components/foundation/js/foundation/foundation.dropdown.js', | ||
'bower_components/foundation/js/foundation/foundation.equalizer.js', | ||
'bower_components/foundation/js/foundation/foundation.interchange.js', | ||
'bower_components/foundation/js/foundation/foundation.joyride.js', | ||
'bower_components/foundation/js/foundation/foundation.magellan.js', | ||
'bower_components/foundation/js/foundation/foundation.offcanvas.js', | ||
'bower_components/foundation/js/foundation/foundation.orbit.js', | ||
'bower_components/foundation/js/foundation/foundation.reveal.js', | ||
'bower_components/foundation/js/foundation/foundation.slider.js', | ||
'bower_components/foundation/js/foundation/foundation.tab.js',*/ | ||
'bower_components/foundation/js/foundation/foundation.tooltip.js', | ||
//'bower_components/foundation/js/foundation/foundation.topbar.js', | ||
|
||
// Include your own custom scripts (located in the custom folder) | ||
'js/custom/*.js' | ||
|
||
], | ||
// Finally, concatenate all the files above into one single file | ||
dest: 'js/site-core.js', | ||
}, | ||
}, | ||
|
||
uglify: { | ||
options: { | ||
mangle: false | ||
}, | ||
dist: { | ||
files: { | ||
// Shrink the file size by removing spaces | ||
'js/site-core.min.js': ['js/site-core.js'] | ||
} | ||
} | ||
}, | ||
|
||
watch: { | ||
grunt: { | ||
files: ['Gruntfile.js'] | ||
}, | ||
sass: { | ||
files: 'scss/**/*.scss', | ||
tasks: ['sass'] | ||
}, | ||
js: { | ||
files: ['js/custom/**/*.js'], | ||
//options: { livereload: true }, | ||
tasks: ['concat','uglify'] | ||
} | ||
} | ||
}); | ||
|
||
grunt.loadNpmTasks('grunt-sass'); | ||
grunt.loadNpmTasks('grunt-contrib-watch'); | ||
grunt.loadNpmTasks('grunt-contrib-concat'); | ||
grunt.loadNpmTasks('grunt-contrib-copy'); | ||
grunt.loadNpmTasks('grunt-contrib-uglify'); | ||
grunt.loadNpmTasks('grunt-string-replace'); | ||
|
||
grunt.registerTask('build', ['copy', 'string-replace:fontawesome', 'sass', 'concat', 'uglify']); | ||
grunt.registerTask('default', ['watch']); | ||
}; |
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,10 @@ | ||
# FoundationAndGrunt | ||
|
||
A place to start when starting a new site or application. Uses the Foundation CSS/JS framework, Bower Package Manager, and Grunt JS Task Runner | ||
|
||
## Getting Started | ||
Run these commands from the command line, assuming you have the node cli installed | ||
1. npm install | ||
2. bower install | ||
3. grunt build | ||
# bracket-app |
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,10 @@ | ||
{ | ||
"name": "foundation-and-grunt", | ||
"dependencies": { | ||
"foundation": "zurb/bower-foundation", | ||
"fontawesome": "~4.3.0", | ||
"angular": "latest", | ||
"angular-resource": "latest", | ||
"moment": "~2.9.0" | ||
} | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
Oops, something went wrong.