Skip to content

Commit f27a7c9

Browse files
committed
first commit
1 parent 979c417 commit f27a7c9

File tree

5 files changed

+37
-4
lines changed

5 files changed

+37
-4
lines changed

blueprints/.jshintrc

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"predef": [
3+
"console"
4+
],
5+
"strict": false
6+
}

blueprints/ember-cli-clappr/index.js

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
/*jshint node:true*/
2+
module.exports = {
3+
description: 'Install clappr from bower',
4+
5+
normalizeEntityName: function() {
6+
},
7+
8+
afterInstall: function() {
9+
return this.addBowerPackageToProject('clappr');
10+
}
11+
};

bower.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"name": "ember-cli-clappr",
33
"dependencies": {
44
"ember": "~2.10.0",
5-
"ember-cli-shims": "0.1.3"
5+
"ember-cli-shims": "0.1.3",
6+
"clappr": "^0.2.65"
67
}
78
}

index.js

+12-1
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,16 @@
22
'use strict';
33

44
module.exports = {
5-
name: 'ember-cli-clappr'
5+
name: 'ember-cli-clappr',
6+
7+
included: function(app, parentAddon) {
8+
var target = (parentAddon || app);
9+
10+
if (target.app) {
11+
target = target.app;
12+
}
13+
14+
var bowerDir = target.bowerDirectory;
15+
target.import(bowerDir + '/clappr/dist/clappr.js');
16+
}
617
};

package.json

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
{
22
"name": "ember-cli-clappr",
33
"version": "0.0.0",
4-
"description": "The default blueprint for ember-cli addons.",
4+
"description": "Ember wrapper for clappr.",
55
"keywords": [
6-
"ember-addon"
6+
"ember-addon",
7+
"clappr",
8+
"video",
9+
"player",
10+
"wrapper"
711
],
812
"license": "MIT",
913
"author": "",

0 commit comments

Comments
 (0)