Skip to content

Commit 7dc6bdc

Browse files
committed
Initial commit
0 parents  commit 7dc6bdc

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+581
-0
lines changed

.bowerrc

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"directory": "bower_components",
3+
"analytics": false
4+
}

.editorconfig

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# EditorConfig helps developers define and maintain consistent
2+
# coding styles between different editors and IDEs
3+
# editorconfig.org
4+
5+
root = true
6+
7+
8+
[*]
9+
end_of_line = lf
10+
charset = utf-8
11+
trim_trailing_whitespace = true
12+
insert_final_newline = true
13+
indent_style = space
14+
indent_size = 2
15+
16+
[*.hbs]
17+
insert_final_newline = false
18+
19+
[*.{diff,md}]
20+
trim_trailing_whitespace = false

.ember-cli

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
/**
3+
Ember CLI sends analytics information by default. The data is completely
4+
anonymous, but there are times when you might want to disable this behavior.
5+
6+
Setting `disableAnalytics` to true will prevent any data from being sent.
7+
*/
8+
"disableAnalytics": false
9+
}

.eslintrc.js

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
module.exports = {
2+
root: true,
3+
parserOptions: {
4+
ecmaVersion: 6,
5+
sourceType: 'module'
6+
},
7+
extends: 'eslint:recommended',
8+
env: {
9+
browser: true
10+
},
11+
rules: {
12+
}
13+
};

.gitignore

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# See https://help.github.com/ignore-files/ for more about ignoring files.
2+
3+
# compiled output
4+
/dist
5+
/tmp
6+
7+
# dependencies
8+
/node_modules
9+
/bower_components
10+
11+
# misc
12+
/.sass-cache
13+
/connect.lock
14+
/coverage/*
15+
/libpeerconnection.log
16+
npm-debug.log*
17+
testem.log
18+
/.idea

.npmignore

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
/bower_components
2+
/config/ember-try.js
3+
/dist
4+
/tests
5+
/tmp
6+
**/.gitkeep
7+
.bowerrc
8+
.editorconfig
9+
.ember-cli
10+
.gitignore
11+
.eslintrc.js
12+
.watchmanconfig
13+
.travis.yml
14+
bower.json
15+
ember-cli-build.js
16+
testem.js

.travis.yml

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
---
2+
language: node_js
3+
node_js:
4+
- "6"
5+
6+
sudo: false
7+
8+
cache:
9+
directories:
10+
- $HOME/.npm
11+
12+
env:
13+
# we recommend testing LTS's and latest stable release (bonus points to beta/canary)
14+
- EMBER_TRY_SCENARIO=ember-lts-2.4
15+
- EMBER_TRY_SCENARIO=ember-lts-2.8
16+
- EMBER_TRY_SCENARIO=ember-release
17+
- EMBER_TRY_SCENARIO=ember-beta
18+
- EMBER_TRY_SCENARIO=ember-canary
19+
- EMBER_TRY_SCENARIO=ember-default
20+
21+
matrix:
22+
fast_finish: true
23+
allow_failures:
24+
- env: EMBER_TRY_SCENARIO=ember-canary
25+
26+
before_install:
27+
- npm config set spin false
28+
- npm install -g phantomjs-prebuilt
29+
- phantomjs --version
30+
31+
install:
32+
- npm install
33+
34+
35+
script:
36+
# Usually, it's ok to finish the test scenario without reverting
37+
# to the addon's original dependency state, skipping "cleanup".
38+
- node_modules/.bin/ember try:one $EMBER_TRY_SCENARIO test --skip-cleanup

.watchmanconfig

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"ignore_dirs": ["tmp", "dist"]
3+
}

LICENSE.md

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2017
4+
5+
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:
6+
7+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8+
9+
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.

README.md

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# ember-cognito
2+
3+
This README outlines the details of collaborating on this Ember addon.
4+
5+
## Installation
6+
7+
* `git clone <repository-url>` this repository
8+
* `cd ember-cognito`
9+
* `npm install`
10+
* `bower install`
11+
12+
## Running
13+
14+
* `ember serve`
15+
* Visit your app at [http://localhost:4200](http://localhost:4200).
16+
17+
## Running Tests
18+
19+
* `npm test` (Runs `ember try:each` to test your addon against multiple Ember versions)
20+
* `ember test`
21+
* `ember test --server`
22+
23+
## Building
24+
25+
* `ember build`
26+
27+
For more information on using ember-cli, visit [https://ember-cli.com/](https://ember-cli.com/).

addon/.gitkeep

Whitespace-only changes.

app/.gitkeep

Whitespace-only changes.

config/ember-try.js

+91
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
/* eslint-env node */
2+
module.exports = {
3+
scenarios: [
4+
{
5+
name: 'ember-lts-2.4',
6+
bower: {
7+
dependencies: {
8+
'ember': 'components/ember#lts-2-4'
9+
},
10+
resolutions: {
11+
'ember': 'lts-2-4'
12+
}
13+
},
14+
npm: {
15+
devDependencies: {
16+
'ember-source': null
17+
}
18+
}
19+
},
20+
{
21+
name: 'ember-lts-2.8',
22+
bower: {
23+
dependencies: {
24+
'ember': 'components/ember#lts-2-8'
25+
},
26+
resolutions: {
27+
'ember': 'lts-2-8'
28+
}
29+
},
30+
npm: {
31+
devDependencies: {
32+
'ember-source': null
33+
}
34+
}
35+
},
36+
{
37+
name: 'ember-release',
38+
bower: {
39+
dependencies: {
40+
'ember': 'components/ember#release'
41+
},
42+
resolutions: {
43+
'ember': 'release'
44+
}
45+
},
46+
npm: {
47+
devDependencies: {
48+
'ember-source': null
49+
}
50+
}
51+
},
52+
{
53+
name: 'ember-beta',
54+
bower: {
55+
dependencies: {
56+
'ember': 'components/ember#beta'
57+
},
58+
resolutions: {
59+
'ember': 'beta'
60+
}
61+
},
62+
npm: {
63+
devDependencies: {
64+
'ember-source': null
65+
}
66+
}
67+
},
68+
{
69+
name: 'ember-canary',
70+
bower: {
71+
dependencies: {
72+
'ember': 'components/ember#canary'
73+
},
74+
resolutions: {
75+
'ember': 'canary'
76+
}
77+
},
78+
npm: {
79+
devDependencies: {
80+
'ember-source': null
81+
}
82+
}
83+
},
84+
{
85+
name: 'ember-default',
86+
npm: {
87+
devDependencies: {}
88+
}
89+
}
90+
]
91+
};

config/environment.js

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
/* eslint-env node */
2+
'use strict';
3+
4+
module.exports = function(/* environment, appConfig */) {
5+
return { };
6+
};

ember-cli-build.js

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
/* eslint-env node */
2+
const EmberAddon = require('ember-cli/lib/broccoli/ember-addon');
3+
4+
module.exports = function(defaults) {
5+
var app = new EmberAddon(defaults, {
6+
// Add options here
7+
});
8+
9+
/*
10+
This build file specifies the options for the dummy test app of this
11+
addon, located in `/tests/dummy`
12+
This build file does *not* influence how the addon or the app using it
13+
behave. You most likely want to be modifying `./index.js` or app's build file
14+
*/
15+
16+
return app.toTree();
17+
};

index.js

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
/* eslint-env node */
2+
'use strict';
3+
4+
module.exports = {
5+
name: 'ember-cognito'
6+
};

package.json

+50
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
{
2+
"name": "ember-cognito",
3+
"version": "0.0.0",
4+
"description": "The default blueprint for ember-cli addons.",
5+
"keywords": [
6+
"ember-addon"
7+
],
8+
"license": "MIT",
9+
"author": "",
10+
"directories": {
11+
"doc": "doc",
12+
"test": "tests"
13+
},
14+
"repository": "",
15+
"scripts": {
16+
"build": "ember build",
17+
"start": "ember server",
18+
"test": "ember try:each"
19+
},
20+
"dependencies": {
21+
"ember-cli-babel": "^6.0.0-beta.3"
22+
},
23+
"devDependencies": {
24+
"broccoli-asset-rev": "^2.4.5",
25+
"ember-ajax": "^2.4.1",
26+
"ember-cli": "2.13.0-beta.3",
27+
"ember-cli-dependency-checker": "^1.3.0",
28+
"ember-cli-eslint": "^3.0.0",
29+
"ember-cli-htmlbars": "^1.1.1",
30+
"ember-cli-htmlbars-inline-precompile": "^0.4.0-beta.2",
31+
"ember-cli-inject-live-reload": "^1.4.1",
32+
"ember-cli-qunit": "^4.0.0-beta.1",
33+
"ember-cli-shims": "^1.1.0",
34+
"ember-cli-sri": "^2.1.0",
35+
"ember-cli-uglify": "^1.2.0",
36+
"ember-disable-prototype-extensions": "^1.1.0",
37+
"ember-export-application-global": "^2.0.0",
38+
"ember-load-initializers": "^1.0.0",
39+
"ember-resolver": "^4.0.0",
40+
"ember-source": "~2.13.0-beta.1",
41+
"ember-welcome-page": "^3.0.0",
42+
"loader.js": "^4.2.3"
43+
},
44+
"engines": {
45+
"node": ">= 4"
46+
},
47+
"ember-addon": {
48+
"configPath": "tests/dummy/config"
49+
}
50+
}

testem.js

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
/* eslint-env node */
2+
module.exports = {
3+
"test_page": "tests/index.html?hidepassed",
4+
"disable_watching": true,
5+
"launch_in_ci": [
6+
"PhantomJS"
7+
],
8+
"launch_in_dev": [
9+
"PhantomJS",
10+
"Chrome"
11+
]
12+
};

tests/.eslintrc.js

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
module.exports = {
2+
env: {
3+
embertest: true
4+
}
5+
};

tests/dummy/app/app.js

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import Ember from 'ember';
2+
import Resolver from './resolver';
3+
import loadInitializers from 'ember-load-initializers';
4+
import config from './config/environment';
5+
6+
let App;
7+
8+
Ember.MODEL_FACTORY_INJECTIONS = true;
9+
10+
App = Ember.Application.extend({
11+
modulePrefix: config.modulePrefix,
12+
podModulePrefix: config.podModulePrefix,
13+
Resolver
14+
});
15+
16+
loadInitializers(App, config.modulePrefix);
17+
18+
export default App;

tests/dummy/app/components/.gitkeep

Whitespace-only changes.

tests/dummy/app/controllers/.gitkeep

Whitespace-only changes.

tests/dummy/app/helpers/.gitkeep

Whitespace-only changes.

0 commit comments

Comments
 (0)