Giter Site home page Giter Site logo

Comments (15)

mrapczynski avatar mrapczynski commented on July 20, 2024

Ah, I read your notes more closely and it mentions that the module name is derived from the folders. Can we make this more flexible? Maybe add a config option in the Gradle file to explicitly set a module name if one is not detected through your current approach?

from angular-template-asset-pipeline.

craigburke avatar craigburke commented on July 20, 2024

@mrapczynski that seems reasonable especially for the case where you have everything in a single module. I'm curious, what does you directory structure look like currently?

from angular-template-asset-pipeline.

mrapczynski avatar mrapczynski commented on July 20, 2024

@craigburke Very minimal.

screen shot 2015-04-23 at 5 21 01 pm

from angular-template-asset-pipeline.

craigburke avatar craigburke commented on July 20, 2024

@mrapczynski alright, I'll work this into the next release (should have time next week).

from angular-template-asset-pipeline.

craigburke avatar craigburke commented on July 20, 2024

In thinking about it, it probably makes sense to just add a moduleNameBase property:

moduleNameBase: 'fhdaApp'

This would handle your particular case, but would still allow for you to put templates in submodules down the road if they are in the appropriate folder.

For example, a template in the /ng-views/directives folder could result in a template being added at fhdaApp.directives

from angular-template-asset-pipeline.

mrapczynski avatar mrapczynski commented on July 20, 2024

@craigburke That sounds like a good solution. Your directory handling is nice, and is definitely functionality that should stick around.

For now, I created a cludgy Gradle task that checks the asset output and puts the module name into wherever it is missing from. Looking forward to this update.

from angular-template-asset-pipeline.

craigburke avatar craigburke commented on July 20, 2024

Ok, I just published version 2.1.0 with this change. Give it a spin and let me know how it works for you.

from angular-template-asset-pipeline.

mrapczynski avatar mrapczynski commented on July 20, 2024

@craigburke OK, just tried it. No dice.

I configured the plugin like so:

screen shot 2015-04-28 at 8 50 14 am

And below is the unminified output - still module name not updated.

screen shot 2015-04-28 at 8 50 49 am

Am I missing anything?

from angular-template-asset-pipeline.

craigburke avatar craigburke commented on July 20, 2024

Hmmm... what kind of app (Grails, spring boot, etc)... did you try a gradle clean?

from angular-template-asset-pipeline.

mrapczynski avatar mrapczynski commented on July 20, 2024

@craigburke Just a plain Gradle Java app with Spring MVC (no Spring Boot). I am building out a template project that my colleagues will clone for training and to create new Angular projects.

To test the 2.1.0 version, I actually had a brand new project where I had not yet done the asset compile. After updating the artifacts, I ran the first build and got the result shown in my last comment.

I'll be working at this most of the day so anything you want to try or debug, I'm up for it.

from angular-template-asset-pipeline.

craigburke avatar craigburke commented on July 20, 2024

Would you be able to throw this sample project up on github so I could take a look?

from angular-template-asset-pipeline.

mrapczynski avatar mrapczynski commented on July 20, 2024

@craigburke Yes, here you go: https://github.com/mrapczynski/spring-banner-app-template

Our build refers to an internal Maven repo and some dependencies that will not resolve in Gradle so comment out accordingly

from angular-template-asset-pipeline.

craigburke avatar craigburke commented on July 20, 2024

I messed up the docs, the property is moduleNameBase not moduleBaseName. Does changing that help?

from angular-template-asset-pipeline.

mrapczynski avatar mrapczynski commented on July 20, 2024

@craigburke Sweet! That did it. This is the only issue I had, and it looks fixed. Thanks for all of your help on this.

screen shot 2015-04-28 at 9 32 01 am

from angular-template-asset-pipeline.

craigburke avatar craigburke commented on July 20, 2024

Awesome! I'm glad you're finding it useful 👍

from angular-template-asset-pipeline.

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.