From 182118ebff0c7f74cf854904c7efad92c1056b90 Mon Sep 17 00:00:00 2001 From: Casey Webb Date: Sat, 14 Oct 2017 14:32:37 -0500 Subject: [PATCH 01/20] Standardize main/module package.json props - Replace non-standard `jsnext:main` with proposed `module` prop - Use `index.js` for all `module` values - Use `dist` files for all `main` values --- packages/tko.bind/package.json | 3 ++- packages/tko.binding.component/package.json | 3 ++- packages/tko.binding.core/package.json | 2 +- packages/tko.binding.foreach/package.json | 3 ++- packages/tko.binding.if/package.json | 2 +- packages/tko.binding.template/package.json | 2 +- packages/tko.computed/package.json | 3 ++- packages/tko.filter.punches/package.json | 2 +- packages/tko.lifecycle/package.json | 2 +- packages/tko.observable/package.json | 3 ++- packages/tko.provider.attr/package.json | 3 ++- packages/tko.provider.bindingString/package.json | 3 ++- packages/tko.provider.component/package.json | 3 ++- packages/tko.provider.databind/package.json | 3 ++- packages/tko.provider.multi/package.json | 3 ++- packages/tko.provider.mustache/package.json | 4 ++-- packages/tko.provider.virtual/package.json | 3 ++- packages/tko.provider/package.json | 3 ++- packages/tko.utils.component/package.json | 3 ++- packages/tko.utils.parser/package.json | 3 ++- packages/tko.utils/package.json | 2 +- 21 files changed, 36 insertions(+), 22 deletions(-) diff --git a/packages/tko.bind/package.json b/packages/tko.bind/package.json index f0190944..b428eed0 100644 --- a/packages/tko.bind/package.json +++ b/packages/tko.bind/package.json @@ -2,7 +2,8 @@ "name": "tko.bind", "version": "1.0.0", "description": "TKO DOM-Observable Binding", - "main": "index.js", + "main": "dist/tko.bind.js", + "module": "index.js", "dependencies": { "tko.computed": "knockout/tko.computed", "tko.lifecycle": "knockout/tko.lifecycle", diff --git a/packages/tko.binding.component/package.json b/packages/tko.binding.component/package.json index df04065b..66b83b1c 100644 --- a/packages/tko.binding.component/package.json +++ b/packages/tko.binding.component/package.json @@ -2,7 +2,8 @@ "name": "tko.binding.component", "version": "1.0.0", "description": "component: binding for web components", - "main": "index.js", + "main": "dist/tko.binding.component.js", + "module": "index.js", "license": "MIT", "karma": { "frameworks": ["jasmine"]} } diff --git a/packages/tko.binding.core/package.json b/packages/tko.binding.core/package.json index 416ce651..499feab7 100644 --- a/packages/tko.binding.core/package.json +++ b/packages/tko.binding.core/package.json @@ -3,7 +3,7 @@ "version": "0.2.0", "description": "TKO Core bindings", "main": "dist/tko.binding.core.js", - "jsnext:main": "./index.js", + "module": "index.js", "files": [ "dist/", "src/", diff --git a/packages/tko.binding.foreach/package.json b/packages/tko.binding.foreach/package.json index 26eddade..83f2ba65 100644 --- a/packages/tko.binding.foreach/package.json +++ b/packages/tko.binding.foreach/package.json @@ -2,7 +2,8 @@ "name": "tko.binding.foreach", "version": "4.0.0-alpha2", "description": "Knockout Foreach Binding", - "main": "index.js", + "main": "dist/tko.binding.foreach.js", + "module": "index.js", "scripts": { "test": "gulp test --once" }, diff --git a/packages/tko.binding.if/package.json b/packages/tko.binding.if/package.json index 1ce0de1c..b8390ebe 100644 --- a/packages/tko.binding.if/package.json +++ b/packages/tko.binding.if/package.json @@ -3,7 +3,7 @@ "version": "0.2.0", "description": "TKO conditional (if/ifnot/unless/with/else) bindings", "main": "dist/tko.binding.if.js", - "jsnext:main": "./index.js", + "module": "index.js", "files": [ "dist/", "src/", diff --git a/packages/tko.binding.template/package.json b/packages/tko.binding.template/package.json index 1d2f7493..bd59a380 100644 --- a/packages/tko.binding.template/package.json +++ b/packages/tko.binding.template/package.json @@ -3,7 +3,7 @@ "version": "0.2.0", "description": "TKO Template bindings", "main": "dist/tko.binding.template.js", - "jsnext:main": "./index.js", + "module": "index.js", "files": [ "dist/", "src/", diff --git a/packages/tko.computed/package.json b/packages/tko.computed/package.json index 9d7645cc..d5fbdbf9 100644 --- a/packages/tko.computed/package.json +++ b/packages/tko.computed/package.json @@ -2,7 +2,8 @@ "name": "tko.computed", "version": "1.0.0", "description": "TKO Computed Observables", - "main": "index.js", + "main": "dist/tko.computed.js", + "module": "index.js", "dependencies": { "tko.utils": "knockout/tko.utils", "tko.observable": "knockout/tko.observable" diff --git a/packages/tko.filter.punches/package.json b/packages/tko.filter.punches/package.json index 700084aa..547c1a5f 100644 --- a/packages/tko.filter.punches/package.json +++ b/packages/tko.filter.punches/package.json @@ -3,7 +3,7 @@ "version": "0.2.0", "description": "TKO filters from knockout punches", "main": "dist/tko.filter.punches.js", - "jsnext:main": "./index.js", + "module": "index.js", "files": [ "dist/", "src/", diff --git a/packages/tko.lifecycle/package.json b/packages/tko.lifecycle/package.json index a1f8c9d9..3816ef1a 100644 --- a/packages/tko.lifecycle/package.json +++ b/packages/tko.lifecycle/package.json @@ -13,7 +13,7 @@ "version": "1.0.0", "description": "Knockout LifeCycle for object instances", "main": "dist/tko.lifecycle.js", - "jsnext:main": "index.js", + "module": "index.js", "repository": "git@github.com:knockout/tko.lifecycle.git", "author": "Knockout Team", "license": "MIT", diff --git a/packages/tko.observable/package.json b/packages/tko.observable/package.json index cc04c6e9..b00cb788 100644 --- a/packages/tko.observable/package.json +++ b/packages/tko.observable/package.json @@ -2,7 +2,8 @@ "name": "tko.observable", "version": "0.1.0", "description": "TKO subscribables and observables", - "main": "index.js", + "main": "dist/tko.observable.js", + "module": "index.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, diff --git a/packages/tko.provider.attr/package.json b/packages/tko.provider.attr/package.json index 6b19d921..c6309186 100644 --- a/packages/tko.provider.attr/package.json +++ b/packages/tko.provider.attr/package.json @@ -2,7 +2,8 @@ "name": "tko.provider.attr", "version": "1.0.0", "description": "Link HTML attributes (e.g. ko-handler-name) to binding handlers", - "main": "index.js", + "main": "dist/tko.provider.attr.js", + "module": "index.js", "license": "MIT", "karma": {"frameworks":["mocha","chai"]} } diff --git a/packages/tko.provider.bindingString/package.json b/packages/tko.provider.bindingString/package.json index 44b78780..cf618f59 100644 --- a/packages/tko.provider.bindingString/package.json +++ b/packages/tko.provider.bindingString/package.json @@ -2,7 +2,8 @@ "name": "tko.provider.bindingString", "version": "1.0.0", "description": "Abstract Base Class for providers that parse a binding string", - "main": "index.js", + "main": "dist/tko.provider.bindingString.js", + "module": "index.js", "license": "MIT", "karma": { "frameworks": ["mocha", "chai"]} } diff --git a/packages/tko.provider.component/package.json b/packages/tko.provider.component/package.json index b009c65b..5a660dcf 100644 --- a/packages/tko.provider.component/package.json +++ b/packages/tko.provider.component/package.json @@ -2,7 +2,8 @@ "name": "tko.provider.component", "version": "1.0.0", "description": "Bind custom web components e.g. ", - "main": "index.js", + "main": "dist/tko.provider.component.js", + "module": "index.js", "license": "MIT", "karma": {"frameworks": ["jasmine"]} } diff --git a/packages/tko.provider.databind/package.json b/packages/tko.provider.databind/package.json index e9faab5c..e9b1f382 100644 --- a/packages/tko.provider.databind/package.json +++ b/packages/tko.provider.databind/package.json @@ -2,7 +2,8 @@ "name": "tko.provider.databind", "version": "1.0.0", "description": "Link HTML attributes based on a `data-bind` HTML attribute", - "main": "index.js", + "main": "dist/tko.provider.databind.js", + "module": "index.js", "license": "MIT", "karma": { "frameworks": ["mocha", "sinon", "chai"] } } diff --git a/packages/tko.provider.multi/package.json b/packages/tko.provider.multi/package.json index 4501d7db..9747a9c7 100644 --- a/packages/tko.provider.multi/package.json +++ b/packages/tko.provider.multi/package.json @@ -2,7 +2,8 @@ "name": "tko.provider.multi", "version": "1.0.0", "description": "Combine multiple other providers into one", - "main": "index.js", + "main": "dist/tko.provider.multi.js", + "module": "index.js", "license": "MIT", "karma":{"frameworks":["mocha", "chai"]} } diff --git a/packages/tko.provider.mustache/package.json b/packages/tko.provider.mustache/package.json index e1c58d3d..986efb28 100644 --- a/packages/tko.provider.mustache/package.json +++ b/packages/tko.provider.mustache/package.json @@ -2,8 +2,8 @@ "name": "tko.provider.mustache", "version": "0.1.0", "description": "Interpolate text/node attributes {{ }}", - "main": "dist/tko.preprocessor.textInterpolation.js", - "jsnext:main": "./index.js", + "main": "dist/tko.preprocessor.mustache.js", + "module": "index.js", "files": [ "dist/", "src/", diff --git a/packages/tko.provider.virtual/package.json b/packages/tko.provider.virtual/package.json index 2486bedf..0dbe6d83 100644 --- a/packages/tko.provider.virtual/package.json +++ b/packages/tko.provider.virtual/package.json @@ -2,7 +2,8 @@ "name": "tko.provider.virtual", "version": "1.0.0", "description": "Binding provider for virtual elements", - "main": "index.js", + "main": "dist/tko.provider.virtual.js", + "module": "index.js", "author": "Knockout Team", "license": "MIT", "karma": { "frameworks": ["mocha", "chai"]} diff --git a/packages/tko.provider/package.json b/packages/tko.provider/package.json index 5a600007..b4ac34e8 100644 --- a/packages/tko.provider/package.json +++ b/packages/tko.provider/package.json @@ -2,7 +2,8 @@ "name": "tko.provider", "version": "1.0.0", "description": "Abstract base class of tko Provider (HTML <-> Data Binding linker)", - "main": "index.js", + "main": "dist/tko.provider.js", + "module": "index.js", "author": "Knockout Team", "license": "MIT", "karma" : { "frameworks": ["mocha", "chai"] } diff --git a/packages/tko.utils.component/package.json b/packages/tko.utils.component/package.json index 7bdc7bf9..5c8e2fb6 100644 --- a/packages/tko.utils.component/package.json +++ b/packages/tko.utils.component/package.json @@ -2,7 +2,8 @@ "name": "tko.utils.component", "version": "1.0.0", "description": "Registry and loading utilities for web components", - "main": "index.js", + "main": "dist/tko.utils.component.js", + "module": "index.js", "license": "MIT", "karma": {"frameworks":["jasmine"]} } diff --git a/packages/tko.utils.parser/package.json b/packages/tko.utils.parser/package.json index 1f0b01d1..24f12e6f 100644 --- a/packages/tko.utils.parser/package.json +++ b/packages/tko.utils.parser/package.json @@ -2,7 +2,8 @@ "name": "tko.utils.parser", "version": "1.0.0", "description": "Parse the Javascript-like language used in data-bind and other HTML attributes (CSP-safe)", - "main": "index.js", + "main": "dist/tko.utils.parser.js", + "module": "index.js", "license": "MIT", "karma": { "frameworks": ["mocha", "sinon", "chai"] } } diff --git a/packages/tko.utils/package.json b/packages/tko.utils/package.json index 93e92dc3..42f9797a 100644 --- a/packages/tko.utils/package.json +++ b/packages/tko.utils/package.json @@ -3,7 +3,7 @@ "version": "0.1.0", "description": "TKO Utilities", "main": "dist/tko.utils.js", - "jsnext:main": "./index.js", + "module": "index.js", "files": [ "dist/", "src/", From ec9b910f9e49095473395512278543026943aea9 Mon Sep 17 00:00:00 2001 From: Casey Webb Date: Sat, 14 Oct 2017 15:15:02 -0500 Subject: [PATCH 02/20] Move index.js files into src dirs, move root index.js to packages/knockout --- packages/knockout/index.js | 0 index.js => packages/knockout/src/index.js | 0 packages/tko.bind/index.js | 6 --- packages/tko.bind/package.json | 2 +- packages/tko.bind/src/index.js | 6 +++ packages/tko.binding.component/index.js | 3 -- packages/tko.binding.component/package.json | 2 +- packages/tko.binding.component/src/index.js | 3 ++ packages/tko.binding.core/index.js | 47 ------------------- packages/tko.binding.core/package.json | 2 +- packages/tko.binding.core/src/index.js | 47 +++++++++++++++++++ packages/tko.binding.foreach/package.json | 2 +- .../tko.binding.foreach/{ => src}/index.js | 2 +- packages/tko.binding.if/package.json | 2 +- packages/tko.binding.if/{ => src}/index.js | 2 +- packages/tko.binding.template/package.json | 2 +- .../tko.binding.template/{ => src}/index.js | 12 ++--- packages/tko.computed/package.json | 2 +- packages/tko.computed/{ => src}/index.js | 4 +- packages/tko.filter.punches/package.json | 2 +- .../tko.filter.punches/{ => src}/index.js | 0 packages/tko.lifecycle/index.js | 3 -- packages/tko.lifecycle/package.json | 2 +- packages/tko.lifecycle/src/index.js | 3 ++ packages/tko.observable/index.js | 21 --------- packages/tko.observable/package.json | 2 +- packages/tko.observable/src/index.js | 21 +++++++++ packages/tko.provider.attr/index.js | 1 - packages/tko.provider.attr/package.json | 2 +- packages/tko.provider.attr/src/index.js | 1 + packages/tko.provider.bindingString/index.js | 1 - .../tko.provider.bindingString/package.json | 2 +- .../tko.provider.bindingString/src/index.js | 1 + packages/tko.provider.component/index.js | 1 - packages/tko.provider.component/package.json | 2 +- packages/tko.provider.component/src/index.js | 1 + packages/tko.provider.databind/index.js | 1 - packages/tko.provider.databind/package.json | 2 +- packages/tko.provider.databind/src/index.js | 1 + packages/tko.provider.multi/index.js | 2 - packages/tko.provider.multi/package.json | 2 +- packages/tko.provider.multi/src/index.js | 2 + packages/tko.provider.mustache/package.json | 2 +- .../tko.provider.mustache/{ => src}/index.js | 6 +-- packages/tko.provider.virtual/index.js | 1 - packages/tko.provider.virtual/package.json | 2 +- packages/tko.provider.virtual/src/index.js | 1 + packages/tko.provider/index.js | 2 - packages/tko.provider/package.json | 2 +- packages/tko.provider/src/index.js | 2 + packages/tko.utils.component/package.json | 2 +- .../tko.utils.component/{ => src}/index.js | 6 +-- packages/tko.utils.parser/index.js | 7 --- packages/tko.utils.parser/package.json | 2 +- packages/tko.utils.parser/src/index.js | 7 +++ packages/tko.utils/index.js | 34 -------------- packages/tko.utils/package.json | 2 +- packages/tko.utils/src/index.js | 34 ++++++++++++++ 58 files changed, 167 insertions(+), 167 deletions(-) delete mode 100644 packages/knockout/index.js rename index.js => packages/knockout/src/index.js (100%) delete mode 100644 packages/tko.bind/index.js create mode 100644 packages/tko.bind/src/index.js delete mode 100644 packages/tko.binding.component/index.js create mode 100644 packages/tko.binding.component/src/index.js delete mode 100644 packages/tko.binding.core/index.js create mode 100644 packages/tko.binding.core/src/index.js rename packages/tko.binding.foreach/{ => src}/index.js (70%) rename packages/tko.binding.if/{ => src}/index.js (91%) rename packages/tko.binding.template/{ => src}/index.js (54%) rename packages/tko.computed/{ => src}/index.js (79%) rename packages/tko.filter.punches/{ => src}/index.js (100%) delete mode 100644 packages/tko.lifecycle/index.js create mode 100644 packages/tko.lifecycle/src/index.js delete mode 100644 packages/tko.observable/index.js create mode 100644 packages/tko.observable/src/index.js delete mode 100644 packages/tko.provider.attr/index.js create mode 100644 packages/tko.provider.attr/src/index.js delete mode 100644 packages/tko.provider.bindingString/index.js create mode 100644 packages/tko.provider.bindingString/src/index.js delete mode 100644 packages/tko.provider.component/index.js create mode 100644 packages/tko.provider.component/src/index.js delete mode 100644 packages/tko.provider.databind/index.js create mode 100644 packages/tko.provider.databind/src/index.js delete mode 100644 packages/tko.provider.multi/index.js create mode 100644 packages/tko.provider.multi/src/index.js rename packages/tko.provider.mustache/{ => src}/index.js (53%) delete mode 100644 packages/tko.provider.virtual/index.js create mode 100644 packages/tko.provider.virtual/src/index.js delete mode 100644 packages/tko.provider/index.js create mode 100644 packages/tko.provider/src/index.js rename packages/tko.utils.component/{ => src}/index.js (82%) delete mode 100644 packages/tko.utils.parser/index.js create mode 100644 packages/tko.utils.parser/src/index.js delete mode 100644 packages/tko.utils/index.js create mode 100644 packages/tko.utils/src/index.js diff --git a/packages/knockout/index.js b/packages/knockout/index.js deleted file mode 100644 index e69de29b..00000000 diff --git a/index.js b/packages/knockout/src/index.js similarity index 100% rename from index.js rename to packages/knockout/src/index.js diff --git a/packages/tko.bind/index.js b/packages/tko.bind/index.js deleted file mode 100644 index 22975937..00000000 --- a/packages/tko.bind/index.js +++ /dev/null @@ -1,6 +0,0 @@ - -export * from './src/bindingContext'; -export * from './src/applyBindings'; -export * from './src/arrayToDomNodeChildren'; - -export { BindingHandler, AsyncBindingHandler } from './src/BindingHandler'; diff --git a/packages/tko.bind/package.json b/packages/tko.bind/package.json index b428eed0..8b899e9e 100644 --- a/packages/tko.bind/package.json +++ b/packages/tko.bind/package.json @@ -3,7 +3,7 @@ "version": "1.0.0", "description": "TKO DOM-Observable Binding", "main": "dist/tko.bind.js", - "module": "index.js", + "module": "src/index.js", "dependencies": { "tko.computed": "knockout/tko.computed", "tko.lifecycle": "knockout/tko.lifecycle", diff --git a/packages/tko.bind/src/index.js b/packages/tko.bind/src/index.js new file mode 100644 index 00000000..a354f185 --- /dev/null +++ b/packages/tko.bind/src/index.js @@ -0,0 +1,6 @@ + +export * from './bindingContext'; +export * from './applyBindings'; +export * from './arrayToDomNodeChildren'; + +export { BindingHandler, AsyncBindingHandler } from './BindingHandler'; diff --git a/packages/tko.binding.component/index.js b/packages/tko.binding.component/index.js deleted file mode 100644 index 0e26ec6f..00000000 --- a/packages/tko.binding.component/index.js +++ /dev/null @@ -1,3 +0,0 @@ - -import component from './src/componentBinding' -export var bindings = { component } diff --git a/packages/tko.binding.component/package.json b/packages/tko.binding.component/package.json index 66b83b1c..bc18612f 100644 --- a/packages/tko.binding.component/package.json +++ b/packages/tko.binding.component/package.json @@ -3,7 +3,7 @@ "version": "1.0.0", "description": "component: binding for web components", "main": "dist/tko.binding.component.js", - "module": "index.js", + "module": "src/index.js", "license": "MIT", "karma": { "frameworks": ["jasmine"]} } diff --git a/packages/tko.binding.component/src/index.js b/packages/tko.binding.component/src/index.js new file mode 100644 index 00000000..1c3c5b63 --- /dev/null +++ b/packages/tko.binding.component/src/index.js @@ -0,0 +1,3 @@ + +import component from './componentBinding' +export var bindings = { component } diff --git a/packages/tko.binding.core/index.js b/packages/tko.binding.core/index.js deleted file mode 100644 index f485a003..00000000 --- a/packages/tko.binding.core/index.js +++ /dev/null @@ -1,47 +0,0 @@ - -import {attr} from './src/attr.js'; -import {checked, checkedValue} from './src/checked.js'; -import {click} from './src/click.js'; -import {css} from './src/css.js'; -import {enable, disable} from './src/enableDisable.js'; -import {eventHandler, onHandler} from './src/event.js'; -import {hasfocus} from './src/hasfocus.js'; -import {html} from './src/html.js'; -import $let from './src/let.js'; -import {options} from './src/options.js'; -import {selectedOptions} from './src/selectedOptions.js'; -import {style} from './src/style.js'; -import {submit} from './src/submit.js'; -import {text} from './src/text.js'; -import {textInput} from './src/textInput.js'; -import {uniqueName} from './src/uniqueName.js'; -import {value} from './src/value.js'; -import {visible, hidden} from './src/visible.js'; -import {using} from './src/using.js'; - -export var bindings = { - attr: attr, - checked: checked, - checkedValue: checkedValue, - click: click, - css: css, 'class': css, - enable: enable, - 'event': eventHandler, - disable: disable, - hasfocus: hasfocus, hasFocus: hasfocus, - hidden: hidden, - html: html, - 'let': $let, - on: onHandler, - options: options, - selectedOptions: selectedOptions, - style: style, - submit: submit, - text: text, - textInput: textInput, - textinput: textInput, - uniqueName: uniqueName, - using: using, - value: value, - visible: visible -}; \ No newline at end of file diff --git a/packages/tko.binding.core/package.json b/packages/tko.binding.core/package.json index 499feab7..14f80665 100644 --- a/packages/tko.binding.core/package.json +++ b/packages/tko.binding.core/package.json @@ -3,7 +3,7 @@ "version": "0.2.0", "description": "TKO Core bindings", "main": "dist/tko.binding.core.js", - "module": "index.js", + "module": "src/index.js", "files": [ "dist/", "src/", diff --git a/packages/tko.binding.core/src/index.js b/packages/tko.binding.core/src/index.js new file mode 100644 index 00000000..a05567fc --- /dev/null +++ b/packages/tko.binding.core/src/index.js @@ -0,0 +1,47 @@ + +import {attr} from './attr.js'; +import {checked, checkedValue} from './checked.js'; +import {click} from './click.js'; +import {css} from './css.js'; +import {enable, disable} from './enableDisable.js'; +import {eventHandler, onHandler} from './event.js'; +import {hasfocus} from './hasfocus.js'; +import {html} from './html.js'; +import $let from './let.js'; +import {options} from './options.js'; +import {selectedOptions} from './selectedOptions.js'; +import {style} from './style.js'; +import {submit} from './submit.js'; +import {text} from './text.js'; +import {textInput} from './textInput.js'; +import {uniqueName} from './uniqueName.js'; +import {value} from './value.js'; +import {visible, hidden} from './visible.js'; +import {using} from './using.js'; + +export var bindings = { + attr: attr, + checked: checked, + checkedValue: checkedValue, + click: click, + css: css, 'class': css, + enable: enable, + 'event': eventHandler, + disable: disable, + hasfocus: hasfocus, hasFocus: hasfocus, + hidden: hidden, + html: html, + 'let': $let, + on: onHandler, + options: options, + selectedOptions: selectedOptions, + style: style, + submit: submit, + text: text, + textInput: textInput, + textinput: textInput, + uniqueName: uniqueName, + using: using, + value: value, + visible: visible +}; \ No newline at end of file diff --git a/packages/tko.binding.foreach/package.json b/packages/tko.binding.foreach/package.json index 83f2ba65..e38409e5 100644 --- a/packages/tko.binding.foreach/package.json +++ b/packages/tko.binding.foreach/package.json @@ -3,7 +3,7 @@ "version": "4.0.0-alpha2", "description": "Knockout Foreach Binding", "main": "dist/tko.binding.foreach.js", - "module": "index.js", + "module": "src/index.js", "scripts": { "test": "gulp test --once" }, diff --git a/packages/tko.binding.foreach/index.js b/packages/tko.binding.foreach/src/index.js similarity index 70% rename from packages/tko.binding.foreach/index.js rename to packages/tko.binding.foreach/src/index.js index ac6fc738..962bd373 100644 --- a/packages/tko.binding.foreach/index.js +++ b/packages/tko.binding.foreach/src/index.js @@ -1,4 +1,4 @@ -import { ForEachBinding } from './src/foreach.js' +import { ForEachBinding } from './foreach.js' export var bindings = { foreach: ForEachBinding diff --git a/packages/tko.binding.if/package.json b/packages/tko.binding.if/package.json index b8390ebe..09d17f39 100644 --- a/packages/tko.binding.if/package.json +++ b/packages/tko.binding.if/package.json @@ -3,7 +3,7 @@ "version": "0.2.0", "description": "TKO conditional (if/ifnot/unless/with/else) bindings", "main": "dist/tko.binding.if.js", - "module": "index.js", + "module": "src/index.js", "files": [ "dist/", "src/", diff --git a/packages/tko.binding.if/index.js b/packages/tko.binding.if/src/index.js similarity index 91% rename from packages/tko.binding.if/index.js rename to packages/tko.binding.if/src/index.js index 01586fec..514329f0 100644 --- a/packages/tko.binding.if/index.js +++ b/packages/tko.binding.if/src/index.js @@ -4,7 +4,7 @@ import { ElseBindingHandler, UnlessBindingHandler, WithBindingHandler -} from './src/ifIfnotWith' +} from './ifIfnotWith' export const bindings = { 'if': IfBindingHandler, diff --git a/packages/tko.binding.template/package.json b/packages/tko.binding.template/package.json index bd59a380..d1631cbd 100644 --- a/packages/tko.binding.template/package.json +++ b/packages/tko.binding.template/package.json @@ -3,7 +3,7 @@ "version": "0.2.0", "description": "TKO Template bindings", "main": "dist/tko.binding.template.js", - "module": "index.js", + "module": "src/index.js", "files": [ "dist/", "src/", diff --git a/packages/tko.binding.template/index.js b/packages/tko.binding.template/src/index.js similarity index 54% rename from packages/tko.binding.template/index.js rename to packages/tko.binding.template/src/index.js index c7cbca6b..9979a37d 100644 --- a/packages/tko.binding.template/index.js +++ b/packages/tko.binding.template/src/index.js @@ -1,11 +1,11 @@ import { TemplateForEachBindingHandler -} from './src/foreach' +} from './foreach' import { TemplateBindingHandler -} from './src/templating' +} from './templating' // 'let': letBinding, // template: template, @@ -14,7 +14,7 @@ export const bindings = { template: TemplateBindingHandler } -export * from './src/nativeTemplateEngine' -export * from './src/templateEngine' -export * from './src/templating' -export * from './src/templateSources' +export * from './nativeTemplateEngine' +export * from './templateEngine' +export * from './templating' +export * from './templateSources' diff --git a/packages/tko.computed/package.json b/packages/tko.computed/package.json index d5fbdbf9..ce3b1bd3 100644 --- a/packages/tko.computed/package.json +++ b/packages/tko.computed/package.json @@ -3,7 +3,7 @@ "version": "1.0.0", "description": "TKO Computed Observables", "main": "dist/tko.computed.js", - "module": "index.js", + "module": "src/index.js", "dependencies": { "tko.utils": "knockout/tko.utils", "tko.observable": "knockout/tko.observable" diff --git a/packages/tko.computed/index.js b/packages/tko.computed/src/index.js similarity index 79% rename from packages/tko.computed/index.js rename to packages/tko.computed/src/index.js index 1f83ffc7..057f188b 100644 --- a/packages/tko.computed/index.js +++ b/packages/tko.computed/src/index.js @@ -10,9 +10,9 @@ export { isComputed, isPureComputed, pureComputed -} from './src/computed.js'; +} from './computed.js'; export { throttleExtender -} from './src/throttleExtender'; +} from './throttleExtender'; diff --git a/packages/tko.filter.punches/package.json b/packages/tko.filter.punches/package.json index 547c1a5f..63abd7ea 100644 --- a/packages/tko.filter.punches/package.json +++ b/packages/tko.filter.punches/package.json @@ -3,7 +3,7 @@ "version": "0.2.0", "description": "TKO filters from knockout punches", "main": "dist/tko.filter.punches.js", - "module": "index.js", + "module": "src/index.js", "files": [ "dist/", "src/", diff --git a/packages/tko.filter.punches/index.js b/packages/tko.filter.punches/src/index.js similarity index 100% rename from packages/tko.filter.punches/index.js rename to packages/tko.filter.punches/src/index.js diff --git a/packages/tko.lifecycle/index.js b/packages/tko.lifecycle/index.js deleted file mode 100644 index 584fdd6b..00000000 --- a/packages/tko.lifecycle/index.js +++ /dev/null @@ -1,3 +0,0 @@ - - -export {default as LifeCycle} from './src/LifeCycle' \ No newline at end of file diff --git a/packages/tko.lifecycle/package.json b/packages/tko.lifecycle/package.json index 3816ef1a..be6df508 100644 --- a/packages/tko.lifecycle/package.json +++ b/packages/tko.lifecycle/package.json @@ -13,7 +13,7 @@ "version": "1.0.0", "description": "Knockout LifeCycle for object instances", "main": "dist/tko.lifecycle.js", - "module": "index.js", + "module": "src/index.js", "repository": "git@github.com:knockout/tko.lifecycle.git", "author": "Knockout Team", "license": "MIT", diff --git a/packages/tko.lifecycle/src/index.js b/packages/tko.lifecycle/src/index.js new file mode 100644 index 00000000..80e2d392 --- /dev/null +++ b/packages/tko.lifecycle/src/index.js @@ -0,0 +1,3 @@ + + +export {default as LifeCycle} from './LifeCycle' \ No newline at end of file diff --git a/packages/tko.observable/index.js b/packages/tko.observable/index.js deleted file mode 100644 index 5a3923fa..00000000 --- a/packages/tko.observable/index.js +++ /dev/null @@ -1,21 +0,0 @@ -// -// Observables. -// --- -// -// The following are added to the root `[t]ko` object. -// - -export { - observable, isObservable, unwrap, peek, - isWriteableObservable, isWritableObservable -} from './src/observable'; -export { isSubscribable, subscribable } from './src/subscribable'; -export { observableArray } from './src/observableArray'; -export { trackArrayChanges, arrayChangeEventName } from './src/observableArray.changeTracking'; -export { toJS, toJSON } from './src/mappingHelpers'; -export { deferUpdates } from './src/defer.js'; - -export { valuesArePrimitiveAndEqual, applyExtenders, extenders } from './src/extenders'; -import * as dependencyDetection from './src/dependencyDetection'; - -export { dependencyDetection }; diff --git a/packages/tko.observable/package.json b/packages/tko.observable/package.json index b00cb788..96ba2424 100644 --- a/packages/tko.observable/package.json +++ b/packages/tko.observable/package.json @@ -3,7 +3,7 @@ "version": "0.1.0", "description": "TKO subscribables and observables", "main": "dist/tko.observable.js", - "module": "index.js", + "module": "src/index.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, diff --git a/packages/tko.observable/src/index.js b/packages/tko.observable/src/index.js new file mode 100644 index 00000000..5587db03 --- /dev/null +++ b/packages/tko.observable/src/index.js @@ -0,0 +1,21 @@ +// +// Observables. +// --- +// +// The following are added to the root `[t]ko` object. +// + +export { + observable, isObservable, unwrap, peek, + isWriteableObservable, isWritableObservable +} from './observable'; +export { isSubscribable, subscribable } from './subscribable'; +export { observableArray } from './observableArray'; +export { trackArrayChanges, arrayChangeEventName } from './observableArray.changeTracking'; +export { toJS, toJSON } from './mappingHelpers'; +export { deferUpdates } from './defer.js'; + +export { valuesArePrimitiveAndEqual, applyExtenders, extenders } from './extenders'; +import * as dependencyDetection from './dependencyDetection'; + +export { dependencyDetection }; diff --git a/packages/tko.provider.attr/index.js b/packages/tko.provider.attr/index.js deleted file mode 100644 index 9ba568f7..00000000 --- a/packages/tko.provider.attr/index.js +++ /dev/null @@ -1 +0,0 @@ -export {default as AttributeProvider} from './src/AttributeProvider.js' diff --git a/packages/tko.provider.attr/package.json b/packages/tko.provider.attr/package.json index c6309186..40a87417 100644 --- a/packages/tko.provider.attr/package.json +++ b/packages/tko.provider.attr/package.json @@ -3,7 +3,7 @@ "version": "1.0.0", "description": "Link HTML attributes (e.g. ko-handler-name) to binding handlers", "main": "dist/tko.provider.attr.js", - "module": "index.js", + "module": "src/index.js", "license": "MIT", "karma": {"frameworks":["mocha","chai"]} } diff --git a/packages/tko.provider.attr/src/index.js b/packages/tko.provider.attr/src/index.js new file mode 100644 index 00000000..03b2da68 --- /dev/null +++ b/packages/tko.provider.attr/src/index.js @@ -0,0 +1 @@ +export {default as AttributeProvider} from './AttributeProvider.js' diff --git a/packages/tko.provider.bindingString/index.js b/packages/tko.provider.bindingString/index.js deleted file mode 100644 index 2f1f5b41..00000000 --- a/packages/tko.provider.bindingString/index.js +++ /dev/null @@ -1 +0,0 @@ -export {default as BindingStringProvider} from './src/BindingStringProvider' diff --git a/packages/tko.provider.bindingString/package.json b/packages/tko.provider.bindingString/package.json index cf618f59..a268fa97 100644 --- a/packages/tko.provider.bindingString/package.json +++ b/packages/tko.provider.bindingString/package.json @@ -3,7 +3,7 @@ "version": "1.0.0", "description": "Abstract Base Class for providers that parse a binding string", "main": "dist/tko.provider.bindingString.js", - "module": "index.js", + "module": "src/index.js", "license": "MIT", "karma": { "frameworks": ["mocha", "chai"]} } diff --git a/packages/tko.provider.bindingString/src/index.js b/packages/tko.provider.bindingString/src/index.js new file mode 100644 index 00000000..00137b14 --- /dev/null +++ b/packages/tko.provider.bindingString/src/index.js @@ -0,0 +1 @@ +export {default as BindingStringProvider} from './BindingStringProvider' diff --git a/packages/tko.provider.component/index.js b/packages/tko.provider.component/index.js deleted file mode 100644 index 5860a579..00000000 --- a/packages/tko.provider.component/index.js +++ /dev/null @@ -1 +0,0 @@ -export {default as ComponentProvider} from './src/ComponentProvider' diff --git a/packages/tko.provider.component/package.json b/packages/tko.provider.component/package.json index 5a660dcf..1fed4ad1 100644 --- a/packages/tko.provider.component/package.json +++ b/packages/tko.provider.component/package.json @@ -3,7 +3,7 @@ "version": "1.0.0", "description": "Bind custom web components e.g. ", "main": "dist/tko.provider.component.js", - "module": "index.js", + "module": "src/index.js", "license": "MIT", "karma": {"frameworks": ["jasmine"]} } diff --git a/packages/tko.provider.component/src/index.js b/packages/tko.provider.component/src/index.js new file mode 100644 index 00000000..3fc96f12 --- /dev/null +++ b/packages/tko.provider.component/src/index.js @@ -0,0 +1 @@ +export {default as ComponentProvider} from './ComponentProvider' diff --git a/packages/tko.provider.databind/index.js b/packages/tko.provider.databind/index.js deleted file mode 100644 index f8845310..00000000 --- a/packages/tko.provider.databind/index.js +++ /dev/null @@ -1 +0,0 @@ -export {default as DataBindProvider} from './src/DataBindProvider' diff --git a/packages/tko.provider.databind/package.json b/packages/tko.provider.databind/package.json index e9b1f382..bac99e9d 100644 --- a/packages/tko.provider.databind/package.json +++ b/packages/tko.provider.databind/package.json @@ -3,7 +3,7 @@ "version": "1.0.0", "description": "Link HTML attributes based on a `data-bind` HTML attribute", "main": "dist/tko.provider.databind.js", - "module": "index.js", + "module": "src/index.js", "license": "MIT", "karma": { "frameworks": ["mocha", "sinon", "chai"] } } diff --git a/packages/tko.provider.databind/src/index.js b/packages/tko.provider.databind/src/index.js new file mode 100644 index 00000000..04143d3f --- /dev/null +++ b/packages/tko.provider.databind/src/index.js @@ -0,0 +1 @@ +export {default as DataBindProvider} from './DataBindProvider' diff --git a/packages/tko.provider.multi/index.js b/packages/tko.provider.multi/index.js deleted file mode 100644 index cf226573..00000000 --- a/packages/tko.provider.multi/index.js +++ /dev/null @@ -1,2 +0,0 @@ - -export {default as MultiProvider} from './src/MultiProvider' diff --git a/packages/tko.provider.multi/package.json b/packages/tko.provider.multi/package.json index 9747a9c7..0725074a 100644 --- a/packages/tko.provider.multi/package.json +++ b/packages/tko.provider.multi/package.json @@ -3,7 +3,7 @@ "version": "1.0.0", "description": "Combine multiple other providers into one", "main": "dist/tko.provider.multi.js", - "module": "index.js", + "module": "src/index.js", "license": "MIT", "karma":{"frameworks":["mocha", "chai"]} } diff --git a/packages/tko.provider.multi/src/index.js b/packages/tko.provider.multi/src/index.js new file mode 100644 index 00000000..cd98cdb9 --- /dev/null +++ b/packages/tko.provider.multi/src/index.js @@ -0,0 +1,2 @@ + +export {default as MultiProvider} from './MultiProvider' diff --git a/packages/tko.provider.mustache/package.json b/packages/tko.provider.mustache/package.json index 986efb28..5170f1f3 100644 --- a/packages/tko.provider.mustache/package.json +++ b/packages/tko.provider.mustache/package.json @@ -3,7 +3,7 @@ "version": "0.1.0", "description": "Interpolate text/node attributes {{ }}", "main": "dist/tko.preprocessor.mustache.js", - "module": "index.js", + "module": "src/index.js", "files": [ "dist/", "src/", diff --git a/packages/tko.provider.mustache/index.js b/packages/tko.provider.mustache/src/index.js similarity index 53% rename from packages/tko.provider.mustache/index.js rename to packages/tko.provider.mustache/src/index.js index a5068962..ba91f152 100644 --- a/packages/tko.provider.mustache/index.js +++ b/packages/tko.provider.mustache/src/index.js @@ -1,12 +1,12 @@ export { default as AttributeMustacheProvider -} from './src/AttributeMustacheProvider' +} from './AttributeMustacheProvider' export { default as TextMustacheProvider -} from './src/TextMustacheProvider' +} from './TextMustacheProvider' export { parseInterpolation -} from './src/mustacheParser' +} from './mustacheParser' diff --git a/packages/tko.provider.virtual/index.js b/packages/tko.provider.virtual/index.js deleted file mode 100644 index 80b65a55..00000000 --- a/packages/tko.provider.virtual/index.js +++ /dev/null @@ -1 +0,0 @@ -export {default as VirtualProvider} from './src/VirtualProvider' diff --git a/packages/tko.provider.virtual/package.json b/packages/tko.provider.virtual/package.json index 0dbe6d83..f446db70 100644 --- a/packages/tko.provider.virtual/package.json +++ b/packages/tko.provider.virtual/package.json @@ -3,7 +3,7 @@ "version": "1.0.0", "description": "Binding provider for virtual elements", "main": "dist/tko.provider.virtual.js", - "module": "index.js", + "module": "src/index.js", "author": "Knockout Team", "license": "MIT", "karma": { "frameworks": ["mocha", "chai"]} diff --git a/packages/tko.provider.virtual/src/index.js b/packages/tko.provider.virtual/src/index.js new file mode 100644 index 00000000..4291a027 --- /dev/null +++ b/packages/tko.provider.virtual/src/index.js @@ -0,0 +1 @@ +export {default as VirtualProvider} from './VirtualProvider' diff --git a/packages/tko.provider/index.js b/packages/tko.provider/index.js deleted file mode 100644 index b7038d31..00000000 --- a/packages/tko.provider/index.js +++ /dev/null @@ -1,2 +0,0 @@ - -export { default as Provider } from './src/Provider' diff --git a/packages/tko.provider/package.json b/packages/tko.provider/package.json index b4ac34e8..11f585c5 100644 --- a/packages/tko.provider/package.json +++ b/packages/tko.provider/package.json @@ -3,7 +3,7 @@ "version": "1.0.0", "description": "Abstract base class of tko Provider (HTML <-> Data Binding linker)", "main": "dist/tko.provider.js", - "module": "index.js", + "module": "src/index.js", "author": "Knockout Team", "license": "MIT", "karma" : { "frameworks": ["mocha", "chai"] } diff --git a/packages/tko.provider/src/index.js b/packages/tko.provider/src/index.js new file mode 100644 index 00000000..8bfbeeed --- /dev/null +++ b/packages/tko.provider/src/index.js @@ -0,0 +1,2 @@ + +export { default as Provider } from './Provider' diff --git a/packages/tko.utils.component/package.json b/packages/tko.utils.component/package.json index 5c8e2fb6..1060fd27 100644 --- a/packages/tko.utils.component/package.json +++ b/packages/tko.utils.component/package.json @@ -3,7 +3,7 @@ "version": "1.0.0", "description": "Registry and loading utilities for web components", "main": "dist/tko.utils.component.js", - "module": "index.js", + "module": "src/index.js", "license": "MIT", "karma": {"frameworks":["jasmine"]} } diff --git a/packages/tko.utils.component/index.js b/packages/tko.utils.component/src/index.js similarity index 82% rename from packages/tko.utils.component/index.js rename to packages/tko.utils.component/src/index.js index 8bd747ff..14ca3b23 100644 --- a/packages/tko.utils.component/index.js +++ b/packages/tko.utils.component/src/index.js @@ -1,7 +1,7 @@ -import {registry} from './src/registry' +import {registry} from './registry' -import { ComponentABC } from './src/ComponentABC' +import { ComponentABC } from './ComponentABC' import { @@ -10,7 +10,7 @@ import { unregister, defaultLoader, defaultConfigRegistry -} from './src/loaders' +} from './loaders' export default { ComponentABC, diff --git a/packages/tko.utils.parser/index.js b/packages/tko.utils.parser/index.js deleted file mode 100644 index 8022c84a..00000000 --- a/packages/tko.utils.parser/index.js +++ /dev/null @@ -1,7 +0,0 @@ - -export {default as Parser} from './src/Parser' -export {default as Identifier} from './src/Identifier' -export {default as Arguments} from './src/Arguments' -export {default as Node} from './src/Node' - -export {default as parseObjectLiteral} from './src/preparse' diff --git a/packages/tko.utils.parser/package.json b/packages/tko.utils.parser/package.json index 24f12e6f..9e4dbb1e 100644 --- a/packages/tko.utils.parser/package.json +++ b/packages/tko.utils.parser/package.json @@ -3,7 +3,7 @@ "version": "1.0.0", "description": "Parse the Javascript-like language used in data-bind and other HTML attributes (CSP-safe)", "main": "dist/tko.utils.parser.js", - "module": "index.js", + "module": "src/index.js", "license": "MIT", "karma": { "frameworks": ["mocha", "sinon", "chai"] } } diff --git a/packages/tko.utils.parser/src/index.js b/packages/tko.utils.parser/src/index.js new file mode 100644 index 00000000..91bda022 --- /dev/null +++ b/packages/tko.utils.parser/src/index.js @@ -0,0 +1,7 @@ + +export {default as Parser} from './Parser' +export {default as Identifier} from './Identifier' +export {default as Arguments} from './Arguments' +export {default as Node} from './Node' + +export {default as parseObjectLiteral} from './preparse' diff --git a/packages/tko.utils/index.js b/packages/tko.utils/index.js deleted file mode 100644 index ef306611..00000000 --- a/packages/tko.utils/index.js +++ /dev/null @@ -1,34 +0,0 @@ -/* - tko.util - === - - -*/ - -export * from './src/array.js'; -export * from './src/async.js'; -export * from './src/error.js'; -export * from './src/ie.js'; -export * from './src/object.js'; -export * from './src/proto.js'; -export * from './src/string.js'; -export * from './src/symbol.js'; -export * from './src/css.js'; -export { jQuerySetInstance } from './src/jquery.js'; -export { default as options } from './src/options.js'; - -// DOM; -export * from './src/dom/event.js'; -export * from './src/dom/info.js'; -export * from './src/dom/manipulation.js'; -export * from './src/dom/fixes.js'; -export * from './src/dom/html.js'; -export * from './src/dom/disposal.js'; - -// Sub-Modules; -import * as memoization from './src/memoization'; -import * as tasks from './src/tasks.js'; -import * as virtualElements from './src/dom/virtualElements.js'; -import * as domData from './src/dom/data.js'; - -export {tasks, virtualElements, domData, memoization}; diff --git a/packages/tko.utils/package.json b/packages/tko.utils/package.json index 42f9797a..b33f4acf 100644 --- a/packages/tko.utils/package.json +++ b/packages/tko.utils/package.json @@ -3,7 +3,7 @@ "version": "0.1.0", "description": "TKO Utilities", "main": "dist/tko.utils.js", - "module": "index.js", + "module": "src/index.js", "files": [ "dist/", "src/", diff --git a/packages/tko.utils/src/index.js b/packages/tko.utils/src/index.js new file mode 100644 index 00000000..5ff1abba --- /dev/null +++ b/packages/tko.utils/src/index.js @@ -0,0 +1,34 @@ +/* + tko.util + === + + +*/ + +export * from './array.js'; +export * from './async.js'; +export * from './error.js'; +export * from './ie.js'; +export * from './object.js'; +export * from './proto.js'; +export * from './string.js'; +export * from './symbol.js'; +export * from './css.js'; +export { jQuerySetInstance } from './jquery.js'; +export { default as options } from './options.js'; + +// DOM; +export * from './dom/event.js'; +export * from './dom/info.js'; +export * from './dom/manipulation.js'; +export * from './dom/fixes.js'; +export * from './dom/html.js'; +export * from './dom/disposal.js'; + +// Sub-Modules; +import * as memoization from './memoization'; +import * as tasks from './tasks.js'; +import * as virtualElements from './dom/virtualElements.js'; +import * as domData from './dom/data.js'; + +export {tasks, virtualElements, domData, memoization}; From 9e41ba53a536a79ab3e321eef236ef6fedfdb0dd Mon Sep 17 00:00:00 2001 From: Casey Webb Date: Sat, 14 Oct 2017 18:10:53 -0500 Subject: [PATCH 03/20] Add standard eslint config --- .eslintrc | 6 +++++ package.json | 2 ++ packages/tko.lifecycle/.eslintrc | 40 -------------------------------- 3 files changed, 8 insertions(+), 40 deletions(-) create mode 100644 .eslintrc delete mode 100644 packages/tko.lifecycle/.eslintrc diff --git a/.eslintrc b/.eslintrc new file mode 100644 index 00000000..fe3f7b2d --- /dev/null +++ b/.eslintrc @@ -0,0 +1,6 @@ +{ + "extends": "standard", + "parserOptions": { + "sourceType": "module" + } +} \ No newline at end of file diff --git a/package.json b/package.json index 7793c2b5..dfff2f19 100644 --- a/package.json +++ b/package.json @@ -47,6 +47,8 @@ "chai": "^4.1.0", "colors": "^1.1.2", "electron": "^1.6.11", + "eslint": "^4.9.0", + "eslint-config-standard": "^10.2.1", "gulp": "^3.9.1", "gulp-rename": "^1.2.2", "gulp-replace": "^0.6.1", diff --git a/packages/tko.lifecycle/.eslintrc b/packages/tko.lifecycle/.eslintrc deleted file mode 100644 index 391821a7..00000000 --- a/packages/tko.lifecycle/.eslintrc +++ /dev/null @@ -1,40 +0,0 @@ -extends: 'eslint:recommended' - -ecmaFeatures: - modules: true - # Note: https://github.com/eslint/eslint/issues/4787 - sourceType: module - -parserOptions: - sourceType: module - -rules: - indent: - - 2 - - 2 - quotes: 0 - linebreak-style: - - 2 - - unix - semi: 0 - strict: 0 - dot-notation: 0 - no-underscore-dangle: 0 - eol-last: 0 - curly: 0 - camelcase: 0 - -env: - browser: true - es6: true - -globals: - assert: true - describe: true - it: true - iit: true - ddescribe: true - afterEach: true - beforeEach: true - expect: true - testNode: true \ No newline at end of file From 2080de8f8d043a4694ed6b07e58f3d7d9b199efa Mon Sep 17 00:00:00 2001 From: Casey Webb Date: Sat, 14 Oct 2017 18:11:30 -0500 Subject: [PATCH 04/20] Add *-error.log to .gitignore (ignore yarn-error.log) --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index 2edc168e..330c9904 100644 --- a/.gitignore +++ b/.gitignore @@ -24,6 +24,7 @@ work/ yarn.lock *-debug.log +*-error.log # Rollup Visualizer visual.html From 0c1dacb3b412d59f7a47595a6850e156ba94a173 Mon Sep 17 00:00:00 2001 From: Casey Webb Date: Sat, 14 Oct 2017 18:17:26 -0500 Subject: [PATCH 05/20] Don't commit dist files to repo --- .gitignore | 2 +- dist/ko.js | 3 - dist/ko.js.map | 3 - dist/ko.min.js | 3 - dist/ko.min.js.map | 3 - .../dist/knockout-fast-foreach.js | 477 --- .../dist/knockout-fast-foreach.min.js | 7 - .../tko.binding.if/dist/tko.binding.if.js | 2679 ------------- .../dist/tko.binding.template.js | 3463 ----------------- packages/tko.utils/dist/tko.utils.js | 1459 ------- 10 files changed, 1 insertion(+), 8098 deletions(-) delete mode 100644 dist/ko.js delete mode 100644 dist/ko.js.map delete mode 100644 dist/ko.min.js delete mode 100644 dist/ko.min.js.map delete mode 100644 packages/tko.binding.foreach/dist/knockout-fast-foreach.js delete mode 100644 packages/tko.binding.foreach/dist/knockout-fast-foreach.min.js delete mode 100644 packages/tko.binding.if/dist/tko.binding.if.js delete mode 100644 packages/tko.binding.template/dist/tko.binding.template.js delete mode 100644 packages/tko.utils/dist/tko.utils.js diff --git a/.gitignore b/.gitignore index 330c9904..a9a32993 100644 --- a/.gitignore +++ b/.gitignore @@ -19,7 +19,7 @@ node_modules # Knockout built files _repo coverage/ -work/ +dist/ yarn.lock diff --git a/dist/ko.js b/dist/ko.js deleted file mode 100644 index c4b7f834..00000000 --- a/dist/ko.js +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:6e49760d4cebb8f102f606fb8d1759a8620bd315e5fee2aeaae4debf1ba9d31c -size 328360 diff --git a/dist/ko.js.map b/dist/ko.js.map deleted file mode 100644 index a580fd39..00000000 --- a/dist/ko.js.map +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:97c141ef5bdc072cb4679303d00b6895bcf7827806835bb6b895ba01d42f70be -size 581943 diff --git a/dist/ko.min.js b/dist/ko.min.js deleted file mode 100644 index 704e8a0f..00000000 --- a/dist/ko.min.js +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:dfc23c9f789d776c36863d9b5305fc7fff7da13b28deb6336583280aa5d374ab -size 170030 diff --git a/dist/ko.min.js.map b/dist/ko.min.js.map deleted file mode 100644 index 951fd310..00000000 --- a/dist/ko.min.js.map +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:12c5cc6e491c9e1b0dd332b59f0dac91caf9d3ff2d926324ffa2411fbad3e25f -size 542337 diff --git a/packages/tko.binding.foreach/dist/knockout-fast-foreach.js b/packages/tko.binding.foreach/dist/knockout-fast-foreach.js deleted file mode 100644 index d47d2323..00000000 --- a/packages/tko.binding.foreach/dist/knockout-fast-foreach.js +++ /dev/null @@ -1,477 +0,0 @@ -/*! - Knockout Fast Foreach v0.6.0 (2016-07-28T11:02:54.197Z) - By: Brian M Hunt (C) 2015 | License: MIT - - Adds `fastForEach` to `ko.bindingHandlers`. -*/ -(function (root, factory) { - if (typeof define === 'function' && define.amd) { - define(['knockout'], factory); - } else if (typeof exports === 'object') { - module.exports = factory(require('knockout')); - } else { - root.KnockoutFastForeach = factory(root.ko); - } -}(this, function (ko) { - "use strict"; -// index.js -// -------- -// Fast For Each -// -// Employing sound techniques to make a faster Knockout foreach binding. -// -------- - -// Utilities -var MAX_LIST_SIZE = 9007199254740991; - -// from https://github.com/jonschlinkert/is-plain-object -function isPlainObject(o) { - return !!o && typeof o === 'object' && o.constructor === Object; -} - -// From knockout/src/virtualElements.js -var commentNodesHaveTextProperty = document && document.createComment("test").text === ""; -var startCommentRegex = commentNodesHaveTextProperty ? /^$/ : /^\s*ko(?:\s+([\s\S]+))?\s*$/; -var supportsDocumentFragment = document && typeof document.createDocumentFragment === "function"; -function isVirtualNode(node) { - return (node.nodeType === 8) && startCommentRegex.test(commentNodesHaveTextProperty ? node.text : node.nodeValue); -} - - -// Get a copy of the (possibly virtual) child nodes of the given element, -// put them into a container, then empty the given node. -function makeTemplateNode(sourceNode) { - var container = document.createElement("div"); - var parentNode; - if (sourceNode.content) { - // For e.g.