Comments (7)
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.
Yeah, that is also my preference. Check out #4 too
from ant-build-script.
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.
Nice to have this.
from ant-build-script.
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.
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.
closed by the glory of #43
from ant-build-script.
Related Issues (20)
- Change docs to address confusion HOT 2
- Can't copy minified js directory over to publish HOT 2
- Concatenation after minifying and ADVANCED_OPTIMIZATIONS HOT 5
- Image Optimization Broken on Linux/Mac HOT 9
- Minifying any unconcatenated css files... FileNotFoundException HOT 2
- The gem-sass.jar throws an exception with Foundation 4 HOT 3
- Image Optimization HOT 5
- Rework Image Optimization HOT 15
- CSS reference not updating w/php includes on build HOT 6
- Mavericks Upgrade: Busted Macports for Ant HOT 2
- Unicode characters being inserted between css imports upon concatenation. HOT 5
- css-references not updating in html-file HOT 17
- working with sass stylesheets HOT 1
- problem with advpng and java.. HOT 5
- set language_in option for closure compiler? HOT 6
- Port to NodeJs HOT 1
- css does not minify/concat correctly when using default main.css HOT 7
- ant validate only validates single page HOT 1
- JS files vanished in publish/ directory HOT 1
- How to use this build script outside my project? HOT 5
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 ant-build-script.