Skip to content

introduce grunt #97

Closed
Closed

Description

@solygen
  • concat/minify css files
  • include jshint check
  • minify html
  • ...

In case the team don't mind i would realize some simple tasks in a feature branch.

Activity

  1. jerone commented on May 14, 2014

    @jerone
    Contributor

    +1

    Have to wait for @sizzlemctwizzle to include you into the team or you can submit a PR.

  2. sizzlemctwizzle commented on May 14, 2014

    @sizzlemctwizzle
    Member

    @solygen You've been added to the team. You can push your branch to this repo and submit a pull request when you're ready for us to review it.

  3. solygen commented on May 15, 2014

    @solygen
    Author

    I did not get the dev environment running... i've started with node js a few weeks ago. So please someone be so kind and take a look at my changes.

    jshint will still fail at lib/muExpress.js

    The '__proto__' property is deprecated.
    

    htmlmin will fail for views/userAdmin.html

    Parse Error: <option value="{{{val}}}" {{#selected}}selected="{{selected}}"{{/selected}}>
    

    Perhaps someone with deeper understandings could take a look at it.

  4. cletusc commented on May 15, 2014

    @cletusc
    Contributor

    It probably won't pass on a mustache file as-is (and we shouldn't be minifying those anyways). If anything, templates should be preprocessed, not minified. Look into grunt-mustache-precompile for that.

    As for why it is failing, {{#selected}} is within the attributes section of the option tag and {, #, and } are invalid characters for an attribute name.

  5. sizzlemctwizzle commented on Jun 11, 2014

    @sizzlemctwizzle
    Member

    This would only work on the public folder.

  6. solygen commented on Jun 13, 2014

    @solygen
    Author

    How about just reverting the html minify part and putting everything else on the road?

    Imho for the first step the most important part is to introduce a simple grunt infrastructure and guarantee code quality/standards by using the jshint task.

  7. jerone commented on Jun 13, 2014

    @jerone
    Contributor

    How about just reverting the html minify part and putting everything else on the road?

    HTML minify or preprocessed can always be added later.
    Can you update the branch with the latest commits...

    Still +1 on this.

  8. Martii commented on Jun 13, 2014

    @Martii
    Member

    guarantee code quality/standards

    I don't always agree with these types of analyzers especially since the ES standards are evolving so we would need to keep right on the bleeding edge of every implementation of JavaScript and it's variants in every released browser... which is difficult to do. The analyzing in Ace is already dated in a few areas too but luckily it isn't in most peoples way.


    Leaning towards -1 due to possible licensing conflicts with their CLA.

  9. jerone commented on Nov 25, 2014

    @jerone
    Contributor

    JavaScript & CSS minification has already implemented with express-minify.
    HTML minification is still optional.

    @Martii Are you still -1 👎 on this enhancement to implement JSHint with Grunt (CLA or styleguide conflicts)?

  10. Martii commented on Nov 25, 2014

    @Martii
    Member

    Well based off of #406 issues I would have to give it a -1 just due to that... but there is always the possibility that user error came into play e.g. misconfigured... but the CLA is something that's not going to happen any time soon. We can revisit this if it becomes a necessity but closing... leave his branch on OpenUserJS.org though.

    See also:

  11. added
    wontfixNope, nada, zip, zilch.
    and removed
    mightfixEhh maybe... convince us all...
    on Mar 27, 2015
  12. locked as resolved and limited conversation to collaborators on Apr 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureSomething we don't already have implemented to the best of knowledge but would like to see.wontfixNope, nada, zip, zilch.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions