Skip to content
This repository was archived by the owner on Aug 29, 2021. It is now read-only.

Commit fc843d6

Browse files
committed
Builds moved to the bfanger/bower-angular-keyboard repository
1 parent f1006b3 commit fc843d6

File tree

10 files changed

+40
-81
lines changed

10 files changed

+40
-81
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
node_modules
2-
bower_components
2+
bower-angular-keyboard

Examples/focus.html

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,8 @@ <h1>Angular Keyboard: kbFocus</h1>
4545
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.
4646
</div>
4747

48-
<script src="https://cdnjs.cloudflare.com/ajax/libs/Faker/0.7.2/MinFaker.js"></script>
49-
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.0/angular.min.js"></script>
50-
51-
<script src="../dist/keyboard.js"></script>
48+
<script src="../node_modules/angular/angular.min.js"></script>
49+
<script src="../bower-angular-keyboard/keyboard.js"></script>
5250
<script>
5351
var demo = angular.module('demo', ['keyboard']);
5452
demo.run(function ($rootScope, kbFocus) {

Examples/menu.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ <h2>Log</h2>
5050
</div>
5151
</div>
5252

53-
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.0/angular.min.js"></script>
54-
<script src="../dist/keyboard.js"></script>
53+
<script src="../node_modules/angular/angular.min.js"></script>
54+
<script src="../bower-angular-keyboard/keyboard.js"></script>
5555
<script>
5656
var demo = angular.module('demo', ['keyboard']);
5757
demo.run(function ($rootScope, kbFocus) {

Examples/modes.html

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -84,11 +84,10 @@ <h1>Angular Keyboard: kbList modes</h1>
8484
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.
8585
</div>
8686

87-
<script src="https://cdnjs.cloudflare.com/ajax/libs/Faker/0.7.2/MinFaker.js"></script>
88-
<script src="http://code.jquery.com/jquery-2.1.1.min.js"></script>
89-
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.0/angular.min.js"></script>
90-
91-
<script src="../dist/keyboard.js"></script>
87+
<script src="../node_modules/faker/build/build/faker.min.js"></script>
88+
<script src="../node_modules/jquery/dist/jquery.min.js"></script>
89+
<script src="../node_modules/angular/angular.min.js"></script>
90+
<script src="../bower-angular-keyboard/keyboard.js"></script>
9291
<script>
9392
var demo = angular.module('demo', ['keyboard']);
9493
demo.run(function ($rootScope, $timeout, $interval, $log) {
@@ -97,7 +96,7 @@ <h1>Angular Keyboard: kbList modes</h1>
9796
for (var i = 0; i < 15; i++) {
9897
items.push({
9998
id: i + 1,
100-
name: Faker.Name.findName()
99+
name: faker.name.findName()
101100
});
102101
}
103102
$rootScope.items = items;

Examples/orientation.html

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -88,22 +88,19 @@ <h4>{{item.name}}</h4>
8888
Thanks to <a href="https://github.com/marak/faker.js/" target="_blank">Faker.js</a> for the generated names and <a href="http://try.buildwinjs.com/" target="_blank">WinJS</a> for the ui-dark theme.
8989
</p>
9090

91-
92-
93-
<script src="https://cdnjs.cloudflare.com/ajax/libs/Faker/0.7.2/MinFaker.js"></script>
94-
<script src="http://code.jquery.com/jquery-2.1.1.min.js"></script>
95-
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.0/angular.min.js"></script>
96-
97-
<script src="../dist/keyboard.js"></script>
91+
<script src="../node_modules/faker/build/build/faker.min.js"></script>
92+
<script src="../node_modules/jquery/dist/jquery.min.js"></script>
93+
<script src="../node_modules/angular/angular.min.js"></script>
94+
<script src="../bower-angular-keyboard/keyboard.js"></script>
9895
<script>
9996
var demo = angular.module('demo', ['keyboard']);
10097
demo.run(function ($rootScope, $timeout) {
10198
var items = [];
10299
for (var i = 0; i < 30; i++) {
103100
items.push({
104101
id: i + 1,
105-
avatar: Faker.Image.avatar(),
106-
name: Faker.Name.findName()
102+
avatar: faker.image.avatar(),
103+
name: faker.name.findName()
107104
});
108105
}
109106
$rootScope.items = items;

Readme.md

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,19 @@ Keyboard behavior for AngularJS Webapps.
1818

1919
## Installation
2020

21-
Download or install via bower:
22-
`bower install angular-keyboard`
21+
### bower
2322

24-
Include the `dist/keyboard.min.js` script and add 'keyboard' as dependancy.
23+
```shell
24+
bower install angular
25+
```
26+
27+
Then add a `<script>` to your `index.html`:
28+
29+
```html
30+
<script src="/bower_components/angular-keyboard/angular-keyboard.min.js"></script>
31+
```
32+
33+
And add the 'keyboard' module as dependancy.
2534

2635
```js
2736
angular.module('myApp', ['keyboard']);
@@ -90,11 +99,7 @@ Set the autofocus attribute based on an expression.
9099
## Development
91100

92101
* Install [node.js](http://nodejs.org/)
93-
* Install global dev dependencies: `npm install -g bower gulp`
94-
* Install local dev dependencies: `npm install && bower install` in repository directory
102+
* Install gulp: `npm install -g bower gulp`
103+
* Install dependencies: `npm install` in the repository directory.
95104
* `gulp build` to build
96105
* `gulp watch` for building & livereload on every change.
97-
98-
## Contributing
99-
100-
When issuing a pull request, please exclude changes from the "dist" folder to avoid merge conflicts.

bower.json

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

gulpfile.js

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,16 @@ var noprotocol = require('gulp-noprotocol');
44
var livereload = require('gulp-livereload');
55

66
gulp.task('build', function () {
7-
gulp
8-
.src(['src/*.css'])
9-
.pipe(gulp.dest('dist/'));
10-
gulp
11-
.src(['src/keyboard.module.js', 'src/**/*.js']) // All js files, but keyboard.module.js first.
7+
return gulp
8+
.src(['src/keyboard.module.js', 'src/**/*.js']) // All *.js files, but keyboard.module.js first.
129
.pipe(noprotocol.angular({
1310
output: 'keyboard.js'
14-
})).pipe(gulp.dest('dist/'));
11+
})).pipe(gulp.dest('bower-angular-keyboard/'));
1512
});
1613
gulp.task('watch', ['build'], function () {
1714
livereload.listen();
1815
gulp.watch('src/**/*.js', ['build']);
19-
gulp.watch(['dist/*.js', 'Examples/*.html']).on('change', livereload.changed);
16+
gulp.watch(['bower-angular-keyboard/*.js', 'Examples/*.html']).on('change', livereload.changed);
2017
});
2118

2219
gulp.task('default', ['build']);

package.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,12 @@
22
"name": "angular-keyboard",
33
"description": "Keyboard behavior for AngularJS Webapps",
44
"devDependencies": {
5-
"gulp": "*",
6-
"gulp-livereload": "*",
7-
"gulp-noprotocol": "^0.2.0"
5+
"angular": "^1.3.0",
6+
"faker": "^2.0.1",
7+
"gulp": "^3.8.9",
8+
"gulp-livereload": "^2.1.1",
9+
"gulp-noprotocol": "^0.2.1",
10+
"jquery": "^2.1.1"
811
},
912
"repository": {
1013
"type": "git",

src/keyboard.example.css

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

0 commit comments

Comments
 (0)