Skip to content

Commit fd7bde5

Browse files
committed
Add component build support.
1 parent 36551bb commit fd7bde5

File tree

3 files changed

+15
-1
lines changed

3 files changed

+15
-1
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
build
12
test/www/js/lib
23

34
# Mac OS X
@@ -6,3 +7,6 @@ test/www/js/lib
67
# Node.js
78
node_modules
89
npm-debug.log
10+
11+
# Component
12+
components

Makefile

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,14 @@ TESTS = test/*.test.js
66
# ==============================================================================
77

88
build-browserify:
9-
browserify -t deamdify main.js -o bundle.js
9+
mkdir -p build
10+
browserify -t deamdify main.js -o build/bundle.js
11+
12+
build-component: components
13+
component build -u component-amd
14+
15+
components:
16+
component install
1017

1118

1219
# ==============================================================================
@@ -68,9 +75,11 @@ lint:
6875
# ==============================================================================
6976

7077
clean:
78+
rm -rf build
7179

7280
clobber: clean
7381
rm -rf node_modules
82+
rm -rf components
7483
rm -rf test/www/js/lib
7584

7685

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
"mocha-phantomjs": "2.x.x",
3131
"mocha-cloud": "0.1.x",
3232
"mocha-cloud-grid-view": "0.0.x",
33+
"component-amd": "0.1.x",
3334
"deamdify": "0.1.x"
3435
},
3536
"browserify": {

0 commit comments

Comments
 (0)