diff --git a/Gruntfile.js b/Gruntfile.js new file mode 100644 index 00000000..e3206c48 --- /dev/null +++ b/Gruntfile.js @@ -0,0 +1,47 @@ +module.exports = function(grunt) { + + // load all grunt tasks + require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks); + + grunt.initConfig({ + + compass: { + dev: { + options: { + config: 'sphinx_rtd_theme/sass/config.rb', + basePath: 'sphinx_rtd_theme/sass', + force: true + } + } + }, + + // I use this to build the sphinx_rtd_theme available at https://github.com/snide/sphinx_rtd_theme + copy: { + sphinx_rtd_theme : { + files: [ + { + expand: true, + cwd: 'docs/source/_themes/wyrm_theme', + src: ['**', '!**/theme.sass', '!**/*.css', '!**/config.rb'], + dest: '../sphinx_rtd_theme/sphinx_rtd_theme' + } + ] + } + }, + + exec: { + update: { + cmd: 'bower update' + } + } + + }); + + grunt.loadNpmTasks('grunt-contrib-copy'); + grunt.loadNpmTasks('grunt-exec'); + grunt.loadNpmTasks('grunt-contrib-compass'); + + grunt.registerTask('default', ['exec', 'compass']); + +} + diff --git a/package.json b/package.json new file mode 100644 index 00000000..0e14ce3b --- /dev/null +++ b/package.json @@ -0,0 +1,16 @@ +{ + "name": "sphinx_rtd_theme", + "version": "0.0.11", + "private": true, + "devDependencies": { + "grunt": "~0.4.1", + "grunt-contrib-compass": "~0.2.0", + "grunt-contrib-watch": "~0.4.3", + "grunt-contrib-uglify": "~0.2.0", + "grunt-exec": "~0.4.2", + "grunt-contrib-connect": "0.5.0", + "grunt-contrib-copy": "0.4.1", + "matchdep": "~0.1.2" + } +} +