Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 26 lines (20 sloc) 0.655 kb
1752e4b Victor Costan Build system + JSlinted javascript.
authored
1 # Output directory.
2 directory 'bin'
3
4 # Development binary.
5 source_files = Dir['src/next_editor/*.js'].sort
6 file 'bin/next_editor.js' => source_files do
7 Kernel.system 'cat src/next_editor/*.js > bin/next_editor.js'
8 end
9
10 # Production binary.
11 file 'bin/next_editor.min.js' => 'bin/next_editor.js' do
bb0d53e Victor Costan Better code for hiding the textarea in the new UI.
authored
12 Kernel.system 'juicer merge --force bin/next_editor.js'
1752e4b Victor Costan Build system + JSlinted javascript.
authored
13 end
14
15 # Build everything by default.
16 task :default => 'bin/next_editor.min.js'
4814b1c Victor Costan HTTP server for testing.
authored
17
18 task :server do
19 require 'rubygems'
20 require 'webrick'
21
22 server = WEBrick::HTTPServer.new :Port => 3000, :DocumentRoot => '.'
23 ['INT', 'TERM'].each { |signal| trap(signal) { server.shutdown } }
24 server.start
25 end
Something went wrong with that request. Please try again.