Skip to content

Commit

Permalink
reorganizing lib/coffee_script to plain ol' lib
Browse files Browse the repository at this point in the history
  • Loading branch information
jashkenas committed Feb 17, 2010
1 parent 5a81fcd commit 2d0ad73
Show file tree
Hide file tree
Showing 18 changed files with 17 additions and 17 deletions.
4 changes: 2 additions & 2 deletions Cakefile
Expand Up @@ -10,14 +10,14 @@ run: (args) ->
task 'build', 'build the CoffeeScript language from source', ->
fs.readdir('src').addCallback (files) ->
files: 'src/' + file for file in files when file.match(/\.coffee$/)
run ['-o', 'lib/coffee_script'].concat(files)
run ['-o', 'lib'].concat(files)


task 'build:parser', 'rebuild the Jison parser', ->
invoke 'build:compiler'
parser: require('grammar').parser
js: parser.generate()
parser_path: 'lib/coffee_script/parser.js'
parser_path: 'lib/parser.js'
fs.open(parser_path, process.O_CREAT | process.O_WRONLY | process.O_TRUNC, parseInt('0755', 8)).addCallback (fd) ->
fs.write(fd, js)

Expand Down
2 changes: 1 addition & 1 deletion bin/cake
Expand Up @@ -2,6 +2,6 @@

process.mixin(require('sys'));

require.paths.unshift('./lib/coffee_script');
require.paths.unshift('./lib');

require('cake').run();
2 changes: 1 addition & 1 deletion bin/coffee
Expand Up @@ -2,6 +2,6 @@

process.mixin(require('sys'));

require.paths.unshift('./lib/coffee_script');
require.paths.unshift('./lib');

require('command_line').run();
12 changes: 6 additions & 6 deletions documentation/index.html.erb
Expand Up @@ -842,12 +842,12 @@ print reverse 'tpircseeffoc'</textarea>

</div>

<script type="text/javascript" src="lib/coffee_script/rewriter.js"></script>
<script type="text/javascript" src="lib/coffee_script/lexer.js"></script>
<script type="text/javascript" src="lib/coffee_script/parser.js"></script>
<script type="text/javascript" src="lib/coffee_script/scope.js"></script>
<script type="text/javascript" src="lib/coffee_script/nodes.js"></script>
<script type="text/javascript" src="lib/coffee_script/coffee-script.js"></script>
<script type="text/javascript" src="lib/rewriter.js"></script>
<script type="text/javascript" src="lib/lexer.js"></script>
<script type="text/javascript" src="lib/parser.js"></script>
<script type="text/javascript" src="lib/scope.js"></script>
<script type="text/javascript" src="lib/nodes.js"></script>
<script type="text/javascript" src="lib/coffee-script.js"></script>

<script type="text/javascript">
window.repl_compile = function() {
Expand Down
12 changes: 6 additions & 6 deletions index.html
Expand Up @@ -1713,12 +1713,12 @@ <h2 id="change_log">Change Log</h2>

</div>

<script type="text/javascript" src="lib/coffee_script/rewriter.js"></script>
<script type="text/javascript" src="lib/coffee_script/lexer.js"></script>
<script type="text/javascript" src="lib/coffee_script/parser.js"></script>
<script type="text/javascript" src="lib/coffee_script/scope.js"></script>
<script type="text/javascript" src="lib/coffee_script/nodes.js"></script>
<script type="text/javascript" src="lib/coffee_script/coffee-script.js"></script>
<script type="text/javascript" src="lib/rewriter.js"></script>
<script type="text/javascript" src="lib/lexer.js"></script>
<script type="text/javascript" src="lib/parser.js"></script>
<script type="text/javascript" src="lib/scope.js"></script>
<script type="text/javascript" src="lib/nodes.js"></script>
<script type="text/javascript" src="lib/coffee-script.js"></script>

<script type="text/javascript">
window.repl_compile = function() {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "coffee-script",
"lib": "lib/coffee_script/narwhal",
"lib": "lib/narwhal",
"description": "Unfancy JavaScript",
"keywords": ["javascript", "language"],
"author": "Jeremy Ashkenas",
Expand Down

0 comments on commit 2d0ad73

Please sign in to comment.