Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Initial commit: new Helium project.

  • Loading branch information...
commit 82ae79849aa03d115d19982db80559af3a1e111c 0 parents
@jcoglan jcoglan authored
4 .gitignore
@@ -0,0 +1,4 @@
+build
+test/lib
+test/packages.js
+
3  Jakefile
@@ -0,0 +1,3 @@
+PROJECT_DIR = File.expand_path(File.dirname(__FILE__))
+require 'helium/jake'
+
23 jake.yml
@@ -0,0 +1,23 @@
+---
+source_directory: source
+build_directory: build
+layout: together
+
+builds:
+ src:
+ packer: false
+ suffix: false
+ min:
+ shrink_vars: true
+ private: false
+
+packages:
+ youtube-player:
+ files:
+ - youtube-player
+ meta:
+ requires:
+ - JS.Class
+ provides:
+ - YoutubePlayer
+
14 source/youtube-player.js
@@ -0,0 +1,14 @@
+/**
+ * class YoutubePlayer
+ **/
+YoutubePlayer = new JS.Class('YoutubePlayer', {
+ extend: {
+ VERSION: '1.0.0'
+ },
+
+ /**
+ * new YoutubePlayer()
+ **/
+ initialize: function() {}
+});
+
33 test/index.html
@@ -0,0 +1,33 @@
+<!doctype html>
+<html>
+ <head>
+ <meta http-equiv="Content-type" content="text/html; charset=utf-8">
+ <title>YoutubePlayer Tests</title>
+
+ <!-- FIXME replace example.com with your Helium server -->
+ <script type="text/javascript">
+ JSCLASS_PATH = 'http://example.com/js/js.class/2.1.x/build/min';</script>
+
+ <script src="http://example.com/js/js.class/2.1.x/build/min/loader.js" type="text/javascript"></script>
+ <script src="http://example.com/js/packages.js" type="text/javascript"></script>
+
+ <script type="text/javascript">
+ // FIXME declare which remote branches to use
+ // Helium.use('yui', '2.7.0');
+ </script>
+
+ <!-- Package file for youtube-player (run `jake` to generate this) -->
+ <script src="./packages.js" type="text/javascript"></script>
+ </head>
+ <body>
+
+ <script type="text/javascript">
+ require('YoutubePlayer', function() {
+
+ // FIXME write some tests
+ alert('Version: ' + YoutubePlayer.VERSION);
+ });
+ </script>
+
+ </body>
+</html>
Please sign in to comment.
Something went wrong with that request. Please try again.