mirror of
https://github.com/thomaspark/bootswatch.git
synced 2025-10-07 18:14:07 +00:00
Added package.json (for npm) and component.json (for bower).
Building with global variables is successful. TravisCI should build correctly.
This commit is contained in:
3
.gitignore
vendored
Normal file
3
.gitignore
vendored
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
.idea
|
||||||
|
components
|
||||||
|
node_modules
|
10
.travis.yml
Normal file
10
.travis.yml
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
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"
|
65
Gruntfile.js
Normal file
65
Gruntfile.js
Normal file
@@ -0,0 +1,65 @@
|
|||||||
|
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']);
|
||||||
|
});
|
||||||
|
};
|
6486
cerulean/cerulean.css
Normal file
6486
cerulean/cerulean.css
Normal file
File diff suppressed because it is too large
Load Diff
15
component.json
Normal file
15
component.json
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
{
|
||||||
|
"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"
|
||||||
|
}
|
||||||
|
}
|
3
global/build-responsive.less
Normal file
3
global/build-responsive.less
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
@import "../components/bootstrap/less/responsive.less";
|
||||||
|
@import "variables.less";
|
||||||
|
@import "../global/global.less";
|
3
global/build-responsive_.less
Normal file
3
global/build-responsive_.less
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
@import "../components/bootstrap/less/responsive.less";
|
||||||
|
@import "variables.less";
|
||||||
|
@import "../global/global.less";
|
5
global/build.less
Normal file
5
global/build.less
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
@import "../components/bootstrap/less/bootstrap.less";
|
||||||
|
@import "variables.less";
|
||||||
|
@import "../global/global.less";
|
||||||
|
@import "bootswatch.less";
|
||||||
|
@import "../components/bootstrap/less/utilities.less";
|
5
global/build_.less
Normal file
5
global/build_.less
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
@import "../components/bootstrap/less/bootstrap.less";
|
||||||
|
@import "variables.less";
|
||||||
|
@import "../global/global.less";
|
||||||
|
@import "bootswatch.less";
|
||||||
|
@import "../components/bootstrap/less/utilities.less";
|
2
global/global.less
Normal file
2
global/global.less
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
@iconSpritePath: "../img/glyphicons-halflings.png";
|
||||||
|
@iconWhiteSpritePath: "../img/glyphicons-halflings-white.png";
|
22
package.json
Normal file
22
package.json
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
{
|
||||||
|
"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"
|
||||||
|
}
|
||||||
|
}
|
Reference in New Issue
Block a user