Code Monkey home page Code Monkey logo

Comments (4)

mikkoh avatar mikkoh commented on August 22, 2024

We should switch the gruntfile generation to be created by the gruntfile editor built into yeoman.

http://yeoman.io/authoring/gruntfile.html

Currently there's an issue because yeoman and grunt both use lodash/underscore templating. This leads to both using the same <%= %> for instance.

from generator-jam3.

miguelmoraleda avatar miguelmoraleda commented on August 22, 2024

I was starting this task using the yeoman gruntfile editor, but it is getting configurations as String, so it is quite complicate to create a big gruntfile...

There is not an issue about lodash/underscore templating. The template system make the difference:

<%= %> ---> when you are using template from outside...
<%%= %> ----> When you want to include internal configurations.

Anyways I agree with using yeoman gruntfile editor, we should just find a nice way to it be readable and easy to maintain.

from generator-jam3.

mikkoh avatar mikkoh commented on August 22, 2024

@miguelmoraleda i know i read that in the docs also. but in practice it wasn't working :( So I refactored it to work for the time being. Earlier today I was able to get a project up and running 100% where I could edit code and everything. Also it's implemented that you can update the model/index.js and call yo jam3:update to create new sections/templates.

from generator-jam3.

miguelmoraleda avatar miguelmoraleda commented on August 22, 2024

@mikkoh cool, anyways it was working for me...FYI: I couldn't use it with your template function... but using this.template works perfectly. The problem is that on your template function you are using templatePath instead of template

from generator-jam3.

Related Issues (20)

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.