Permalink
Browse files

initial commit

  • Loading branch information...
0 parents commit 6dec5ece5108d7a5df46d7f9901b09238908e794 @amccollum committed Sep 16, 2011
@@ -0,0 +1,34 @@
+fs = require('fs')
+sys = require('sys')
+{spawn, exec} = require('child_process')
+
+package = JSON.parse(fs.readFileSync('package.json', 'utf8'))
+
+execCmds = (cmds) ->
+ exec cmds.join(' && '), (err, stdout, stderr) ->
+ output = (stdout + stderr).trim()
+ console.log(output + '\n') if (output)
+ throw err if err
+
+task 'build', 'Build the library', ->
+ execCmds [
+ 'pushd src/sel',
+ 'cat _pre.coffee util.coffee find.coffee parser.coffee eval.coffee select.coffee pseudos.coffee > sel.coffee',
+ 'popd',
+ 'coffee --compile --bare --output lib src/sel/sel.coffee',
+ 'coffee --compile --bare --output lib src/extras/ender.coffee',
+ ]
+
+task 'test', 'Build the test suite', ->
+ execCmds [
+ 'coffee --compile --bare --output test src/test/*.coffee',
+
+ 'cat src/test/_pre.html src/test/template.html src/test/_post.html > test/index.html',
+ 'cp src/test/package.json test',
+
+ 'pushd test',
+ '(npm install ender || true)',
+ 'npm install ..',
+ 'node_modules/.bin/ender build es5-basic domready node-compat ender-vows sel',
+ 'popd',
+ ]
20 LICENSE
@@ -0,0 +1,20 @@
+Copyright (c) 2011 Andrew McCollum
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
No changes.
Oops, something went wrong.

0 comments on commit 6dec5ec

Please sign in to comment.