JavaScript Build Process

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • timothytoe

    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.
  • dhtml

    #2
    Re: JavaScript Build Process

    On Mar 5, 10:48 am, timothytoe <timothy...@gma il.comwrote:
    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.
    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:


    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.
    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.


    Comment

    • timothytoe

      #3
      Re: JavaScript Build Process

      On Mar 5, 6:46 pm, dhtml <dhtmlkitc...@g mail.comwrote:
      On Mar 5, 10:48 am, timothytoe <timothy...@gma il.comwrote:
      >
      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.
      >
      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
      >
      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.
      >
      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.o rg/). That'll give me a chance to learn Groovy as well
      as Ant.

      Comment

      • Peter Michaux

        #4
        Re: JavaScript Build Process

        On Mar 5, 10:48 am, timothytoe <timothy...@gma il.comwrote:
        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.c a/article/7346>

        Peter


        Peter

        Comment

        Working...