Connecting Tech Pros Worldwide Help | Site Map
 
 
LinkBack Thread Tools Search this Thread
  #1  
Old March 5th, 2008, 06:55 PM
timothytoe
Guest
 
Posts: n/a
Default 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.



  #2  
Old March 6th, 2008, 02:55 AM
dhtml
Guest
 
Posts: n/a
Default 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.


  #3  
Old March 7th, 2008, 07:25 PM
timothytoe
Guest
 
Posts: n/a
Default 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.
  #4  
Old March 8th, 2008, 05:25 AM
Peter Michaux
Guest
 
Posts: n/a
Default 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
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

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.