Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

refactor for latest component(1)

  • Loading branch information...
commit 8193738dab29cd536738dd6a8714df109a621ee1 1 parent c482d90
@tj tj authored
View
2  .gitignore
@@ -1,3 +1,5 @@
node_modules
test/*.js
test/*.css
+components
+build
View
11 Makefile
@@ -1,8 +1,11 @@
-test/out.js: menu.js menu.css
- component build package.json test/out
+build: index.js components
+ @component build
+
+components:
+ @component install
clean:
- rm -f test/out.{js,css}
+ rm -fr build components
-.PHONY: clean
+.PHONY: clean
View
12 component.json
@@ -0,0 +1,12 @@
+{
+ "name": "menu",
+ "description": "Menu component",
+ "version": "0.0.1",
+ "keywords": ["menu", "ui"],
+ "dependencies": {
+ "component/emitter": "*",
+ "component/jquery": "*"
+ },
+ "styles": ["menu.css"],
+ "scripts": ["index.js"]
+}
View
0  menu.js → index.js
File renamed without changes
View
16 package.json
@@ -1,16 +0,0 @@
-{
- "name": "menu-component",
- "description": "Menu component",
- "version": "0.0.1",
- "keywords": ["menu", "component"],
- "dependencies": {
- "emitter-component": "*",
- "jquery-component": "*"
- },
- "component": {
- "styles": ["menu.css"],
- "scripts": {
- "menu": "menu.js"
- }
- }
-}
View
4 test/index.html
@@ -3,11 +3,11 @@
<head>
<title>Menu</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
- <link rel="stylesheet" href="out.css" />
+ <link rel="stylesheet" href="../build/build.css" />
</head>
<body>
<title>Menu</title>
- <script src="out.js"></script>
+ <script src="../build/build.js"></script>
<script>
var menu = require('menu');
Please sign in to comment.
Something went wrong with that request. Please try again.