Skip to content
This repository has been archived by the owner on Dec 19, 2017. It is now read-only.

Commit

Permalink
Merge 6013c93 into 6198119
Browse files Browse the repository at this point in the history
  • Loading branch information
caseyWebb committed Oct 26, 2017
2 parents 6198119 + 6013c93 commit 6ed2e5d
Show file tree
Hide file tree
Showing 38 changed files with 6,232 additions and 368 deletions.
2 changes: 2 additions & 0 deletions .gitattributes
@@ -0,0 +1,2 @@
ko-component-router.js linguist-generated=true
ko-component-router.min.js linguist-generated=true
7 changes: 3 additions & 4 deletions .gitignore
@@ -1,11 +1,10 @@
.DS_Store
npm-debug.log
npm-debug.log.*

*.log

.cache/
.chrome/
.vscode/
coverage/
node_modules/

dist/
node_modules/
4 changes: 2 additions & 2 deletions .travis.yml
Expand Up @@ -13,13 +13,13 @@ cache:
directories:
- node_modules
before_install:
- yarn global add greenkeeper-lockfile@1
- yarn global add coveralls greenkeeper-lockfile@1
before_script:
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
- greenkeeper-lockfile-update
after_script:
- "./node_modules/coveralls/bin/coveralls.js < coverage/lcov.info"
- coveralls < coverage/lcov.info
- greenkeeper-lockfile-upload
notifications:
email: false
Expand Down
2 changes: 1 addition & 1 deletion LICENSE.md
@@ -1,7 +1,7 @@
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004

Copyright (C) 2004 Sam Hocevar <sam@hocevar.net>
Copyright (C) 2017 Casey Webb <notcaseywebb@gmail.com>

Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
Expand Down
2 changes: 1 addition & 1 deletion bower.json
@@ -1,7 +1,7 @@
{
"name": "ko-component-router",
"description": "Component-based routing for KnockoutJS",
"main": "dist/ko-component-router.js",
"main": "ko-component-router.js",
"authors": [
"Casey Webb <notcaseywebb@gmail.com>"
],
Expand Down
6 changes: 6 additions & 0 deletions examples/.eslintrc
@@ -0,0 +1,6 @@
{
"extends": "profiscience",
"parserOptions": {
"sourceType": "module"
}
}
3 changes: 2 additions & 1 deletion examples/lazy-loading/plugins/lazy-component-loader.js
Expand Up @@ -7,7 +7,7 @@ export default function plugin(componentName) {
componentName,

// then some middleware to load that component...
(ctx) => {
() => {
// bail if already loaded
if (ko.components.isRegistered(componentName)) {
return
Expand All @@ -16,6 +16,7 @@ export default function plugin(componentName) {
// https://webpack.js.org/guides/code-splitting-import/
return import('../views/' + componentName + '/index.js')
.then((exports) => ko.components.register(componentName, exports))
// eslint-disable-next-line no-console
.catch((err) => console.error('Error fetching component', componentName, err))
}
]
Expand Down
2 changes: 1 addition & 1 deletion examples/webpack.config.js
@@ -1,4 +1,4 @@
'use strict'
'use strict' // eslint-disable-line strict

const path = require('path')

Expand Down
21 changes: 0 additions & 21 deletions flyfile.js

This file was deleted.

0 comments on commit 6ed2e5d

Please sign in to comment.