Skip to content

Commit 001206a

Browse files
author
Benjamin
committed
update react-lite-layered construct
1 parent 4ebca07 commit 001206a

33 files changed

+438
-721
lines changed

.gitignore

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,6 @@
1+
*.log
12

2-
node_modules/
3+
build
4+
node_modules
5+
index.html
6+
lib

.npmignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,3 @@
44
/webpack.*
55
/template.cirru
66
/index.html
7-
/src

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ React Lite Modal, Popover, Overlay
44

55
Modal, Popover, Overlay components from Talk by Teambition.
66

7-
Demo http://teambition.github.io/react-lite-layered/
7+
Demo http://ui.talk.ai/react-lite-layered/
88

99
Inspired by http://stackoverflow.com/a/26789089/883571
1010

build/assets.json

Lines changed: 0 additions & 3 deletions
This file was deleted.

build/main.83f09ec228d257193885.js

Lines changed: 0 additions & 32 deletions
This file was deleted.

gulpfile.coffee

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,29 @@ env =
77
dev: true
88
main: 'http://localhost:8080/build/main.js'
99

10-
gulp.task 'coffee', ->
10+
gulp.task 'script', ->
1111
coffee = require('gulp-coffee')
1212
gulp
1313
.src 'src/*.coffee'
1414
.pipe coffee()
1515
.pipe gulp.dest('lib/')
1616

17+
gulp.task 'rsync', (cb) ->
18+
wrapper = require 'rsyncwrapper'
19+
wrapper.rsync
20+
ssh: true
21+
src: ['index.html', 'build']
22+
recursive: true
23+
args: ['--verbose']
24+
dest: 'talk-ui:/teambition/server/talk-ui/react-lite-layered'
25+
deleteAll: true
26+
, (error, stdout, stderr, cmd) ->
27+
if error?
28+
throw error
29+
console.error stderr
30+
console.log cmd
31+
cb()
32+
1733
gulp.task 'html', (cb) ->
1834
require('cirru-script/lib/register')
1935
html = require('./template.cirru')
@@ -30,7 +46,10 @@ gulp.task 'del', (cb) ->
3046
del [ 'build' ], cb
3147

3248
gulp.task 'webpack', (cb) ->
33-
command = if env.dev then 'webpack' else 'webpack --config webpack.min.coffee'
49+
if env.dev
50+
command = 'webpack'
51+
else
52+
command = 'webpack --config webpack.min.coffee --progress'
3453
exec command, (err, stdout, stderr) ->
3554
console.log stdout
3655
console.log stderr

index.html

Lines changed: 0 additions & 1 deletion
This file was deleted.

lib/index.js

Lines changed: 0 additions & 10 deletions
This file was deleted.

lib/mixin-layered.js

Lines changed: 0 additions & 52 deletions
This file was deleted.

lib/modal.js

Lines changed: 0 additions & 82 deletions
This file was deleted.

lib/overlay.js

Lines changed: 0 additions & 40 deletions
This file was deleted.

lib/popover.js

Lines changed: 0 additions & 91 deletions
This file was deleted.

0 commit comments

Comments
 (0)