Skip to content
This repository was archived by the owner on Oct 19, 2018. It is now read-only.

Commit 23439e8

Browse files
author
Barrie Hadfield
committed
router on its own
1 parent ae36eb0 commit 23439e8

File tree

6 files changed

+7775
-2
lines changed

6 files changed

+7775
-2
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Hyperloop JS
22

3+
TODO: Docs about router
4+
35
### Hyperloop.js
46

57
Hyperloop client-side including:

Rakefile

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,10 @@ require 'opal-browser'
88
require 'opal-jquery'
99
require 'uglifier'
1010

11-
desc 'Build hyperloop-js, hyperloop-compiler.js, hyperloop-opal.js'
11+
desc 'Build hyperloop-js, hyperloop-compiler.js, hyper-router.js'
1212
task :build do
1313
Opal.append_path 'hyperloop'
14+
1415
puts "About to build hyperloop.js"
1516
File.binwrite 'hyperloop.js', Opal::Builder.build('hyperloop').to_s
1617
puts "done"
@@ -19,6 +20,10 @@ task :build do
1920
File.binwrite 'hyperloop-compiler.js', Opal::Builder.build('hyperloop-compiler').to_s
2021
puts "done"
2122

23+
puts "About to build hyper-router.js"
24+
File.binwrite 'hyper-router.js', Opal::Builder.build('hyper-router').to_s
25+
puts "done"
26+
2227
# puts "About to build opal.js"
2328
# File.binwrite 'opal.js', Opal::Builder.build('opal').to_s
2429
# puts "done"
@@ -41,6 +46,12 @@ task :minify do
4146
File.open(js_min_file, "w").write(Uglifier.new.compile(File.read(js_file)))
4247
puts "done"
4348

49+
puts "About to build hyper-router.min.js"
50+
js_file = "hyper-router.js"
51+
js_min_file = "./dist/hyper-router.min.js"
52+
File.open(js_min_file, "w").write(Uglifier.new.compile(File.read(js_file)))
53+
puts "done"
54+
4455
# puts "About to build opal.min.js"
4556
# js_file = "opal.js"
4657
# js_min_file = "./dist/opal.min.js"

dist/hyper-router.min.js

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)