Coder Social home page Coder Social logo

Comments (7)

alvincrespo avatar alvincrespo commented on May 20, 2024

Instead of using regex to find the scripts and concatenate them in that order, couldn't we just have the developer put the order they desire within a property inside of project.properties?

Or if that is inconvenient an xml/json file that would be created by the developer to feed into the build script?

from ant-build-script.

necolas avatar necolas commented on May 20, 2024

Yeah, that is also my preference. Check out #4 too

from ant-build-script.

dholth avatar dholth commented on May 20, 2024

Yes! Exactly! The developer should specify the script order in an XML file. By sheer luck, they have been doing that for us 95% of the time already. It is called index.html.

Otherwise you are just re-implementing the original bug "my scripts are concatenated in a different order compared to the un-compiled development HTML".

It's not a regex, it's an actual HTML parser. It is not hard. One way to do it is with the short Java program from the original bug: h5bp/html5-boilerplate#956 (comment)

from ant-build-script.

bumpux avatar bumpux commented on May 20, 2024

Nice to have this.

from ant-build-script.

roblarsen avatar roblarsen commented on May 20, 2024

State of the union:

Right now, with just Ant, you can just set up your project with a list of files to concatenate. We definitely want to make it easier than that for people who don't want to know anything about Ant, but if you're not scurred, filelist is yer friend. http://ant.apache.org/manual/Types/filelist.html This works for CSS files as well. I always like to invite people to hack on the build script for your own projects. This is a perfect place to do so. FWIW, this is what I do on my own project. I just reqrite the build script to point to specific files and it's magic.

For the no-XML camp, since this is a problem I don't actually have I'm not 100% sure how to solve it. I'm pretty sure a resourcelist http://ant.apache.org/manual/Types/resources.html#resourcelist would give us the list option in about ten minutes. I will try that shortly. I like the option to add url: resources. Pretty sweet for those of us working with our own CDNs who want the single file. Grab it off the CDN, concatenate and go.

I think the parse-the-html piece would be cool. I'm not going to look at it myself since there's definitely a "good enough" solution for now with the properties file approach, but I'd welcome a robust pull request.

from ant-build-script.

franciscolourenco avatar franciscolourenco commented on May 20, 2024

what's the state of this issue?
is it still necessary to set the order in build.xml?
or is dholth java program already included?

from ant-build-script.

roblarsen avatar roblarsen commented on May 20, 2024

closed by the glory of #43

from ant-build-script.

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.