Coder Social home page Coder Social logo

Comments (6)

mikesmithson avatar mikesmithson commented on July 24, 2024

+1 for this as well.

from jasmine-maven-plugin.

marceloverdijk avatar marceloverdijk commented on July 24, 2024

+1 as my 3th party libs are in src/main/webapp/js/lib
and my coffeescript sources are in src/main/coffee

from jasmine-maven-plugin.

klieber avatar klieber commented on July 24, 2024

+1
I have an overlay containing scripts I need. Currently this is how I workaround the limitation:

<configuration>
  <jsSrcDir>${project.basedir}</jsSrcDir>
  <sourceIncludes>
    <include>target/overlay/scripts/*.js</include>
    <include>src/main/webapp/resources/scripts/*.js</include>
    <include>src/main/webapp/resources/scripts/*.coffee</include>
  </sourceIncludes>
</configuration>

Seems to work OK. Only downside is that I have to use dependency:unpack to unpack the overlay prior to the test phase so that the target/overlay/scripts directory exists. It'd be neat if the plugin could somehow just take care of that step for me but its not a big deal.

from jasmine-maven-plugin.

AGresvig avatar AGresvig commented on July 24, 2024

+1
We have a module for shared assets, which is unpacked to /target on build.

But @klieber, I was not able to get your workaround working. The entire contents of ${project.basedir} is included on the server, not just what I specify in . Any idea? Are you excluding anything? Does this still work for you with 1.3.1.1?

Thanks

from jasmine-maven-plugin.

AGresvig avatar AGresvig commented on July 24, 2024

I was able to get @klieber 's approach working for this now, but I can't say its optimal, as assets get very clunky paths on the jasmine bdd server.. Example: localhost:8234/src/target/MyApp-1.2-SNAPSHOT/assets/js/app/app.js..

Has anyone gotten a slicker workaround to using multiple source-dirs?

from jasmine-maven-plugin.

AGresvig avatar AGresvig commented on July 24, 2024

This would give us exactly what we need: #162
Is it in the roadmap for next release?

from jasmine-maven-plugin.

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.