Skip to content

Commit

Permalink
init / 0.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
alexblom committed May 29, 2016
0 parents commit aa06939
Show file tree
Hide file tree
Showing 7 changed files with 116 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# See http://help.github.com/ignore-files/ for more about ignoring files.

# compiled output
/dist
!/dist/.keep
/tmp

# dependencies
/node_modules
/bower_components/*

# misc
/.sass-cache
/connect.lock
/coverage/*
/libpeerconnection.log
npm-debug.log
testem.log
.idea


# compiled output
/dist
/tmp
9 changes: 9 additions & 0 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
The MIT License (MIT)

Copyright (c) 2016 Alex Blom

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Ember-cli-testdouble

Shim for testdouble / ember-cli"

## Usage

```
ember install ember-cli-testdouble
```

Then import as follows:

```
import td from 'testdouble';
```
13 changes: 13 additions & 0 deletions blueprints/ember-cli-testdouble/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
'use strict';

module.exports = {
normalizeEntityName: function() {
// this prevents an error when the entityName is
// not specified (since that doesn't actually matter
// to us
},

afterInstall: function() {
return this.addBowerPackageToProject('testdouble', 'testdouble/testdouble.js#^1.4.2');
}
};
22 changes: 22 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
/* jshint node: true */
'use strict';
var path = require('path');

module.exports = {
name: 'ember-cli-testdouble',

included: function included(app) {
if (app.app) {
app = app.app;
}
this.app = app;

app.import('bower_components/testdouble/dist/testdouble.js');
app.import('vendor/shims/testdouble.js', {
type: 'vendor',
exports: {
'testdouble': ['default']
}
});
}
};
24 changes: 24 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"name": "ember-cli-testdouble",
"version": "0.1.0",
"description": "Shim for testdouble / ember-cli",
"author": {
"name": "Alex Blom",
"email": "[email protected]",
"url": "https://isleofcode.com"
},
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/isleofcode/ember-cli-testdouble"
},
"bugs": {
"url": "https://github.com/isleofcode/ember-cli-testdouble/issues"
},
"dependences": {},
"devDependencies": {},
"keywords": [
"ember-addon",
"testdouble"
]
}
9 changes: 9 additions & 0 deletions vendor/shims/testdouble.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/* globals td */

define('testdouble', [], function() {
"use strict";

return {
'default': td
};
});

0 comments on commit aa06939

Please sign in to comment.