Skip to content

Commit

Permalink
Adding FontAwesome ~4.3.0 to Bower workflow
Browse files Browse the repository at this point in the history
Closes #21

update by
cd _build/templates/default
bower update
  • Loading branch information
jpdevries committed Jul 13, 2015
1 parent 69fce83 commit 113bca3
Show file tree
Hide file tree
Showing 16 changed files with 2,044 additions and 1,384 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ config.core.php
_build/build.config.php
node_modules
bower_components
.sass-cache
.sass-cache
_build/templates/default/lib/
26 changes: 26 additions & 0 deletions _build/templates/default/bower.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"name": "QuickstartButtons",
"homepage": "https://github.com/modmore/QuickstartButtons",
"authors": [
"Christian Seel <[email protected]>"
],
"description": "Component for managing Quickstart buttons on your MODX manager Dashboard.",
"license": "MIT",
"private": true,
"ignore": [
"**/.*",
"node_modules",
"bower_components",
"test",
"tests"
],
"dependencies": {
"font-awesome": "~4.3.0"
},
"exportsOverride": {
"font-awesome": {
"css": ["css"],
"fonts": ["fonts"]
}
}
}
20 changes: 19 additions & 1 deletion _build/templates/default/gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,26 @@ module.exports = function(grunt) {
pkg: grunt.file.readJSON('package.json'),
dirs: { /* just defining some properties */
theme: '../../../',
lib: 'lib/',
assets: 'assets/components/quickstartbuttons/',
css: 'css/',
scss: 'scss/',
},
bower: {
install: {
options: {
targetDir: './lib',
layout:'byComponent'
}
}
},
copy: { /* move files */
fontawesome: {
files:[
{src: ['<%= dirs.lib %>font-awesome/css/*', '<%= dirs.lib %>font-awesome/fonts/*', '!<%= dirs.lib %>font-awesome/css/*.css.map'],dest:'<%= dirs.theme %><%= dirs.assets %>fontawesome/',expand:true,flatten:true}
]
}
},
sass: {
options: {
outputStyle: 'expanded',
Expand Down Expand Up @@ -58,11 +74,13 @@ module.exports = function(grunt) {

grunt.initConfig(initConfig);

grunt.loadNpmTasks('grunt-bower-task');
grunt.loadNpmTasks('grunt-contrib-copy');
grunt.loadNpmTasks('grunt-growl');
grunt.loadNpmTasks('grunt-sass');
grunt.loadNpmTasks('grunt-autoprefixer');
grunt.loadNpmTasks('grunt-contrib-watch');

grunt.registerTask('default', ['growl:watch', 'watch']);
grunt.registerTask('build', ['sass', 'autoprefixer', 'growl:sass']);
grunt.registerTask('build', ['bower', 'copy', 'sass', 'autoprefixer', 'growl:sass']);
};
2 changes: 2 additions & 0 deletions _build/templates/default/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@
"devDependencies": {
"grunt": "^0.4.5",
"grunt-autoprefixer": "^3.0.3",
"grunt-bower-task": "^0.4.0",
"grunt-contrib-copy": "^0.8.0",
"grunt-contrib-watch": "^0.6.1",
"grunt-growl": "^0.1.5",
"grunt-sass": "^1.0.0"
Expand Down
2 changes: 1 addition & 1 deletion assets/components/quickstartbuttons/css/mgr.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import url("../fontawesome/fonts.css");
@import url("../fontawesome/font-awesome.min.css");
/* Dashboard Widget */
#quickstartbuttons-widget {
width: auto;
Expand Down
2 changes: 1 addition & 1 deletion assets/components/quickstartbuttons/css/mgr23.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import url("../fontawesome/fonts.css");
@import url("../fontawesome/font-awesome.min.css");
/* Dashboard Widget */
#quickstartbuttons-widget {
width: auto;
Expand Down
Binary file modified assets/components/quickstartbuttons/fontawesome/FontAwesome.otf
100755 → 100644
Binary file not shown.
Loading

0 comments on commit 113bca3

Please sign in to comment.