Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Reorganise as a Helium-style project.

  • Loading branch information...
commit 05b632adf346b9f63c1615f54b6c0eba21ea45af 1 parent 73c7127
James Coglan authored September 18, 2009
5  .gitignore
... ...
@@ -1 +1,4 @@
1  
-*-min.js
  1
+build
  2
+test/lib
  3
+test/packages.js
  4
+
3  Jakefile
... ...
@@ -0,0 +1,3 @@
  1
+PROJECT_DIR = File.expand_path(File.dirname(__FILE__))
  2
+require 'helium/jake'
  3
+
20  jake.yml
... ...
@@ -1,25 +1,23 @@
1 1
 ---
2  
-source_directory:     src
3  
-build_directory:      .
  2
+source_directory:     source
  3
+build_directory:      build
4 4
 layout:               together
5  
-header:               header
  5
+
6 6
 builds:
  7
+  src:
  8
+    packer:           false
  9
+    suffix:           false
7 10
   min:
8 11
     shrink_vars:      true
9  
-    private:          true
  12
+    private:          false
10 13
 
11 14
 packages:
12  
-
13 15
   flickr:
14 16
     files:
15 17
       - flickr
16  
-      - photo
17  
-      - jsonp
18 18
     meta:
19  
-      provides:
20  
-        - Flickr
21  
-        - Flickr.Client
22  
-        - Flickr.JSONP
23 19
       requires:
24 20
         - JS.Class
  21
+      provides:
  22
+        - Flickr
25 23
 
0  src/flickr.js → source/flickr.js
File renamed without changes
0  src/jsonp.js → source/jsonp.js
File renamed without changes
0  src/photo.js → source/photo.js
File renamed without changes
7  src/header.js
... ...
@@ -1,7 +0,0 @@
1  
-/*
2  
-Flickr API client library
3  
-Copyright (c) 2009 theOTHERmedia ltd.
4  
-@author James Coglan
5  
-http://github.com/othermedia/flickr
6  
-*/
7  
-
18  test.html
... ...
@@ -1,18 +0,0 @@
1  
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
2  
-
3  
-<html>
4  
-<head>
5  
-  <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
6  
-  <title>Flickr API tests</title>
7  
-  <script src="http://cdn.othermedia.com/js-class/2.1.0/loader.js" type="text/javascript"></script>
8  
-  <script src="./flickr-min.js" type="text/javascript"></script>
9  
-</head>
10  
-<body>
11  
-  
12  
-  <script type="text/javascript" language="javascript" charset="utf-8">
13  
-  Client = new Flickr.Client('63bb4efae64c3c04510c484dcdaef263');
14  
-  </script>
15  
-  
16  
-</body>
17  
-</html>
18  
-
32  test/index.html
... ...
@@ -0,0 +1,32 @@
  1
+<!doctype html>
  2
+<html>
  3
+  <head>
  4
+    <meta http-equiv="Content-type" content="text/html; charset=utf-8">
  5
+    <title>Flickr Tests</title>
  6
+    
  7
+    <script type="text/javascript">
  8
+    JSCLASS_PATH = 'http://localhost:9292/js/js.class/2.1.x/build/min';</script>
  9
+    
  10
+    <script src="http://localhost:9292/js/js.class/2.1.x/build/min/loader.js" type="text/javascript"></script>
  11
+    <script src="http://localhost:9292/js/packages.js" type="text/javascript"></script>
  12
+    
  13
+    <script type="text/javascript">
  14
+    // FIXME declare which remote branches to use
  15
+    // Helium.use('yui', '2.7.0');
  16
+    </script>
  17
+    
  18
+    <!-- Package file for flickr (run `jake` to generate this) -->
  19
+    <script src="./packages.js" type="text/javascript"></script>
  20
+  </head>
  21
+  <body>
  22
+    
  23
+    <script type="text/javascript">
  24
+    require('Flickr', function() {
  25
+        
  26
+        Client = new Flickr.Client('63bb4efae64c3c04510c484dcdaef263');
  27
+        window.console && console.log(Client);
  28
+    });
  29
+    </script>
  30
+    
  31
+  </body>
  32
+</html>

0 notes on commit 05b632a

Please sign in to comment.
Something went wrong with that request. Please try again.