Commit d17bd2f3 authored by Francesco Pontillo's avatar Francesco Pontillo

Added package.json (for npm) and component.json (for bower).

Building with global variables is successful.
TravisCI should build correctly.
parent cb9827df
.idea
components
node_modules
language: node_js
node_js:
- "0.8.11"
before_install:
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
- npm install -g grunt-cli recess
script: "grunt build"
\ No newline at end of file
module.exports = function (grunt) {
grunt.loadNpmTasks('grunt-recess');
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-contrib-clean');
// grunt.loadNpmTasks('grunt-contrib-uglify');
// Project configuration.
grunt.initConfig({
builddir: 'build',
pkg: grunt.file.readJSON('package.json'),
meta: {
banner: '/**\n' +
' * <%= pkg.description %>\n' +
' * @version v<%= pkg.version %> - ' +
'<%= grunt.template.today("yyyy-mm-dd") %>\n' +
' * @link <%= pkg.homepage %>\n' +
' * @license <%= pkg.license %>' + ' */'
},
build: {
cerulean:{}, amelia: {}
},
clean: {
build: {
src: ['*/build.less', '*/build-responsive.less',
'!global/build.less', '!global/build-responsive.less']
}
},
concat: {
dist: {
src: ['global/build.less'],
dest: ''
}
},
recess: {
dist: {
options: {
compile: true
},
files: {}
}
},
min: {
build: {
src: ['<banner:meta.banner>', '<config:concat.build.dest>'],
dest: '<%= builddir %>/<%= pkg.name %>.min.js'
}
}
});
grunt.registerMultiTask('build', 'build a theme', function() {
var theme = this.target;
grunt.log.writeln('building theme ' + this.target);
var concatDest = theme + '/build.less';
var recessDest = theme + '/' + theme + '.css';
var recessSrc = [ theme + '/' + 'build.less' ];
grunt.config('concat.dist.dest', concatDest);
var files = {}; files[recessDest] = recessSrc;
grunt.config('recess.dist.files', files);
grunt.task.run(['concat', 'recess:dist', 'clean:build']);
});
};
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
{
"author": "Thomas Park",
"name": "bootswatch",
"description": "Bootswatch is a collection of free themes for Twitter Bootstrap.",
"version": "2.3.0+1",
"homepage": "http://bootswatch.com/",
"repository": {
"type": "git",
"url": "git://github.com/thomaspark/bootswatch.git"
},
"main": "",
"dependencies": {
"bootstrap": "~2.3.0"
}
}
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
@import "../components/bootstrap/less/responsive.less";
@import "variables.less";
@import "../global/global.less";
\ No newline at end of file
@import "../components/bootstrap/less/responsive.less";
@import "variables.less";
@import "../global/global.less";
\ No newline at end of file
@import "../components/bootstrap/less/bootstrap.less";
@import "variables.less";
@import "../global/global.less";
@import "bootswatch.less";
@import "../components/bootstrap/less/utilities.less";
\ No newline at end of file
@import "../components/bootstrap/less/bootstrap.less";
@import "variables.less";
@import "../global/global.less";
@import "bootswatch.less";
@import "../components/bootstrap/less/utilities.less";
\ No newline at end of file
@iconSpritePath: "../img/glyphicons-halflings.png";
@iconWhiteSpritePath: "../img/glyphicons-halflings-white.png";
\ No newline at end of file
{
"author": "Thomas Park",
"name": "bootswatch",
"description": "Bootswatch is a collection of free themes for Twitter Bootstrap.",
"version": "2.3.0+1",
"homepage": "http://bootswatch.com/",
"license": "Apache License, Version 2.0, http://www.apache.org/licenses/LICENSE-2.0",
"repository": {
"type": "git",
"url": "git://github.com/thomaspark/bootswatch.git"
},
"engines": {
"node": ">= 0.8.11"
},
"devDependencies": {
"recess": "~1.1.6",
"grunt": "~0.4.0",
"grunt-recess": "~0.3.1",
"grunt-contrib-concat": "~0.1.3",
"grunt-contrib-clean": "~0.4.0"
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment