
March 5th, 2008, 06:55 PM
| | | JavaScript Build Process
I've been writing PHP scripts to automate my build process for
deployment. I'm not very happy with the result.
There must be proper tools for this. I've seen discussions of Ant.
Would that work for me, or is there something more suitable for a
JavaScript programmer?
Some things I might do are search js files to make sure there are no
more console.log calls, concatenate files. Call optimizers for CSS,
HTML, use gzip.
I know this is not a language question, per se, but I wasn't sure
where else I could ask so many JavaScript programmers how this is
typically handled. |

March 6th, 2008, 02:55 AM
| | | Re: JavaScript Build Process
On Mar 5, 10:48 am, timothytoe <timothy...@gmail.comwrote: Quote:
I've been writing PHP scripts to automate my build process for
deployment. I'm not very happy with the result.
>
| PHP isn't much fun. Quote:
There must be proper tools for this. I've seen discussions of Ant.
Would that work for me, or is there something more suitable for a
JavaScript programmer?
>
| I've done a quick write-up on the APE build process: http://dhtmlkitchen.com/ape/build.html Quote:
Some things I might do are search js files to make sure there are no
more console.log calls, concatenate files. Call optimizers for CSS,
HTML, use gzip.
>
| Stripping out console.log calls -- I should add an ant task for that. Quote:
I know this is not a language question, per se, but I wasn't sure
where else I could ask so many JavaScript programmers how this is
typically handled.
| The ANT user list is a good place to ask. | 
March 7th, 2008, 07:25 PM
| | | Re: JavaScript Build Process
On Mar 5, 6:46 pm, dhtml <dhtmlkitc...@gmail.comwrote: Quote:
On Mar 5, 10:48 am, timothytoe <timothy...@gmail.comwrote:
> Quote:
I've been writing PHP scripts to automate my build process for
deployment. I'm not very happy with the result.
| >
PHP isn't much fun.
> Quote:
There must be proper tools for this. I've seen discussions of Ant.
Would that work for me, or is there something more suitable for a
JavaScript programmer?
| >
I've done a quick write-up on the APE build process:http://dhtmlkitchen.com/ape/build.html
> Quote:
Some things I might do are search js files to make sure there are no
more console.log calls, concatenate files. Call optimizers for CSS,
HTML, use gzip.
| >
Stripping out console.log calls -- I should add an ant task for that.
> Quote:
I know this is not a language question, per se, but I wasn't sure
where else I could ask so many JavaScript programmers how this is
typically handled.
| >
The ANT user list is a good place to ask.
| Thanks Krukow and dhtml,
Ant looks promising. When I get time, I'm going to learn Gant (http://
gant.codehaus.org/). That'll give me a chance to learn Groovy as well
as Ant. | 
March 8th, 2008, 05:25 AM
| | | Re: JavaScript Build Process
On Mar 5, 10:48 am, timothytoe <timothy...@gmail.comwrote: Quote:
I've been writing PHP scripts to automate my build process for
deployment. I'm not very happy with the result.
>
There must be proper tools for this. I've seen discussions of Ant.
Would that work for me, or is there something more suitable for a
JavaScript programmer?
>
Some things I might do are search js files to make sure there are no
more console.log calls, concatenate files. Call optimizers for CSS,
HTML, use gzip.
>
I know this is not a language question, per se, but I wasn't sure
where else I could ask so many JavaScript programmers how this is
typically handled.
| Creating a build process will only be a couple hundred lines of code
and is specific to your situation. It may be very hard to find a
prepackaged tool to do the job.
I wrote a blog article about this recently
<URL: http://peter.michaux.ca/article/7346>
Peter
Peter | | Thread Tools | Search this Thread | | | |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | | | | What is Bytes?
We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights.
Get the best answers to your questions from over 205,414 network members.
|