Code Monkey home page Code Monkey logo

Comments (16)

pkra avatar pkra commented on June 14, 2024

Thank for reporting this here @mz2. I'm afraid it works fine for me on [email protected], node 0.10.31, ubuntu 14.10, so I'm not sure what to do.

from mathjax-grunt-cleaner.

mz2 avatar mz2 commented on June 14, 2024

Weeeeeird. I don't think it's a version thing -- my grunt-cli is exactly the same version, node is 0.10.33 so almost exactly the same.

Should the gruntfile included in the repository, with the task "template" work out of the box?

from mathjax-grunt-cleaner.

pkra avatar pkra commented on June 14, 2024

my grunt-cli is exactly the same version, node is 0.10.33 so almost exactly the same.

Ugh -- weird indeed.

Should the gruntfile included in the repository, with the task "template" work out of the box?

Yes. (Well, npm install is necessary ;-) .) I'll try to spin up a clean VM later to test this.

from mathjax-grunt-cleaner.

mz2 avatar mz2 commented on June 14, 2024

Yep, npm install I did of course. My computer has clearly eaten some crazy pills.

from mathjax-grunt-cleaner.

pkra avatar pkra commented on June 14, 2024

Ah... played with a few vagrant boxes, and now I can reproduce this, even on my actual machine. darn...

from mathjax-grunt-cleaner.

pkra avatar pkra commented on June 14, 2024

After some cleaning up, everything seems to work fine. Now if only I understood what just happened...

from mathjax-grunt-cleaner.

mz2 avatar mz2 commented on June 14, 2024

How bizarre. Any luck? I haven't had any. What do you mean by a clean btw in this context?

from mathjax-grunt-cleaner.

pkra avatar pkra commented on June 14, 2024

Well, I don't really understand what happened :-(

On the VM, perhaps the need for no-bin-links led to problems. On my local machine, maybe the mix of various node_module folders higher up in the folder hierarchy confused things -- I really don't understand node/npm well enough.

I would try cleaning up all local and global npm installs (if you can do that). That should count as clean, I hope :-(

from mathjax-grunt-cleaner.

mz2 avatar mz2 commented on June 14, 2024

Hmm, can't really do that very systematically. The only relevant NPM package that I would have installed is grunt-cli though, perhaps a version mismatch with that and the rest of grunt could cause it?

from mathjax-grunt-cleaner.

pkra avatar pkra commented on June 14, 2024

Hm. Seems unlikely but npm list and npm -g list should allow you to check.

from mathjax-grunt-cleaner.

pkra avatar pkra commented on June 14, 2024

I just spun up a new VM (vagrant's default hashicorp/precise32 image, installed nodejs) and I ran into your problem again. Not sure if it's the VM setup (virtualbox has trouble with shared folders and binary links; I wasn't using the vagrant folder but no idea if that messes things up).

I don't see anything wrong with the actual grunt-file (it's pretty straight forward stuff, copied from the grunt homepage example). In short, I'm still at a loss :-(

from mathjax-grunt-cleaner.

mz2 avatar mz2 commented on June 14, 2024

An idea: how about also fixing grunt-cli version by running it from inside the directory? It doesn't need to be installed globally. That way you can take out the version dependency at least as a factor.

from mathjax-grunt-cleaner.

pkra avatar pkra commented on June 14, 2024

Can you try if stripping out the comments helps?

from mathjax-grunt-cleaner.

pkra avatar pkra commented on June 14, 2024

Something like

module.exports = function(grunt) {
    grunt.initConfig({
        pkg: grunt.file.readJSON("package.json"),
        clean: {
            unpacked: [ "unpacked" ],
            packed: [ "config", "docs", "extensions", "jax", "localization", "MathJax.js" ],
            allConfigs: [ "config", "unpacked/config" ],
            fontAsana: [ "fonts/HTML-CSS/Asana-Math", "jax/output/HTML-CSS/fonts/Asana-Math", "unpacked/jax/output/HTML-CSS/fonts/Asana-Math", "jax/output/SVG/fonts/Asana-Math", "unpacked/jax/output/SVG/fonts/Asana-Math" ],
            fontGyrePagella: [ "fonts/HTML-CSS/Gyre-Pagella", "jax/output/HTML-CSS/fonts/Gyre-Pagella", "unpacked/jax/output/HTML-CSS/fonts/Gyre-Pagella", "jax/output/SVG/fonts/Gyre-Pagella", "unpacked/jax/output/SVG/fonts/Gyre-Pagella" ],
            fontGyreTermes: [ "fonts/HTML-CSS/Gyre-Termes", "jax/output/HTML-CSS/fonts/Gyre-Termes", "unpacked/jax/output/HTML-CSS/fonts/Gyre-Termes", "jax/output/SVG/fonts/Gyre-Termes", "unpacked/jax/output/SVG/fonts/Gyre-Termes" ],
            fontLatinModern: [ "fonts/HTML-CSS/Latin-Modern", "jax/output/HTML-CSS/fonts/Latin-Modern", "unpacked/jax/output/HTML-CSS/fonts/Latin-Modern", "jax/output/SVG/fonts/Latin-Modern", "unpacked/jax/output/SVG/fonts/Latin-Modern" ],
            fontNeoEuler: [ "fonts/HTML-CSS/Neo-Euler", "jax/output/HTML-CSS/fonts/Neo-Euler", "unpacked/jax/output/HTML-CSS/fonts/Neo-Euler", "jax/output/SVG/fonts/Neo-Euler", "unpacked/jax/output/SVG/fonts/Neo-Euler" ],
            fontStix: [ "fonts/HTML-CSS/STIX", "jax/output/HTML-CSS/fonts/STIX", "unpacked/jax/output/HTML-CSS/fonts/STIX", "jax/output/SVG/fonts/STIX", "unpacked/jax/output/SVG/fonts/STIX" ],
            fontStixWeb: [ "fonts/HTML-CSS/STIX-Web", "jax/output/HTML-CSS/fonts/STIX-Web", "unpacked/jax/output/HTML-CSS/fonts/STIX-Web", "jax/output/SVG/fonts/STIX-Web", "unpacked/jax/output/SVG/fonts/STIX-Web" ],
            fontTeX: [ "fonts/HTML-CSS/TeX", "jax/output/HTML-CSS/fonts/TeX", "unpacked/jax/output/HTML-CSS/fonts/TeX", "jax/output/SVG/fonts/TeX", "unpacked/jax/output/SVG/fonts/TeX" ],
            dropFonts: [ "fonts" ],
            eot: [ "fonts/**/eot" ],
            otf: [ "fonts/**/otf" ],
            png: [ "fonts/**/png" ],
            svg: [ "fonts/**/svg" ],
            woff: [ "fonts/**/woff" ],
            asciimathInput: [ "config/AM*", "config/TeX-MML-AM*", "jax/input/AsciiMath", "unpacked/config/AM*", "unpacked/config/TeX-MML-AM*", "unpacked/jax/input/AsciiMath" ],
            mathmlInput: [ "config/MML*", "config/TeX-MML*", "config/TeX-AMS-MML*", "jax/input/TeX", "unpacked/config/TeX*", "unpacked/jax/input/TeX" ],
            texInput: [ "config/TeX*", "jax/input/TeX", "unpacked/config/TeX*", "unpacked/jax/input/TeX" ],
            extensionsAsciimath: [ "extensions/asciimath2jax.js", "unpacked/extensions/asciimath2jax.js" ],
            extensionsMathml: [ "extensions/MathML", "extensions/mml2jax.js", "unpacked/extensions/MathML", "unpacked/extensions/mml2jax.js" ],
            extensionsTeX: [ "extensions/TeX", "extensions/jsMath2jax.js", "extensions/tex2jax.js", "unpacked/extensions/TeX", "unpacked/extensions/jsMath2jax.js", "unpacked/extensions/tex2jax.js" ],
            extensionHtmlCss: [ "extensions/HTML-CSS", "unpacked/extensions/HTML-CSS" ],
            htmlCssOutput: [ "config/*HTMLorMML.js", "config/*HTMLorMML-full.js", "unpacked/config/*HTMLorMML.js", "unpacked/config/*HTMLorMML-full.js", "jax/output/HTML-CSS", "unpacked/jax/output/HTML-CSS" ],
            mathmlOutput: [ "config/*HTMLorMML.js", "config/*HTMLorMML-full.js", "unpacked/config/*HTMLorMML.js", "unpacked/config/*HTMLorMML-full.js", "jax/output/NativeMML", "unpacked/jax/output/NativeMML" ],
            svgOutput: [ "config/*SVG.js", "config/*SVG-full.js", "unpacked/config/*HTMLorMML.js", "unpacked/config/*HTMLorMML-full.js", "jax/output/SVG", "unpacked/jax/output/SVG" ],
            commonHtmlOutput: [ "configs", "unpacked/config/", "jax/output/CommonHTML", "unpacked/jax/output/CommonHTML", "extensions/CHTML-preview.js", "unpacked/extensions/CHTML-preview.js" ],
            locales: [ "localization", "unpacked/localization" ],
            miscConfig: [ "config/local", "unpacked/config/local", "config/Accessible-full.js", "unpacked/config/Accessible-full.js", "config/Accessible.js", "unpacked/config/Accessible.js", "config/default.js", "unpacked/config/default.js", "config/Safe.js", "unpacked/config/Safe.js" ],
            miscExtensions: [ "extensions/FontWarnings.js", "extensions/HelpDialog.js", "extensions/MatchWebFonts.js", "extensions/MathEvents.js", "extensions/MathMenu.js", "extensions/MathZoom.js", "extensions/Safe.js", "extensions/CHTML-preview.js", "unpacked/extensions/FontWarnings.js", "unpacked/extensions/HelpDialog.js", "unpacked/extensions/MatchWebFonts.js", "unpacked/extensions/MathEvents.js", "unpacked/extensions/MathMenu.js", "unpacked/extensions/MathZoom.js", "unpacked/extensions/Safe.js", "unpacked/extensions/CHTML-preview.js" ],
            images: [ "images" ],
            notcode: [ ".gitignore", "docs", "test", "CONTRIBUTING.md", "README-branch.txt", "README.md", "bower.json", "composer.json" ]
        }
    }), grunt.loadNpmTasks("grunt-contrib-clean"), grunt.registerTask("template", [ "clean:unpacked", "clean:packed", "clean:allConfigs", "clean:fontAsana", "clean:fontGyrePagella", "clean:fontGyreTermes", "clean:fontLatinModern", "clean:fontNeoEuler", "clean:fontStix", "clean:fontStixWeb", "clean:fontTeX", "clean:dropFonts", "clean:eot", "clean:otf", "clean:png", "clean:svg", "clean:woff", "clean:asciimathInput", "clean:mathmlInput", "clean:texInput", "clean:htmlCssOutput", "clean:mathmlOutput", "clean:svgOutput", "clean:extensionsAsciimath", "clean:extensionsMathml", "clean:extensionsTeX", "clean:extensionHtmlCss", "clean:locales", "clean:miscConfig", "clean:images", "clean:notcode" ]), 
    grunt.registerTask("MML_SVG_TeX", [ "clean:unpacked", "clean:allConfigs", "clean:fontAsana", "clean:fontGyrePagella", "clean:fontGyreTermes", "clean:fontLatinModern", "clean:fontNeoEuler", "clean:fontStix", "clean:fontStixWeb", "clean:dropFonts", "clean:eot", "clean:otf", "clean:png", "clean:svg", "clean:woff", "clean:asciimathInput", "clean:texInput", "clean:htmlCssOutput", "clean:mathmlOutput", "clean:extensionsAsciimath", "clean:extensionsTeX", "clean:extensionHtmlCss", "clean:locales", "clean:miscConfig", "clean:images", "clean:notcode" ]), 
    grunt.registerTask("mjNode", [ "clean:packed", "clean:allConfigs", "clean:dropFonts", "clean:htmlCssOutput", "clean:locales", "clean:miscConfig", "clean:images", "clean:notcode", "clean:miscExtensions" ]);
};

from mathjax-grunt-cleaner.

mz2 avatar mz2 commented on June 14, 2024

@pkra that indeed works -- woop woop! Is the most likely explanation then that I'd left some subtle error in the Gruntfile when modifying it?

from mathjax-grunt-cleaner.

pkra avatar pkra commented on June 14, 2024

Glad this helped.

Is the most likely explanation then that I'd left some subtle error in the Gruntfile when modifying it?

I don't think so. I could reproduce it on a clean installation of everything. My guess is that some grunt component is getting tripped up by the comments but this sounds very odd. I'll try to narrow it to a particular part.

from mathjax-grunt-cleaner.

Related Issues (7)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.