Skip to content
Permalink
Browse files

add addon boilerplate in packages/ folder

  • Loading branch information...
habdelra committed Mar 3, 2019
1 parent 3edc0f5 commit 19170de682e209d94d06233add171eab73fc3af0
Showing with 12,824 additions and 0 deletions.
  1. +20 −0 packages/tomorrow/.editorconfig
  2. +9 −0 packages/tomorrow/.ember-cli
  3. +20 −0 packages/tomorrow/.eslintignore
  4. +52 −0 packages/tomorrow/.eslintrc.js
  5. +25 −0 packages/tomorrow/.gitignore
  6. +31 −0 packages/tomorrow/.npmignore
  7. +5 −0 packages/tomorrow/.template-lintrc.js
  8. +60 −0 packages/tomorrow/.travis.yml
  9. +3 −0 packages/tomorrow/.watchmanconfig
  10. +26 −0 packages/tomorrow/CONTRIBUTING.md
  11. +9 −0 packages/tomorrow/LICENSE.md
  12. +37 −0 packages/tomorrow/README.md
  13. 0 packages/tomorrow/addon/.gitkeep
  14. 0 packages/tomorrow/app/.gitkeep
  15. +83 −0 packages/tomorrow/config/ember-try.js
  16. +5 −0 packages/tomorrow/config/environment.js
  17. +18 −0 packages/tomorrow/ember-cli-build.js
  18. +5 −0 packages/tomorrow/index.js
  19. +12,160 −0 packages/tomorrow/package-lock.json
  20. +58 −0 packages/tomorrow/package.json
  21. +25 −0 packages/tomorrow/testem.js
  22. +14 −0 packages/tomorrow/tests/dummy/app/app.js
  23. 0 packages/tomorrow/tests/dummy/app/components/.gitkeep
  24. 0 packages/tomorrow/tests/dummy/app/controllers/.gitkeep
  25. 0 packages/tomorrow/tests/dummy/app/helpers/.gitkeep
  26. +25 −0 packages/tomorrow/tests/dummy/app/index.html
  27. 0 packages/tomorrow/tests/dummy/app/models/.gitkeep
  28. +3 −0 packages/tomorrow/tests/dummy/app/resolver.js
  29. +12 −0 packages/tomorrow/tests/dummy/app/router.js
  30. 0 packages/tomorrow/tests/dummy/app/routes/.gitkeep
  31. 0 packages/tomorrow/tests/dummy/app/styles/app.css
  32. +3 −0 packages/tomorrow/tests/dummy/app/templates/application.hbs
  33. 0 packages/tomorrow/tests/dummy/app/templates/components/.gitkeep
  34. +51 −0 packages/tomorrow/tests/dummy/config/environment.js
  35. +3 −0 packages/tomorrow/tests/dummy/config/optional-features.json
  36. +18 −0 packages/tomorrow/tests/dummy/config/targets.js
  37. +3 −0 packages/tomorrow/tests/dummy/public/robots.txt
  38. 0 packages/tomorrow/tests/helpers/.gitkeep
  39. +33 −0 packages/tomorrow/tests/index.html
  40. 0 packages/tomorrow/tests/integration/.gitkeep
  41. +8 −0 packages/tomorrow/tests/test-helper.js
  42. 0 packages/tomorrow/tests/unit/.gitkeep
  43. 0 packages/tomorrow/vendor/.gitkeep
@@ -0,0 +1,20 @@
# EditorConfig helps developers define and maintain consistent
# coding styles between different editors and IDEs
# editorconfig.org

root = true


[*]
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
indent_style = space
indent_size = 2

[*.hbs]
insert_final_newline = false

[*.{diff,md}]
trim_trailing_whitespace = false
@@ -0,0 +1,9 @@
{
/**
Ember CLI sends analytics information by default. The data is completely
anonymous, but there are times when you might want to disable this behavior.

Setting `disableAnalytics` to true will prevent any data from being sent.
*/
"disableAnalytics": false
}
@@ -0,0 +1,20 @@
# unconventional js
/blueprints/*/files/
/vendor/

# compiled output
/dist/
/tmp/

# dependencies
/bower_components/
/node_modules/

# misc
/coverage/
!.*

# ember-try
/.node_modules.ember-try/
/bower.json.ember-try
/package.json.ember-try
@@ -0,0 +1,52 @@
module.exports = {
root: true,
parserOptions: {
ecmaVersion: 2017,
sourceType: 'module'
},
plugins: [
'ember'
],
extends: [
'eslint:recommended',
'plugin:ember/recommended'
],
env: {
browser: true
},
rules: {
},
overrides: [
// node files
{
files: [
'.eslintrc.js',
'.template-lintrc.js',
'ember-cli-build.js',
'index.js',
'testem.js',
'blueprints/*/index.js',
'config/**/*.js',
'tests/dummy/config/**/*.js'
],
excludedFiles: [
'addon/**',
'addon-test-support/**',
'app/**',
'tests/dummy/app/**'
],
parserOptions: {
sourceType: 'script',
ecmaVersion: 2015
},
env: {
browser: false,
node: true
},
plugins: ['node'],
rules: Object.assign({}, require('eslint-plugin-node').configs.recommended.rules, {
// add your custom rules and overrides for node files here
})
}
]
};
@@ -0,0 +1,25 @@
# See https://help.github.com/ignore-files/ for more about ignoring files.

# compiled output
/dist/
/tmp/

# dependencies
/bower_components/
/node_modules/

# misc
/.env*
/.pnp*
/.sass-cache
/connect.lock
/coverage/
/libpeerconnection.log
/npm-debug.log*
/testem.log
/yarn-error.log

# ember-try
/.node_modules.ember-try/
/bower.json.ember-try
/package.json.ember-try
@@ -0,0 +1,31 @@
# compiled output
/dist/
/tmp/

# dependencies
/bower_components/

# misc
/.bowerrc
/.editorconfig
/.ember-cli
/.env*
/.eslintignore
/.eslintrc.js
/.gitignore
/.template-lintrc.js
/.travis.yml
/.watchmanconfig
/bower.json
/config/ember-try.js
/CONTRIBUTING.md
/ember-cli-build.js
/testem.js
/tests/
/yarn.lock
.gitkeep

# ember-try
/.node_modules.ember-try/
/bower.json.ember-try
/package.json.ember-try
@@ -0,0 +1,5 @@
'use strict';

module.exports = {
extends: 'recommended'
};
@@ -0,0 +1,60 @@
---
language: node_js
node_js:
# we recommend testing addons with the same minimum supported node version as Ember CLI
# so that your addon works for all apps
- "6"

sudo: false
dist: trusty

addons:
chrome: stable

cache:
directories:
- $HOME/.npm

env:
global:
# See https://git.io/vdao3 for details.
- JOBS=1

branches:
only:
- master
# npm version tags
- /^v\d+\.\d+\.\d+/

jobs:
fail_fast: true
allow_failures:
- env: EMBER_TRY_SCENARIO=ember-canary

include:
# runs linting and tests with current locked deps

- stage: "Tests"
name: "Tests"
script:
- npm run lint:hbs
- npm run lint:js
- npm test

# we recommend new addons test the current and previous LTS
# as well as latest stable release (bonus points to beta/canary)
- stage: "Additional Tests"
env: EMBER_TRY_SCENARIO=ember-lts-2.18
- env: EMBER_TRY_SCENARIO=ember-lts-3.4
- env: EMBER_TRY_SCENARIO=ember-release
- env: EMBER_TRY_SCENARIO=ember-beta
- env: EMBER_TRY_SCENARIO=ember-canary
- env: EMBER_TRY_SCENARIO=ember-default-with-jquery

before_install:
- npm config set spin false
- npm install -g npm@4
- npm --version

script:
- node_modules/.bin/ember try:one $EMBER_TRY_SCENARIO
@@ -0,0 +1,3 @@
{
"ignore_dirs": ["tmp", "dist"]
}
@@ -0,0 +1,26 @@
# How To Contribute

## Installation

* `git clone <repository-url>`
* `cd tomorrow`
* `npm install`

## Linting

* `npm run lint:hbs`
* `npm run lint:js`
* `npm run lint:js -- --fix`

## Running tests

* `ember test` – Runs the test suite on the current Ember version
* `ember test --server` – Runs the test suite in "watch mode"
* `ember try:each` – Runs the test suite against multiple Ember versions

## Running the dummy application

* `ember serve`
* Visit the dummy application at [http://localhost:4200](http://localhost:4200).

For more information on using ember-cli, visit [https://ember-cli.com/](https://ember-cli.com/).
@@ -0,0 +1,9 @@
The MIT License (MIT)

Copyright (c) 2019

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.
@@ -0,0 +1,37 @@
tomorrow
==============================================================================

[Short description of the addon.]


Compatibility
------------------------------------------------------------------------------

* Ember.js v2.18 or above
* Ember CLI v2.13 or above


Installation
------------------------------------------------------------------------------

```
ember install tomorrow
```


Usage
------------------------------------------------------------------------------

[Longer description of how to use the addon in apps.]


Contributing
------------------------------------------------------------------------------

See the [Contributing](CONTRIBUTING.md) guide for details.


License
------------------------------------------------------------------------------

This project is licensed under the [MIT License](LICENSE.md).
No changes.
No changes.
@@ -0,0 +1,83 @@
'use strict';

const getChannelURL = require('ember-source-channel-url');

module.exports = function() {
return Promise.all([
getChannelURL('release'),
getChannelURL('beta'),
getChannelURL('canary')
]).then((urls) => {
return {
scenarios: [
{
name: 'ember-lts-2.18',
env: {
EMBER_OPTIONAL_FEATURES: JSON.stringify({ 'jquery-integration': true })
},
npm: {
devDependencies: {
'@ember/jquery': '^0.5.1',
'ember-source': '~2.18.0'
}
}
},
{
name: 'ember-lts-3.4',
npm: {
devDependencies: {
'ember-source': '~3.4.0'
}
}
},
{
name: 'ember-release',
npm: {
devDependencies: {
'ember-source': urls[0]
}
}
},
{
name: 'ember-beta',
npm: {
devDependencies: {
'ember-source': urls[1]
}
}
},
{
name: 'ember-canary',
npm: {
devDependencies: {
'ember-source': urls[2]
}
}
},
// The default `.travis.yml` runs this scenario via `npm test`,
// not via `ember try`. It's still included here so that running
// `ember try:each` manually or from a customized CI config will run it
// along with all the other scenarios.
{
name: 'ember-default',
npm: {
devDependencies: {}
}
},
{
name: 'ember-default-with-jquery',
env: {
EMBER_OPTIONAL_FEATURES: JSON.stringify({
'jquery-integration': true
})
},
npm: {
devDependencies: {
'@ember/jquery': '^0.5.1'
}
}
}
]
};
});
};
@@ -0,0 +1,5 @@
'use strict';

module.exports = function(/* environment, appConfig */) {
return { };
};
Oops, something went wrong.

0 comments on commit 19170de

Please sign in to comment.
You can’t perform that action at this time.