Skip to content
This repository was archived by the owner on Nov 25, 2020. It is now read-only.

Master.listview #79

Merged
merged 283 commits into from
Sep 9, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
283 commits
Select commit Hold shift + click to select a range
317f4f9
Merge branch 'master' of github.com:koding/kd into master.splitview
sinan Mar 18, 2014
559397d
Merge branch 'master' of github.com:koding/kd into master.splitview
sinan Mar 18, 2014
e2c3cd1
Build: fixed playground coffee path
sinan Mar 18, 2014
fe4339c
SplitView: splitcomboview refactor after splitview changes
sinan Mar 19, 2014
5bb11c1
SplitView: some test code commented out
sinan Mar 19, 2014
c4bacd6
SplitView: @::splitPanel to return the created splitView
sinan Mar 19, 2014
60c9b43
Palyground: demo code commented out
sinan Mar 19, 2014
16b0990
SplitView: panel size calculation issue fixed
sinan Mar 20, 2014
a5777f8
Merge branch 'master.splitview' of github.com:koding/kd into master.s…
sinan Mar 20, 2014
f3fb7d0
Merge branch 'master' of github.com:koding/kd into master.splitview1
sinan Mar 26, 2014
b1c31db
ScrollView: default styling minor fix
sinan Mar 27, 2014
c3a3d2e
KDView: default _windowDidResize delegate function removed
sinan Mar 27, 2014
567d73f
KDView: default option set cleaned, made more consistent w/ the rest …
sinan Mar 27, 2014
c99d5c6
KDView: Object.defineProperty $ and $$ deprecated since they were no…
sinan Mar 27, 2014
044a1a2
KDView: ::setSize deprecated since we have getHeight and getWidth and…
sinan Mar 27, 2014
014e69c
KDView: lazyloader implementation improved
sinan Mar 27, 2014
26cc062
Merge branch 'refs/heads/master.splitview' into master.listview
sinan Mar 27, 2014
d48cef9
ScrollView: hasScrollBars fixed to support checking both vertical and…
sinan Mar 27, 2014
d05cf96
ScrollView: repositioning scrollthumb on windowresize
sinan Mar 27, 2014
0d2e926
ScrollView: passing lazyloadthreshold to customscrollview the right way
sinan Mar 27, 2014
df2f296
ListViewController: implemented custom scrollviews for listviews
sinan Mar 27, 2014
34a2481
ListController: minor cleanup
sinan Mar 27, 2014
4e902a5
ListView: refactored and restyled some old code
sinan Mar 27, 2014
3893143
ListController: customscrollbars made optional
sinan Mar 27, 2014
07e152a
KDView: Probably a merge conflict fix
sinan Mar 28, 2014
5b862e6
ListView: refactoring minor clean-ups
sinan Mar 28, 2014
9d3189f
Styles: invisible() function added to kdfn
sinan Mar 28, 2014
7847338
ListView: boxed list views are almost done WIP
sinan Mar 28, 2014
9c42f25
Merge branch 'master' of github.com:koding/kd into master.listview
sinan Mar 28, 2014
989cb1c
Build: watch only playground files
sinan Mar 30, 2014
1d8855f
ListVIew: removed animation param from addItem
sinan Mar 30, 2014
c15281f
ListView: minor convention adjustments
sinan Mar 30, 2014
05e80c7
ListView: box class added for optional boxed listitemviews implementa…
sinan Mar 30, 2014
def5d7a
ListView: box view implamentation WIP
sinan Mar 30, 2014
4fb17ee
ListView: add/remove item guards
sinan Mar 30, 2014
92177c2
Styles: modern clearfix cf() function added to kdfn
sinan Mar 30, 2014
f2ebbc4
Merge branch 'master' of github.com:koding/kd into master.listview
sinan Apr 1, 2014
4e80994
View: reverted due to an error on formview
sinan Apr 2, 2014
3e02231
Merge branch 'master' of github.com:koding/kd into master.listview
sinan Apr 10, 2014
53f1a0b
Merge branch 'master' of github.com:koding/kd into master.splitview
sinan Apr 28, 2014
f89fe50
Merge branch 'master' of github.com:koding/kd into master.listview
sinan May 5, 2014
490a7ed
Merge branch 'master' of github.com:koding/kd into master.splitview
sinan May 5, 2014
bc96603
ListView: lazyload addition fix for listviews w/o scrollview or wrapper
sinan May 8, 2014
16e6ced
ButtonViewWithMenu: minor fix
sinan May 8, 2014
f515654
Merge branch 'master.splitview' of github.com:koding/kd into master.s…
sinan May 12, 2014
6b17077
Merge branch 'refs/heads/master' into master.splitview
sinan May 12, 2014
11c3ab8
Merge branch 'refs/heads/master' into master.splitview
sinan May 12, 2014
c2eceb5
SplitView: Fixed broken ComboSplitView while splitview refactor.
fatihacet May 13, 2014
0c7cda3
Jview: pistachio params added to jview
sinan May 13, 2014
a66b2f3
Merge branch 'master' of github.com:koding/kd into master.listview
sinan May 13, 2014
a17ac8c
Merge branch 'master' of github.com:koding/kd into master.listview
May 14, 2014
0ca28b2
Merge branch 'master' of github.com:koding/kd into master.listview
May 14, 2014
b32a608
SplitView: Added check for 0 values.
fatihacet May 15, 2014
b5caf7c
SplitPanel: Fix for affectedPanel logic on resizeMethod.
fatihacet May 15, 2014
68afb1c
SplitView: Moved splitPanel logic to SplitPanel class since it's pane…
fatihacet May 15, 2014
361fc0c
KDView: Removed duplicated detach method.
fatihacet May 19, 2014
9f22a72
KDSplitView: Added merge method.
fatihacet May 19, 2014
b969aa8
TabHandleView: Fixed visual bug on drag and drop. Dragged tab wasn't …
fatihacet May 20, 2014
490a070
TabHandleView: Code style refactoring.
fatihacet May 20, 2014
454ea7f
Treeview: making sure that data is always an array and present
sinan May 21, 2014
3883e4e
Merge branch 'master.listview' of github.com:koding/kd into master.li…
sinan May 21, 2014
acf62ae
Merge branch 'refs/heads/master' into master.listview
sinan May 21, 2014
2d1a238
Merge branch 'master' of github.com:koding/kd into master.listview
sinan May 22, 2014
645efbe
KDSplitView: Added floating panel support.
fatihacet May 22, 2014
9f525e3
KDView: Attach sets parent, detach unsets.
fatihacet May 23, 2014
74ac729
TabView: Added soft pane remove support.
fatihacet May 23, 2014
3187b0b
TabView: Use tabpane's handle if exists.
fatihacet May 23, 2014
d868631
KDView: attach adds to subviews array
sinan May 23, 2014
a616227
KDView: orphanize method added to remove elements from parent's subvi…
sinan May 23, 2014
947207b
KDView: detach orphanizes
sinan May 23, 2014
4eae451
Tabview: improvements for tabpane moving among tabs WIP
sinan May 23, 2014
a1eb431
TabView: minor optimization
sinan May 23, 2014
4f689d6
ListView: minor code styling
sinan May 28, 2014
84f6775
SplitView: Support size when making a panel floating.
fatihacet May 28, 2014
e73557d
Merge branch 'refs/heads/master' into master.listview
sinan May 29, 2014
70f8f1c
ListView: playground
sinan May 29, 2014
cd1b156
ListView: more playground
sinan May 29, 2014
4604a63
ListView: fixed a bug where when lastToFirst option was set, items w…
sinan May 30, 2014
15085b0
ListView: removed an unnecessary option from controller
sinan May 30, 2014
e5d0658
ListView: refactor for fixing indexes and lastToFirst WIP
sinan Jun 2, 2014
dca14d2
ListView: playground update
sinan Jun 2, 2014
ccf51ef
WindowController: browser focus/blur events improved see commit details
sinan Jun 2, 2014
939a390
ListView: fixed broken commit
sinan Jun 3, 2014
bd7f8bc
ListView: compare `removeItem` data argument by data path option
Jun 3, 2014
a6e4637
Merge pull request #36 from koding/master.listview.removeitem
sinan Jun 3, 2014
1695834
SplitView: Make split handle size optional.
fatihacet Jun 3, 2014
9ed1870
ListView: Change controller's @itemsOrdered to be a reflection of Lis…
usirin Jun 3, 2014
fcda5c4
ListView: Delete unnecessary logic from controller after new @itemsOr…
usirin Jun 3, 2014
b5fb4ed
ListView: fix adding to both data item array and list html for either…
usirin Jun 3, 2014
bb39743
ListView: Add deprecation warning to KDListViewController::itemsOrdered
usirin Jun 3, 2014
011f41e
Merge pull request #37 from koding/master.listview.refactor
sinan Jun 3, 2014
415d130
ListView: replace @itemsOrdered with new getListItems method
usirin Jun 4, 2014
d2f93dc
Merge pull request #39 from koding/master.listview.itemsorderedfix
sinan Jun 4, 2014
b1cb74c
ListView: fixed, indexedItems id problem where it returned true
sinan Jun 4, 2014
a451b33
Merge branch 'master.listview' of github.com:koding/kd into master.li…
sinan Jun 4, 2014
16f9845
WindowController: WindowController keeps a focus state
sinan Jun 5, 2014
238b4fd
Merge branch 'master' of github.com:koding/kd into master.splitview
fatihacet Jun 8, 2014
021d7b2
SplitComboView: Revert to its first state.
fatihacet Jun 9, 2014
61acebd
Merge remote-tracking branch 'refs/remotes/origin/master' into master…
Jun 9, 2014
7f16294
KDView: toggleClass refactored
sinan Jun 10, 2014
752b6a8
Merge branch 'master.listview' of github.com:koding/kd into master.li…
sinan Jun 10, 2014
03168ba
Merge branch 'master.splitview' of github.com:koding/kd into master.l…
sinan Jun 10, 2014
b5b46c0
Autocomplete: instantiating no item found item with a data to not to …
sinan Jun 12, 2014
b48b471
Autocomplete: some code styling, minor
sinan Jun 12, 2014
671b37e
ListViewController: some code styling
sinan Jun 12, 2014
a0c1a86
Modal: modalview to take overlay options in its arguments
sinan Jun 12, 2014
858079d
Autocomplete: making sure that default styles only applied when no ty…
sinan Jun 12, 2014
75ec730
ListItemView: fix getItemDataId() 'or' problem
usirin Jun 12, 2014
11db414
ListItemView: DRY up the 'getItemDataId'
usirin Jun 13, 2014
af860cc
Merge pull request #42 from koding/master.listview.itemviewfix
sinan Jun 13, 2014
4e2aef9
Modals: code styling
sinan Jun 13, 2014
ff1d88b
Merge branch 'master.listview' of github.com:koding/kd into master.li…
sinan Jun 13, 2014
2e9fb96
ContextMenu: Pass event while emitting the ContextMenuItemRecievedCli…
fatihacet Jun 13, 2014
f7f44a9
Merge remote-tracking branch 'refs/remotes/origin/master.splitview' i…
Jun 13, 2014
8144192
KDModalView: standalone @ changed to this
sinan Jun 16, 2014
1562618
KDListView: removeitem w/o data argument guard added
sinan Jun 18, 2014
f82c373
SplitView: Remove calling resizeDidStop on mouseUp.
fatihacet Jun 18, 2014
f15cf5a
Merge remote-tracking branch 'refs/remotes/origin/master' into master…
Jun 19, 2014
0b1116b
Merge remote-tracking branch 'refs/remotes/origin/master.splitview' i…
Jun 19, 2014
68e3013
Modal: minor code styling
sinan Jun 19, 2014
ae801ae
Merge branch 'master.listview' of github.com:koding/kd into master.li…
sinan Jun 19, 2014
08e1a3e
Merge branch 'master' of github.com:koding/kd into master.splitview
fatihacet Jun 19, 2014
61eb063
Modal: done the forgotten refactoring on ::addSubView
sinan Jun 23, 2014
ead363a
Merge branch 'master' of github.com:koding/kd into master.splitview
fatihacet Jun 23, 2014
1b08950
Merge remote-tracking branch 'refs/remotes/origin/master.splitview' i…
Jun 24, 2014
2b5c24b
Activity: addPane/addHandle instance guard refactoring for better ind…
sinan Jun 25, 2014
4f11fbc
Tabview: tabhandle to always get its current tabView even though it c…
sinan Jun 25, 2014
f77fbd1
Merge branch 'master' of github.com:koding/kd into master.listview
sinan Jun 25, 2014
1b7a9e8
Tabview: separated scroll adjustment to own methods
sinan Jun 25, 2014
4cd6ae9
Tabview: minor code styling
sinan Jun 25, 2014
7345aa0
Merge branch 'master' of github.com:koding/kd into master.splitview
fatihacet Jun 25, 2014
58047df
ScrollView: minor code styling
sinan Jun 26, 2014
d548ec4
CustomScrollView: lazyloadthreshold passing
sinan Jun 26, 2014
cbd176e
Merge remote-tracking branch 'refs/remotes/origin/master.splitview' i…
Jun 26, 2014
d424b85
Merge remote-tracking branch 'refs/remotes/origin/master' into master…
Jun 27, 2014
80b134d
Merge branch 'master' of github.com:koding/kd into master.splitview
fatihacet Jun 27, 2014
5bd0c63
ListView: itemWasRemoved events added, inconsistent event naming removed
sinan Jul 3, 2014
6ab99f2
Merge branch 'master.splitview' of github.com:koding/kd into master.l…
sinan Jul 3, 2014
a85fb65
ListView: forgotten lines of listview::removeItem refactoring
sinan Jul 3, 2014
50e2171
ListView: forgotten lines of listview::removeItem refactoring
sinan Jul 3, 2014
d573fec
Merge branch 'master.listview' of github.com:koding/kd into master.li…
sinan Jul 3, 2014
6181cca
ListView: ::removeItemByData fixed
sinan Jul 3, 2014
62caebc
Styles: no styles support
sinan Jul 6, 2014
2e09b0d
Styles: no styles support - fixed -
sinan Jul 7, 2014
5af8f73
StylesFn: added ellipsis function
sinan Jul 8, 2014
f77fae8
Merge branch 'master' of github.com:koding/kd into master.listview
sinan Jul 8, 2014
1cec1f5
ListViewController: Add default value for lastToFirst
canthefason Jul 8, 2014
144fc5f
ListViewController: Fix item view wwas not destroyed after remove bug
canthefason Jul 8, 2014
e7a6c44
ListView: Set default LastToFirst option to no
canthefason Jul 9, 2014
b74b215
ListView: Fix removeItem index parameter
canthefason Jul 10, 2014
9a3639d
Merge pull request #46 from koding/removelistitemfix
sinan Jul 10, 2014
e40fab9
ListView: Start adding tests
usirin Jun 10, 2014
e091441
test: Add karma-spec-reporter for better tests displaying.
usirin Jun 10, 2014
c993486
test: add new isolated test folder
usirin Jul 11, 2014
798577c
test: add PhantomJS launcher for karma.
usirin Jul 11, 2014
8090c42
test: add 2 new gulp tasks for headless testing.
usirin Jul 11, 2014
ccc624b
test: add kd.test to karma.conf
usirin Jul 11, 2014
3894017
test: add default test command for 'npm test'
usirin Jul 11, 2014
7fc2965
test: add .travis.yml
usirin Jul 11, 2014
cdff684
Merge pull request #47 from usirin/newtestsuit
sinan Jul 12, 2014
f71fde2
Travis: testing the badge
sinan Jul 12, 2014
48d7b98
Travis: updated the badge position
sinan Jul 12, 2014
2894d57
Coveralls: added coverage badge
sinan Jul 12, 2014
d1bea15
Badges: removed coveralls, put devDependencies
sinan Jul 12, 2014
8a22f0e
Dependencies: packages updated
sinan Jul 12, 2014
7856dd8
KDScrollTrack: add KDScrollThumb require statement.
usirin Jul 13, 2014
b3c809f
Merge pull request #49 from usirin/scroll-thumb-fix
sinan Jul 14, 2014
764a8bc
ListViewController: refactored lazyloader show/hide logic
sinan Jul 14, 2014
2b9d469
CustomScrollView: minor styling
sinan Jul 14, 2014
129ad78
ListViewController: ListViewController::instantiateListItems to use L…
sinan Jul 17, 2014
6e4fe08
KDView: getBounds minor styling
sinan Jul 17, 2014
93111d4
SplitView: to avoid false parent size calculations if parent isnt in dom
sinan Jul 18, 2014
6ad38c4
Merge branch 'refs/heads/master' into master.listview
sinan Jul 18, 2014
a2d7768
ListViewController: fix minor require problem
usirin Jul 21, 2014
baa5f90
Tests: add listviewcontroller
usirin Jul 21, 2014
d8ab013
TreeItemView: use "" if title is not defined to fix separator "undefi…
gokmen Jul 21, 2014
1202626
Merge pull request #52 from usirin/list-tests
sinan Jul 21, 2014
5a0b823
ContextMenu: Add slugified title as class name to context menu items.
fatihacet Jul 22, 2014
39fa06c
Merge branch 'master' of github.com:koding/kd into master.splitview
fatihacet Jul 22, 2014
fa63e5f
JButtonMenu: add scrollTop to context menu position calculation
usirin Jul 22, 2014
cb64ef6
Merge pull request #53 from usirin/fix-button-menu
sinan Jul 22, 2014
3bf3cef
EventEmitter: minor codestyling fixes
usirin Jul 22, 2014
4579a78
Tests: add event emitter tests
usirin Jul 22, 2014
180171b
EventEmitter.Wildcard: replace hardcoded delimiter with property
usirin Jul 22, 2014
baca1de
Tests: add wildcard event emitter tests
usirin Jul 22, 2014
286ba21
InputView: fixed capitalization
sinan Jul 24, 2014
7378566
Merge pull request #54 from usirin/event-emitter-tests
sinan Jul 25, 2014
7240dab
KDView::hasClass: needs to check existence of cssClass otherwise .con…
gokmen Jul 25, 2014
3948d15
KDButtonView: loader options add show option to show loader on load
gokmen Jul 25, 2014
8f9aa8b
ModalView: code styling.
usirin Jul 30, 2014
0e4d896
ModalView: show/hide overlay when modal shows/hides
usirin Jul 30, 2014
eea069f
Merge pull request #55 from usirin/modal-hide-show
sinan Jul 31, 2014
ef08bbe
Merge branch 'master.splitview' of github.com:koding/kd into master.l…
Aug 1, 2014
b157a39
ListViewController: extract index decision to its own method
usirin Aug 5, 2014
133894d
Merge pull request #56 from usirin/lvc-get-real-index
sinan Aug 5, 2014
d66b6f0
ListView: Remove deleted item from items array
canthefason Aug 7, 2014
a05893a
Merge pull request #57 from koding/master.listView.removeItemFix
usirin Aug 7, 2014
c9a08c9
KDTokenizedInputView: do not blur when context menu is about to be shown
Aug 9, 2014
ec590ae
Tests: update phantomjs polyfill to work with console
usirin Jul 25, 2014
4012a95
Styles: removed setting transition to none when using kalc function
sinan Aug 11, 2014
800a3dd
Build: uglify to not mangle class names
sinan Aug 13, 2014
d0aeac3
Tests: add utils tests
usirin Jul 30, 2014
13310cf
Tests: add display commands to travis
usirin Aug 14, 2014
e274804
Tests: update npm test to work with Firefox
usirin Aug 14, 2014
d0fe4ca
Tests: fix getSelectionRange test
usirin Aug 14, 2014
1be34af
Tests: remove phantomjs polyfill
usirin Aug 14, 2014
a0f1ff8
Tests: remove references to phantomjs
usirin Aug 14, 2014
909d02b
loader: set `line-height` of loader
Aug 14, 2014
01040eb
Merge pull request #69 from koding/loader
sinan Aug 14, 2014
10dde66
Merge pull request #61 from usirin/replace-phantomjs-with-firefox
sinan Aug 14, 2014
6564cb7
custom scroll view: emit events when child elements with a given clas…
humanchimp Aug 15, 2014
0fed04e
Merge pull request #70 from koding/master.listview-offscreen-indicators
sinan Aug 15, 2014
7ab7764
ListView: Prevent unregisterItem method to delete item from listView
canthefason Aug 14, 2014
25ae924
ListView: Remove unregisterItem deletes item from listView tests
canthefason Aug 14, 2014
5d45c13
ListView: Add UnregisteringItem event emitted assertion to unregister…
canthefason Aug 15, 2014
e2a507d
Merge pull request #62 from koding/master.listView.removeItemFix
Aug 16, 2014
71ce395
Treeview: minor code styling
sinan Aug 16, 2014
6c6ca60
Repo: updated gitignore
sinan Aug 19, 2014
569c4d8
WindowController: updated a warning
sinan Aug 19, 2014
0592e98
TabView: tabs change on mousedown rather than click
sinan Aug 22, 2014
b3e2940
TabPane: small refactoring around detachable tabs
sinan Aug 25, 2014
acf13fa
Build: added --entryPath option
sinan Aug 27, 2014
ad6c552
Libs: removed cookies.js
sinan Aug 27, 2014
7062450
Libs: removed date.format.js
sinan Aug 27, 2014
9c051cc
Libs: removed hljs
sinan Aug 27, 2014
8a0ca07
Libs: removed cookies, date.format.js refs
sinan Aug 27, 2014
f010256
Libs: removed marked
sinan Aug 27, 2014
583a94c
Libs: removed timeago
sinan Aug 27, 2014
c97c2b5
Libs: moved hammer
sinan Aug 27, 2014
db3140b
Libs: moved JSPath
sinan Aug 27, 2014
23bf8c3
Libs: moved mousetrap
sinan Aug 27, 2014
e6ff466
Libs: moved canvas-loader
sinan Aug 27, 2014
539eb92
Libs: moved inflector
sinan Aug 27, 2014
b7fcb7b
Libs: removed underscore
sinan Aug 27, 2014
6795575
Libs: updated jquery to 2.1.1
sinan Aug 27, 2014
9df56f2
Libs: moved MutationSummary
sinan Aug 27, 2014
c2bc9a6
Cleanup: removed underscore implementations to reduce size
sinan Aug 27, 2014
d50e9d4
MutationSummary: fixed require
sinan Aug 27, 2014
707697c
Libs: fix wrong requires and export Inflector object
usirin Sep 5, 2014
e6ce79c
Merge pull request #78 from usirin/fix-inflector-jspath
humanchimp Sep 5, 2014
b7f513c
Tests: add require statement for underscore
usirin Sep 6, 2014
ec8e65f
Merge pull request #80 from usirin/fix-tests
sinan Sep 7, 2014
168dda4
Merge remote-tracking branch 'refs/remotes/origin/master' into master…
Sep 8, 2014
1e4f609
Tooltips: minor code styling, removed unnecessary param
sinan Sep 8, 2014
ec2d8fe
Tooltips: added permanent option
sinan Sep 8, 2014
28d8acc
Form: minor code styling
sinan Sep 8, 2014
bb7cb2d
Tooltips: permanent and sticky options implemented
sinan Sep 8, 2014
08ecd34
Tooltip: minor code styling
sinan Sep 8, 2014
69a93a9
ListView: reverted indexOf reinvention
sinan Sep 9, 2014
9436470
Packages: updated build dependencies
sinan Sep 9, 2014
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 1 addition & 8 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,22 +1,15 @@
/.DS_Store

.DS_Store
*.orig

/node_modules/

/build/

/src/entry.coffee
/playground/js
/playground/css
/test/kd.libs.*js
/test/kd.test.*js

/docs/css/kd.css
/docs/css/main.css

/docs/js/kd.js
/docs/js/kd.libs.js
/docs/js/main.js

/docs/js/kd.sitemap.js
12 changes: 12 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
language: node_js
node_js:
- "0.10"

install:
- npm install

before_script:
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
- ./node_modules/.bin/gulp libs && ./node_modules/.bin/gulp coffee-test

3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
KD
KD [![Build Status](https://img.shields.io/travis/koding/kd/master.listview.svg?style=flat)](https://travis-ci.org/koding/kd) [![Dependency Status](https://img.shields.io/david/dev/koding/kd.svg?style=flat)](https://david-dm.org/koding/kd#info=devDependencies)
--

_a non-document focused UI Framework for web applications._

Install gulp:
Expand Down
30 changes: 20 additions & 10 deletions gulpfile.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,11 @@ express = require 'express'
Promise = require 'bluebird'
exec = Promise.promisify (require 'child_process').exec

ENTRY_PATH = argv.entryPath ? './src/entry.coffee'
STYLES_PATH = require './src/themes/styl.includes.coffee'
COFFEE_PATH = ['./src/components/**/*.coffee','./src/core/**/*.coffee','./src/init.coffee']
LIBS_PATH = ['./libs/*.js']
TEST_PATH = ['./src/**/*.test.coffee']
TEST_PATH = ['./test/**/*.test.coffee']
LIBS = require './src/lib.includes.coffee'

# Helpers
Expand Down Expand Up @@ -56,13 +57,20 @@ useMinify = checkParam argv.minify
karmaAction = 'watch'
buildDocs = checkParam argv.docs
buildPlay = checkParam argv.play
theme = checkParam argv.theme


# Build Tasks


gulp.task 'styles', ->

if theme
resetStyles = require './src/themes/reset.includes.coffee'
# FIXME: require & put real theme styl files array here
themeStyles = []
STYLES_PATH = themeStyles.concat resetStyles

gulp.src STYLES_PATH
.pipe stylus()
.pipe concat 'kd.css'
Expand All @@ -86,13 +94,11 @@ gulp.task 'export', ->

gulp.task 'coffee', ['export'], ->

entryPath = './src/entry.coffee'

gulpBrowserify
entries : entryPath
.pipe source entryPath
entries : ENTRY_PATH
.pipe source ENTRY_PATH
.pipe gulpBuffer()
.pipe gulpif useUglify, uglify()
.pipe gulpif useUglify, uglify(mangle : no)
.pipe rename "kd.#{version}js"
.pipe gulp.dest "#{buildDir}/js"

Expand Down Expand Up @@ -211,16 +217,20 @@ gulp.task 'coffee-test', ->
.pipe gulp.dest 'test'


testFiles = [
'./test/kd.libs.js'
'./test/kd.test.js'
]

gulp.task 'karma', ['coffee-test'], ->

gulp.src ['./test/kd.*']
gulp.src testFiles
.pipe karma
configFile : 'karma.conf.js'
action : karmaAction


gulp.task 'sauce', ->
gulp.src ['./test/kd.*']
gulp.src testFiles
.pipe karma
browsers : [
'sl_firefox_windows'
Expand Down Expand Up @@ -279,8 +289,8 @@ gulp.task 'watch-playground', ->

watchLogger 'blue', gulp.watch [
'./playground/**/*.coffee'
'./playground/**/*.html'
'./playground/**/*.styl'
'./playground/**/*.html'
], ['play']


Expand Down
9 changes: 5 additions & 4 deletions karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ module.exports = function(config) {

// list of files / patterns to load in the browser
files: [
'test/kd.libs.js'
'test/kd.libs.js',
'test/kd.test.js'
],

sauceLabs: {
Expand Down Expand Up @@ -57,21 +58,21 @@ module.exports = function(config) {

// list of files to exclude
exclude: [

],


// preprocess matching files before serving them to the browser
// available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor
preprocessors: {

},


// test results reporter to use
// possible values: 'dots', 'progress'
// available reporters: https://npmjs.org/browse/keyword/karma-reporter
reporters: ['progress'],
reporters: ['spec'],


// web server port
Expand Down
69 changes: 0 additions & 69 deletions libs/cookies.js

This file was deleted.

125 changes: 0 additions & 125 deletions libs/date.format.js

This file was deleted.

1 change: 0 additions & 1 deletion libs/highlight.pack.js

This file was deleted.

4 changes: 2 additions & 2 deletions libs/inflector.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
var Inflector;

Inflector = (function() {
module.exports = Inflector = (function() {
var inflection;
var __slice = Array.prototype.slice;
/*
Expand Down Expand Up @@ -560,4 +560,4 @@ Inflector = (function() {

return Inflector;

})();
})();
Loading