Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

refactor for latest component(1)

  • Loading branch information...
commit 8193738dab29cd536738dd6a8714df109a621ee1 1 parent c482d90
TJ Holowaychuk authored August 11, 2012
2  .gitignore
... ...
@@ -1,3 +1,5 @@
1 1
 node_modules
2 2
 test/*.js
3 3
 test/*.css
  4
+components
  5
+build
11  Makefile
... ...
@@ -1,8 +1,11 @@
1 1
 
2  
-test/out.js: menu.js menu.css
3  
-	component build package.json test/out
  2
+build: index.js components
  3
+	@component build
  4
+
  5
+components:
  6
+	@component install
4 7
 
5 8
 clean:
6  
-	rm -f test/out.{js,css}
  9
+	rm -fr build components
7 10
 
8  
-.PHONY: clean
  11
+.PHONY: clean
12  component.json
... ...
@@ -0,0 +1,12 @@
  1
+{
  2
+  "name": "menu",
  3
+  "description": "Menu component",
  4
+  "version": "0.0.1",
  5
+  "keywords": ["menu", "ui"],
  6
+  "dependencies": {
  7
+    "component/emitter": "*",
  8
+    "component/jquery": "*"
  9
+  },
  10
+  "styles": ["menu.css"],
  11
+  "scripts": ["index.js"]
  12
+}
0  menu.js → index.js
File renamed without changes
16  package.json
... ...
@@ -1,16 +0,0 @@
1  
-{
2  
-  "name": "menu-component",
3  
-  "description": "Menu component",
4  
-  "version": "0.0.1",
5  
-  "keywords": ["menu", "component"],
6  
-  "dependencies": {
7  
-    "emitter-component": "*",
8  
-    "jquery-component": "*"
9  
-  },
10  
-  "component": {
11  
-    "styles": ["menu.css"],
12  
-    "scripts": {
13  
-      "menu": "menu.js"
14  
-    }
15  
-  }
16  
-}
4  test/index.html
@@ -3,11 +3,11 @@
3 3
   <head>
4 4
     <title>Menu</title>
5 5
     <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
6  
-    <link rel="stylesheet" href="out.css" />
  6
+    <link rel="stylesheet" href="../build/build.css" />
7 7
   </head>
8 8
   <body>
9 9
     <title>Menu</title>
10  
-    <script src="out.js"></script>
  10
+    <script src="../build/build.js"></script>
11 11
     <script>
12 12
       var menu = require('menu');
13 13
   

0 notes on commit 8193738

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