n class="keyword">if</span> generatedSourceMap
      fs.writeFile sourceMapPath, generatedSourceMap, (err) -&gt;
        <span class="keyword">if</span> err
          printLine <span class="string">"Could not write source map: <span class="subst">#{err.message}</span>"</span>
  exists jsDir, (itExists) -&gt;
    <span class="keyword">if</span> itExists <span class="keyword">then</span> compile() <span class="keyword">else</span> exec <span class="string">"mkdir -p <span class="subst">#{jsDir}</span>"</span>