Skip to content

Commit 262f214

Browse files
committed
Add support for yarn
Also updated heroku stack Closes bfanger#19
1 parent dc022f3 commit 262f214

File tree

9 files changed

+28
-26
lines changed

9 files changed

+28
-26
lines changed

Readme.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ Keyboard behavior for AngularJS Webapps.
1212

1313
## Demos
1414

15-
* [kbList & kbSelect demo](http://angular-keyboard.herokuapp.com/example-modes.html)
16-
* [Scroll and orientation demo](http://angular-keyboard.herokuapp.com/example-orientation.html)
17-
* [kbFocus demo](http://angular-keyboard.herokuapp.com/example-focus.html)
18-
* [kbInvoke demo](http://angular-keyboard.herokuapp.com/example-menu.html)
15+
* [kbList & kbSelect demo](https://angular-keyboard.herokuapp.com/example-modes.html)
16+
* [Scroll and orientation demo](https://angular-keyboard.herokuapp.com/example-orientation.html)
17+
* [kbFocus demo](https://angular-keyboard.herokuapp.com/example-focus.html)
18+
* [kbInvoke demo](https://angular-keyboard.herokuapp.com/example-menu.html)
1919

2020
## Installation
2121

@@ -116,7 +116,7 @@ An event handler for `kb-item`. Triggered when clicked or (when focused) with sp
116116

117117
## Development
118118

119-
* Install [node.js](http://nodejs.org/)
119+
* Install [node.js](https://nodejs.org/)
120120
* Install gulp: `npm install -g bower gulp`
121121
* Install dependencies: `npm install` in the repository directory.
122122
* `gulp build` to build

demos/public/example-focus.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<head>
44
<title>kbFocus demo - Angular Keyboard</title>
55
<meta name="viewport" content="width=device-width, initial-scale=1">
6-
<link rel="stylesheet" href="http://bootswatch.com/spacelab/bootstrap.min.css">
6+
<link rel="stylesheet" href="https://bootswatch.com/spacelab/bootstrap.min.css">
77
</head>
88
<body>
99
<div class="container">
@@ -42,7 +42,7 @@ <h1>Angular Keyboard: kbFocus</h1>
4242
</fieldset>
4343
</form>
4444
</div>
45-
Thanks to <a href="https://github.com/goodeggs/ng-focus-on" target="_blank">ng-focus-on</a> for inspiration and <a href="http://bootswatch.com/" target="_blank">bootswatch.com</a> for the 'spacelab' bootstrap theme.
45+
Thanks to <a href="https://github.com/goodeggs/ng-focus-on" target="_blank">ng-focus-on</a> for inspiration and <a href="https://bootswatch.com/" target="_blank">bootswatch.com</a> for the 'spacelab' bootstrap theme.
4646
</div>
4747

4848
<script src="js/angular/angular.min.js"></script>

demos/public/example-menu.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<title>kb-invoke demo - Angular Keyboard</title>
55
<meta charset="UTF-8">
66
<meta name="viewport" content="width=device-width, initial-scale=1.0">
7-
<link rel="stylesheet" href="http://bootswatch.com/sandstone/bootstrap.css">
7+
<link rel="stylesheet" href="https://bootswatch.com/sandstone/bootstrap.css">
88
</head>
99
<body ng-app="demo" ng-strict-di>
1010
<div class="container">
@@ -21,11 +21,11 @@ <h1>Angular Keyboard: kb-invoke</h1>
2121
<li><a kb-item kb-invoke="log($event)">Another action</a></li>
2222
<li><a kb-item kb-invoke="log($event)">Something else here</a></li>
2323
<li class="divider"></li>
24-
<li><a kb-item kb-invoke="log($event)" href="http://angularjs.org/" target="angular">angularjs.org</a></li>
24+
<li><a kb-item kb-invoke="log($event)" href="https://angularjs.org" target="angular">angularjs.org</a></li>
2525
</ul>
2626
</div>
2727
<div class="text-muted" style="margin-top: 200px">
28-
Thanks to <a href="http://bootswatch.com/" target="_blank">bootswatch.com</a> for the 'sandstone' bootstrap theme.
28+
Thanks to <a href="https://bootswatch.com/" target="_blank">bootswatch.com</a> for the 'sandstone' bootstrap theme.
2929
</div>
3030
</div>
3131
<div class="col-sm-6">

demos/public/example-modes.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<head>
44
<title>kb-list demo - Angular Keyboard</title>
55
<meta name="viewport" content="width=device-width, initial-scale=1">
6-
<link rel="stylesheet" href="http://bootswatch.com/readable/bootstrap.min.css">
6+
<link rel="stylesheet" href="https://bootswatch.com/readable/bootstrap.min.css">
77
<style>
88
.text-ellipis {
99
overflow: hidden;
@@ -81,7 +81,7 @@ <h1>Angular Keyboard: kbList modes</h1>
8181
</div>
8282

8383
</div>
84-
Thanks to <a href="https://github.com/marak/faker.js/" target="_blank">Faker.js</a> for the generated names and <a href="http://bootswatch.com/" target="_blank">bootswatch.com</a> for the 'readable' bootstrap theme.
84+
Thanks to <a href="https://github.com/marak/faker.js/" target="_blank">Faker.js</a> for the generated names and <a href="https://bootswatch.com/" target="_blank">bootswatch.com</a> for the 'readable' bootstrap theme.
8585
</div>
8686

8787
<script src="js/faker/faker.min.js"></script>

demos/public/example-orientation.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<head>
44
<title>Scroll and orientation - Angular Keyboard</title>
55
<meta name="viewport" content="width=device-width, initial-scale=1">
6-
<link href='http://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css'>
6+
<link href='https://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css'>
77
<style>
88
body {
99
font-family: Open Sans, sans-serif;

demos/server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ app.use('/js/angular/', express.static(__dirname + '/../node_modules/angular'));
99
app.use('/js/jquery/', express.static(__dirname + '/../node_modules/jquery/dist'));
1010
app.use('/js/faker/', express.static(__dirname + '/../node_modules/faker/build/build'));
1111

12-
var port = process.env.PORT || 3000;
12+
var port = process.env.PORT || 8080;
1313
app.listen(port, function () {
1414
console.log('demo-server started on port', port);
1515
});

jsconfig.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"compilerOptions": {
3+
"target": "es6",
4+
"module": "commonjs",
5+
"allowSyntheticDefaultImports": true
6+
},
7+
"exclude": [
8+
"node_modules"
9+
]
10+
}

package.json

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@
66
"main": "dist/keyboard.js",
77
"devDependencies": {
88
"angular": "^1.*",
9-
"express": "^4.12.0",
9+
"express": "^4.14.0",
1010
"faker": "^3.1.0",
1111
"gulp": "^3.9.1",
1212
"gulp-livereload": "^3.8.0",
13-
"gulp-noprotocol": "^0.8.0",
14-
"jquery": "^2.2.3"
13+
"gulp-noprotocol": "^1.0.0",
14+
"jquery": "^3.0.0"
1515
},
1616
"repository": {
1717
"type": "git",
@@ -32,9 +32,6 @@
3232
"homepage": "https://github.com/bfanger/angular-keyboard",
3333
"scripts": {
3434
"setup": "npm install && node_modules/.bin/gulp build",
35-
"start": "node demos/server.js"
36-
},
37-
"engines": {
38-
"node": "5.x"
35+
"start": "node_modules/.bin/gulp build && node demos/server.js"
3936
}
4037
}

tsconfig.json

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

0 commit comments

Comments
 (0)