Giter VIP home page Giter VIP logo

Comments (5)

axemclion avatar axemclion commented on June 6, 2024

@cowboy This was one of the Grunt 0.4.0 things that I had been holding off from doing. Most grunt multi-tasks are file based. This task however requires URL and hence, src or dest options in a task may not make sense. With the options object, the task will end up looking something like

'saucelabs-qunit' : {
   task1 : {
       options: { 
            urls : [] <= URLs are like files, so they don't belong to the options object there. 
            browser: [], timeout : 10, // and more properties......
       } ,
       url : [] /// <= I would prefer to use this, since URLs are similar to files.
  },
   task2: {
       options: { 
            browser: [], timeout : 10, // and more properties......
    },
   options : {
       url : [] // <= URL is NOT a task level option, so it should not be inside the options object. 
   }
}

All of the options will have to be specified under either the task-level options object, or target-level options.
Basically, I would like URLs to available as task1.url and not task1.options.url.

Are there any other multi-task examples that rely are not file-centric where URLs are specified in a different manner ?

from grunt-saucelabs.

axemclion avatar axemclion commented on June 6, 2024

Had a good conversation on this topic with @shama at on IRC #grunt. Given that the tasks that this plugin exposes are very similar to qunit, it makes sense have the input arguments exactly like it would be for qunit. Note that this will be a breaking change and will update the version according to https://github.com/dominictarr/semver-ftw#major-breaking-changes

from grunt-saucelabs.

axemclion avatar axemclion commented on June 6, 2024

Fixed in 4c6eca6

from grunt-saucelabs.

shama avatar shama commented on June 6, 2024

👍

from grunt-saucelabs.

cowboy avatar cowboy commented on June 6, 2024

Thanks!!

from grunt-saucelabs.

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.