www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 98ea9c5c26376170e9c487d351b95c56f49914c1
parent a02ed2e6043df7e7b6258f241b67f7f87a7ae496
Author: Peter Krautzberger <p.krautzberger@gmail.com>
Date:   Mon,  3 Aug 2015 10:53:41 +0200

Merge pull request #5 from minrk/component

add component task
Diffstat:
A.gitignore | 1+
MGruntfile.js | 20++++++++++++++++++++
Mpackage.json | 1+
3 files changed, 22 insertions(+), 0 deletions(-)

diff --git a/.gitignore b/.gitignore @@ -0,0 +1 @@ +node_modules diff --git a/Gruntfile.js b/Gruntfile.js @@ -276,10 +276,30 @@ module.exports = function(grunt) { "bower.json", "composer.json" ] + }, + "regex-replace": { + // disable image fonts in default HTML-CSS config + noImageFont: { + src: ['unpacked/jax/output/HTML-CSS/config.js'], + actions: [ + { + name: 'nullImageFont', + search: /imageFont:[^,]+,/, + replace: 'imageFont: null,', + } + ] + } } }); grunt.loadNpmTasks("grunt-contrib-clean"); + grunt.loadNpmTasks('grunt-regex-replace'); + + grunt.registerTask("component", [ + // components-mathjax excludes only PNG fonts + "regex-replace:noImageFont", + "clean:png", + ]); grunt.registerTask("template", [ // **Notes** on the template. When instructions say "Pick one", this means commenting out one item (so that it"s not cleaned). diff --git a/package.json b/package.json @@ -6,6 +6,7 @@ "devDependencies": { "grunt": "^0.4.5", "grunt-contrib-clean": "^0.6.0", + "grunt-regex-replace": "^0.2.6", "matchdep": "*" } }