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
{ | |
"name": "laravelTutorial", | |
"dependencies": { | |
"foundation": "~5.3.3" | |
} | |
} |
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
public/assets/vendor/ | |
|-- fastclick | |
|-- foundation | |
|-- jquery | |
|-- jquery-placeholder | |
|-- jquery.cookie | |
`-- modernizr |
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
public/ | |
|-- assets | |
| |-- stylesheets | |
| | |-- base.scss # base from foundation | |
| | |-- custom.scss # for customs scss | |
| | `-- variables.scss # for custom variables | |
| `-- javascripts | |
| `-- custom.js # for customs javascript | |
|-- css | |
`-- 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
/* | |
* public/assets/stylesheets/base.scss | |
* Files from foundation | |
*/ | |
@import 'variables'; | |
@import '../vendor/foundation/scss/normalize'; | |
@import '../vendor/foundation/scss/foundation'; |
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
//Gruntfile | |
module.exports = function(grunt) { | |
//Initializing the configuration object | |
grunt.initConfig({ | |
// Paths variables | |
paths: { | |
// Development where put SASS files, etc | |
assets: { |
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
// Part of Gruntfile.js, this is the sass section | |
sass: { | |
css: { | |
options: { | |
style: 'compressed', | |
compass: true | |
}, | |
// This will get all the scss files in /public/assets/stylesheets | |
files: [{ | |
expand: true, |
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
// Part of Gruntfile.js, this is the Concat section | |
concat: { | |
options: { | |
separator: ';', | |
}, | |
js_header: { | |
src: [ | |
'<%= paths.assets.vendor %>modernizr/modernizr.js', | |
'<%= paths.assets.js %>custom.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
# Files Generated by grunt concat | |
public | |
`-- js | |
`-- expanded | |
|-- scripts_footer.js | |
`-- scripts_header.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
// Part of Gruntfile.js, this is the Uglify section | |
uglify: { | |
options: { | |
// Grunt can replace variables names, but may not be a good idea for you, I leave | |
// this option as false | |
mangle: false | |
}, | |
js: { | |
// Grunt will search for "**/*.js" when the "minify" task | |
// runs and build the appropriate src-dest file mappings then, so you |
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
# Files Generated by grunt uglify | |
public | |
`-- js | |
|-- min | |
| |-- scripts_footer.min.js | |
| `-- scripts_header.min.js | |
`-- expanded | |
|-- scripts_footer.js | |
`-- scripts_header.js |