Comments (15)
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.
@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.
@craigburke Very minimal.
from angular-template-asset-pipeline.
@mrapczynski alright, I'll work this into the next release (should have time next week).
from angular-template-asset-pipeline.
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.
@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.
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.
@craigburke OK, just tried it. No dice.
I configured the plugin like so:
And below is the unminified output - still module name not updated.
Am I missing anything?
from angular-template-asset-pipeline.
Hmmm... what kind of app (Grails, spring boot, etc)... did you try a gradle clean?
from angular-template-asset-pipeline.
@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.
Would you be able to throw this sample project up on github so I could take a look?
from angular-template-asset-pipeline.
@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.
I messed up the docs, the property is moduleNameBase not moduleBaseName. Does changing that help?
from angular-template-asset-pipeline.
@craigburke Sweet! That did it. This is the only issue I had, and it looks fixed. Thanks for all of your help on this.
from angular-template-asset-pipeline.
Awesome! I'm glad you're finding it useful 👍
from angular-template-asset-pipeline.
Related Issues (20)
- Line breaks are not formatted properly HOT 16
- angular-template-asset-pipeline 2.0.1 does not appear to be working HOT 14
- Plugin poping errors at runtime HOT 4
- Module name problem on windows HOT 16
- File path tokenize fails with the use of GenericAssetFile HOT 5
- Template file not being added to the cache HOT 7
- Templates do not work in Grails 3 Jar HOT 18
- Is it possbile to have multiple template folders? HOT 4
- configOptions take no effect for Grails 3 in build.gradle HOT 3
- Error 500 on generated template js files HOT 3
- Mismatch in path vs cache name HOT 1
- Camel Case HOT 5
- Line ends are broken when template html is minimized for <script> tag HOT 6
- Display issue when using templates HOT 1
- Wrong module name if Grails 3 project name is written with snake case HOT 2
- New properties to add all templates to a single module
- Release 2.4.0 HOT 6
- assets.configOptions.angular is not found when application is run in dev environment (no war)) HOT 1
- CRLF not supported in templates HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from angular-template-asset-pipeline.