   rmdirp dir_path
 
   fs.mkdirSync dir_path
-  fs.mkdirSync dir_path + '/' + lang.css.dest
-  fs.mkdirSync dir_path + '/' + lang.js.dest
+  fs.mkdirSync path.join(dir_path, lang.css.dest)
+  fs.mkdirSync path.join(dir_path, lang.js.dest)
 
 # recursively remove folder if exist
 rmdirp = (path) ->

    manifest_json.version = argv.version

  for file_name in ['font', '_locales', 'license.txt']
    fs.copySync file_name, compile_path + '/' + file_name
  fs.copySync resources_path + '/img', compile_path + '/img'

gulp.task 'compile-zip', ['compile-main', 'compile-others'], ->
  gulp.src(compile_path + '/**')
    .pipe(plugins.zip(argv.version + '.zip'))
    .pipe(gulp.dest('.'))

gulp.task 'compile', ['compile-zip'], ->
  rmdirp compile_path # useless after zipped


argv = require('yargs').argv
fs = require 'fs-extra'
path = require 'path'
plugins = require('gulp-load-plugins')()
yamljs = require 'yamljs'

