Skip to content

Commit

Permalink
Rename dist to pkg
Browse files Browse the repository at this point in the history
  • Loading branch information
e0da committed Apr 4, 2013
1 parent bbb4579 commit 85acc33
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .gitignore
@@ -1,2 +1,2 @@
dist/*
lib/*
pkg
lib
8 changes: 4 additions & 4 deletions Cakefile
Expand Up @@ -3,7 +3,7 @@ fs = require 'fs'
{print} = require 'util'
{spawn, exec} = require 'child_process'

dist_files = [
pkg_files = [
'background.html'
'popout.html'
'popout_for_youtube.css'
Expand All @@ -20,7 +20,7 @@ version = ->
JSON.parse(fs.readFileSync('manifest.json')).version

zip_out = ->
"dist/popout_for_youtube-#{version()}.zip"
"pkg/popout_for_youtube-#{version()}.zip"

build = (watch=false) ->
options = ['-w', '-c', '-o', 'lib', 'src']
Expand All @@ -32,8 +32,8 @@ build = (watch=false) ->
print data.toString()

zip = ->
try fs.mkdirSync 'dist', 0o0755
exec "zip -r #{zip_out()} #{dist_files}"
try fs.mkdirSync 'pkg', 0o0755
exec "zip -r #{zip_out()} #{pkg_files}"

task 'build', 'build all CoffeeScript in src to JavaScript in lib', ->
build()
Expand Down

0 comments on commit 85acc33

Please sign in to comment.