Commit 16ade2cf authored by David Haynes's avatar David Haynes

Merge branch 'gh-pages'

parents 9457bad0 bd9095e0

Too many changes to show.

To preserve performance only 1000 of 1000+ files are displayed.

{
"scripts": {
"postinstall": "cp -a ./bower_components/bootstrap/fonts ./"
}
}
.idea
components
node_modules
build
_site
*.lock
.sass-cache/
# swap
[._]*.s[a-w][a-z]
[._]s[a-w][a-z]
# session
Session.vim
# temporary
.netrwhist
*~
# auto-generated tag files
tags
2/
api/
assets/
bower_components/
custom/
default/
global/
help/
tests/
_config.yml
.bowerrc
.gitignore
.travis.yml
bower.json
CNAME
composer.json
favicon.ico
Gemfile
Gruntfile.js
index.html
*/index.html
branches:
only:
- master
- gh-pages
language: node_js
node_js:
- '0.10'
before_install:
- npm install -g grunt-cli recess bower
- bower install
script: grunt swatch
git:
depth: 10
deploy:
provider: npm
email: hello@thomaspark.co
api_key:
secure: E9dTc33u8aHCXG4qd8TrafOiAMzgEJYQUx/bnG2thb4cDD2U64LEdShjkXnjwr2K2RLNfQ4IQWHsDVAvyDK0f9kiud0swoG0SHTU9RDQ+NYFYODZe/c5qOlYqIHoJIpLV3lb7AHrzhrk+G1bkTn7pukB6/nEU0e+D3I7b3kbwEg=
on:
tags: true
repo: thomaspark/bootswatch
branch: gh-pages
branches:
only:
- master
- gh-pages
language: node_js
node_js:
- "0.8.11"
before_install:
- npm install -g grunt-cli recess bower
- bower install
script: "grunt swatch"
\ No newline at end of file
module.exports = function (grunt) {
grunt.loadNpmTasks('grunt-recess');
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-contrib-clean');
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
builddir: 'build',
meta: {
banner: '/**\n' +
' * <%= pkg.description %>\n' +
' * @version v<%= pkg.version %> - ' +
'<%= grunt.template.today("yyyy-mm-dd") %>\n' +
' * @link <%= pkg.homepage %>\n' +
' * @license <%= pkg.license %>' + ' */'
},
swatch: {
amelia:{}, cerulean:{}, cosmo:{}, cyborg:{}, flatly:{}, journal:{}, readable:{},
simplex:{}, slate:{}, spacelab:{}, spruce:{}, superhero:{}, united:{}
},
clean: {
build: {
src: ['*/build.less', '*/build-responsive.less',
'!global/build.less', '!global/build-responsive.less']
}
},
concat: {
dist: {
src: [],
dest: ''
}
},
recess: {
dist: {
options: {
compile: true,
compress: false
},
files: {}
}
}
});
grunt.registerTask('none', function() {});
grunt.registerTask('build', 'build a regular theme', function(theme, compress) {
var compress = compress == undefined ? true : compress;
var concatSrc;
var concatDest;
var recessDest;
var recessSrc;
var files = {};
var dist = {};
concatSrc = 'global/build.less';
concatDest = theme + '/build.less';
recessDest = '<%=builddir%>/' + theme + '/bootstrap.css';
recessSrc = [ theme + '/' + 'build.less' ];
dist = {src: concatSrc, dest: concatDest};
grunt.config('concat.dist', dist);
files = {}; files[recessDest] = recessSrc;
grunt.config('recess.dist.files', files);
grunt.config('recess.dist.options.compress', false);
grunt.task.run(['concat', 'recess:dist', 'clean:build',
compress ? 'compress:'+recessDest+':'+'<%=builddir%>/' + theme + '/bootstrap.min.css':'none']);
});
grunt.registerTask('build-responsive', 'build a responsive theme', function(theme, compress) {
var compress = compress == undefined ? true : compress;
var concatSrc;
var concatDest;
var recessDest;
var recessSrc;
var files = {};
var dist = {};
concatSrc = 'global/build-responsive.less';
concatDest = theme + '/build-responsive.less';
recessDest = '<%=builddir%>/' + theme + '/bootstrap-responsive.css';
recessSrc = [ theme + '/' + 'build-responsive.less' ];
dist = {src: concatSrc, dest: concatDest};
grunt.config('concat.dist', dist);
files = {}; files[recessDest] = recessSrc;
grunt.config('recess.dist.files', files);
grunt.config('recess.dist.options.compress', false);
grunt.task.run(['concat', 'recess:dist', 'clean:build',
compress ? 'compress:'+recessDest+':'+'<%=builddir%>/' + theme + '/bootstrap-responsive.min.css':'none']);
});
grunt.registerTask('compress', 'compress a generic css', function(fileSrc, fileDst) {
var files = {}; files[fileDst] = fileSrc;
grunt.log.writeln('compressing file ' + fileSrc);
grunt.config('recess.dist.files', files);
grunt.config('recess.dist.options.compress', true);
grunt.task.run(['recess:dist']);
});
grunt.registerMultiTask('swatch', 'build a theme, both not responsive and responsive', function() {
var t = this.target;
grunt.task.run('build:'+t, 'build-responsive:'+t);
});
grunt.registerTask('default', 'build a theme, both not responsive and responsive', function() {
grunt.task.run('swatch');
});
};
\ No newline at end of file
This diff is collapsed.
Bootswatch
==========