Skip to content

Commit 6dad83e

Browse files
committed
flesh out as ember-cli add-on, this will allow us to use the existing add-on test harness infrastructure.
1 parent 1b0d7e4 commit 6dad83e

Some content is hidden

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

43 files changed

+559
-36
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+
}

.gitignore

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# See http://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

.jshintrc

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"predef": [
3+
"document",
4+
"window",
5+
"-Promise",
6+
"require",
7+
"requirejs"
8+
],
9+
"browser": true,
10+
"boss": true,
11+
"curly": true,
12+
"debug": false,
13+
"devel": true,
14+
"eqeqeq": true,
15+
"evil": true,
16+
"forin": false,
17+
"immed": false,
18+
"laxbreak": false,
19+
"newcap": true,
20+
"noarg": true,
21+
"noempty": false,
22+
"nonew": false,
23+
"nomen": false,
24+
"onevar": false,
25+
"plusplus": false,
26+
"regexp": false,
27+
"undef": true,
28+
"sub": true,
29+
"strict": false,
30+
"white": false,
31+
"eqnull": true,
32+
"esversion": 6,
33+
"unused": true
34+
}

.travis.yml

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
language: node_js
3+
node_js:
4+
- "4"
5+
6+
sudo: false
7+
8+
cache:
9+
directories:
10+
- node_modules
11+
12+
before_install:
13+
- npm config set spin false
14+
- npm install -g bower
15+
- bower --version
16+
- npm install phantomjs-prebuilt
17+
- phantomjs --version
18+
19+
install:
20+
- npm install
21+
- bower install
22+
23+
script:
24+
- npm test

.watchmanconfig

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

LICENSE.md

+4-16
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,9 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2014 ember-cli Contributors
3+
Copyright (c) 2016
44

5-
Permission is hereby granted, free of charge, to any person obtaining a copy
6-
of this software and associated documentation files (the "Software"), to deal
7-
in the Software without restriction, including without limitation the rights
8-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9-
copies of the Software, and to permit persons to whom the Software is
10-
furnished to do so, subject to the following conditions:
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:
116

12-
The above copyright notice and this permission notice shall be included in all
13-
copies or substantial portions of the Software.
7+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
148

15-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21-
SOFTWARE.
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

+20-11
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,26 @@
1-
Ember load initializers
2-
===========
1+
# Ember-load-initializers
32

4-
About
5-
-----
3+
This README outlines the details of collaborating on this Ember addon.
64

7-
Ember loadInitializers is a tiny package to autoload your initializer files in EAK and ember-cli.
5+
## Installation
86

9-
Ember-cli <2.3.0-beta.2
10-
-----------------------
7+
* `git clone` this repository
8+
* `npm install`
9+
* `bower install`
1110

12-
For those using ember-cli <2.3.0-beta.2, please use [email protected] instead of the current version.
11+
## Running
1312

14-
License
15-
-------
13+
* `ember serve`
14+
* Visit your app at http://localhost:4200.
1615

17-
Ember loadInitializers is [MIT Licensed](https://github.com/ember-cli/ember-load-initializers/blob/master/LICENSE.md).
16+
## Running Tests
17+
18+
* `npm test` (Runs `ember try:testall` to test your addon against multiple Ember versions)
19+
* `ember test`
20+
* `ember test --server`
21+
22+
## Building
23+
24+
* `ember build`
25+
26+
For more information on using ember-cli, visit [http://ember-cli.com/](http://ember-cli.com/).

addon/.gitkeep

Whitespace-only changes.

bower.json

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"name": "ember-load-initializers",
3+
"dependencies": {
4+
"ember": "~2.7.0-beta.4",
5+
"ember-cli-shims": "0.1.1",
6+
"ember-qunit-notifications": "0.1.0"
7+
}
8+
}

config/ember-try.js

+55
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
/*jshint node:true*/
2+
module.exports = {
3+
scenarios: [
4+
{
5+
name: 'default',
6+
bower: {
7+
dependencies: { }
8+
}
9+
},
10+
{
11+
name: 'ember-1.13',
12+
bower: {
13+
dependencies: {
14+
'ember': '~1.13.0'
15+
},
16+
resolutions: {
17+
'ember': '~1.13.0'
18+
}
19+
}
20+
},
21+
{
22+
name: 'ember-release',
23+
bower: {
24+
dependencies: {
25+
'ember': 'components/ember#release'
26+
},
27+
resolutions: {
28+
'ember': 'release'
29+
}
30+
}
31+
},
32+
{
33+
name: 'ember-beta',
34+
bower: {
35+
dependencies: {
36+
'ember': 'components/ember#beta'
37+
},
38+
resolutions: {
39+
'ember': 'beta'
40+
}
41+
}
42+
},
43+
{
44+
name: 'ember-canary',
45+
bower: {
46+
dependencies: {
47+
'ember': 'components/ember#canary'
48+
},
49+
resolutions: {
50+
'ember': 'canary'
51+
}
52+
}
53+
}
54+
]
55+
};

config/environment.js

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

ember-cli-build.js

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

index.js

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

44
module.exports = {
5-
name: 'ember-load-initializers',
6-
7-
included: function() {
8-
this._super.included.apply(this, arguments);
9-
10-
this.app.import('vendor/ember-load-initializers/legacy-shims.js');
11-
}
5+
name: 'ember-load-initializers'
126
};

package.json

+35-2
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,48 @@
33
"version": "0.5.1",
44
"description": "Ember loadInitializers is a tiny package to autoload your initializer files in EAK and ember-cli.",
55
"main": "index.js",
6+
"directories": {
7+
"doc": "doc",
8+
"test": "tests"
9+
},
610
"scripts": {
7-
"test": "echo \"Error: no test specified\" && exit 1"
11+
"build": "ember build",
12+
"start": "ember server",
13+
"test": "ember try:each"
814
},
9-
"repository": {
15+
"repo": {
1016
"type": "git",
1117
"url": "git+https://github.com/ember-cli/ember-load-initializers.git"
1218
},
1319
"author": "Stefan Penner <[email protected]>, Mattia Gheda <[email protected]>, Manuel Wiedenmann <[email protected]>, Alex Navasardyan <[email protected]>",
1420
"license": "MIT",
21+
"devDependencies": {
22+
"broccoli-asset-rev": "^2.4.2",
23+
"ember-ajax": "^2.0.1",
24+
"ember-cli": "2.7.0-beta.6",
25+
"ember-cli-app-version": "^1.0.0",
26+
"ember-cli-dependency-checker": "^1.2.0",
27+
"ember-cli-htmlbars": "^1.0.3",
28+
"ember-cli-htmlbars-inline-precompile": "^0.3.1",
29+
"ember-cli-inject-live-reload": "^1.4.0",
30+
"ember-cli-jshint": "^1.0.0",
31+
"ember-cli-qunit": "^2.0.0",
32+
"ember-cli-release": "^0.2.9",
33+
"ember-cli-sri": "^2.1.0",
34+
"ember-cli-test-loader": "^1.1.0",
35+
"ember-cli-uglify": "^1.2.0",
36+
"ember-data": "^2.7.0-beta.3",
37+
"ember-disable-prototype-extensions": "^1.1.0",
38+
"ember-export-application-global": "^1.0.5",
39+
"ember-load-initializers": "^0.5.1",
40+
"ember-resolver": "^2.0.3",
41+
"ember-welcome-page": "^1.0.1",
42+
"ember-cli-babel": "^5.1.6",
43+
"loader.js": "^4.0.1"
44+
},
45+
"ember-addon": {
46+
"configPath": "tests/dummy/config"
47+
},
1548
"keywords": [
1649
"ember-addon"
1750
],

public/crossdomain.xml

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?xml version="1.0"?>
2+
<!DOCTYPE cross-domain-policy SYSTEM "http://www.adobe.com/xml/dtds/cross-domain-policy.dtd">
3+
<cross-domain-policy>
4+
<!-- Read this: www.adobe.com/devnet/articles/crossdomain_policy_file_spec.html -->
5+
6+
<!-- Most restrictive policy: -->
7+
<site-control permitted-cross-domain-policies="none"/>
8+
9+
<!-- Least restrictive policy: -->
10+
<!--
11+
<site-control permitted-cross-domain-policies="all"/>
12+
<allow-access-from domain="*" to-ports="*" secure="false"/>
13+
<allow-http-request-headers-from domain="*" headers="*" secure="false"/>
14+
-->
15+
</cross-domain-policy>

public/robots.txt

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# http://www.robotstxt.org
2+
User-agent: *
3+
Disallow:

testem.js

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

0 commit comments

Comments
 (0)