forked from thomaspark/bootswatch
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added package.json (for npm) and component.json (for bower).
Building with global variables is successful. TravisCI should build correctly.
- Loading branch information
1 parent
cb9827d
commit d17bd2f
Showing
12 changed files
with
13,105 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
.idea | ||
components | ||
node_modules |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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']); | ||
}); | ||
}; |
Oops, something went wrong.