-
-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
76 changed files
with
1,155 additions
and
900 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"endOfLine":"auto", | ||
"endOfLine": "auto", | ||
"singleQuote": true, | ||
"overrides": [ | ||
{ | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# unconventional js | ||
/blueprints/*/files/ | ||
|
||
# compiled output | ||
/dist/ | ||
|
||
# misc | ||
/coverage/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
'use strict'; | ||
|
||
module.exports = { | ||
root: true, | ||
parser: 'babel-eslint', | ||
parserOptions: { | ||
ecmaVersion: 2018, | ||
sourceType: 'module', | ||
ecmaFeatures: { | ||
legacyDecorators: true, | ||
}, | ||
}, | ||
plugins: ['ember'], | ||
extends: [ | ||
'eslint:recommended', | ||
'plugin:ember/recommended', | ||
'plugin:prettier/recommended', | ||
], | ||
env: { | ||
browser: true, | ||
}, | ||
rules: {}, | ||
overrides: [ | ||
// node files | ||
{ | ||
files: [ | ||
'./.eslintrc.js', | ||
'./.prettierrc.js', | ||
'./.template-lintrc.js', | ||
'./addon-main.js', | ||
], | ||
parserOptions: { | ||
sourceType: 'script', | ||
}, | ||
env: { | ||
browser: false, | ||
node: true, | ||
}, | ||
extends: ['plugin:n/recommended'], | ||
}, | ||
], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# See https://help.github.com/ignore-files/ for more about ignoring files. | ||
|
||
# compiled output | ||
dist/ | ||
|
||
# dependencies | ||
node_modules/ | ||
|
||
# misc | ||
/.env* | ||
/.pnp* | ||
/.pnpm-debug.log | ||
/.sass-cache | ||
.eslintcache | ||
/connect.lock | ||
/coverage/ | ||
/libpeerconnection.log | ||
/npm-debug.log* | ||
/testem.log | ||
/yarn-error.log | ||
|
||
# ember-try | ||
/.node_modules.ember-try/ | ||
/package.json.ember-try | ||
/yarn.lock.ember-try |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
'use strict'; | ||
|
||
const { addonV1Shim } = require('@embroider/addon-shim'); | ||
module.exports = addonV1Shim(__dirname); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"plugins": [ | ||
["@babel/plugin-proposal-decorators", { "legacy": true }], | ||
"@babel/plugin-proposal-class-properties", | ||
"@embroider/addon-dev/template-colocation-plugin" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
{ | ||
"name": "ember-launch-darkly", | ||
"version": "3.0.0", | ||
"description": "A modern Ember addon to wrap the Launch Darkly service", | ||
"keywords": [ | ||
"ember-addon" | ||
], | ||
"repository": "https://github.com/adopted-ember-addons/ember-launch-darkly", | ||
"license": "MIT", | ||
"author": "The Ember Launch Darkly Team", | ||
"directories": { | ||
"doc": "doc", | ||
"test": "tests" | ||
}, | ||
"files": [ | ||
"addon-main.js", | ||
"dist" | ||
], | ||
"scripts": { | ||
"build": "rollup --config", | ||
"lint": "concurrently 'npm:lint:*(!fix)' --names 'lint:'", | ||
"lint:fix": "concurrently 'npm:lint:*:fix' --names 'fix:'", | ||
"lint:hbs": "ember-template-lint . --no-error-on-unmatched-pattern", | ||
"lint:js": "eslint . --cache", | ||
"lint:hbs:fix": "ember-template-lint . --fix --no-error-on-unmatched-pattern", | ||
"lint:js:fix": "eslint . --fix", | ||
"start": "rollup --config --watch", | ||
"test": "echo 'A v2 addon does not have tests, run tests in test-app'", | ||
"prepack": "rollup --config" | ||
}, | ||
"dependencies": { | ||
"@embroider/addon-shim": "^1.0.0", | ||
"launchdarkly-js-client-sdk": "^3.1.1", | ||
"tracked-maps-and-sets": "^3.0.2" | ||
}, | ||
"devDependencies": { | ||
"@babel/core": "^7.21.3", | ||
"@babel/plugin-proposal-class-properties": "^7.18.6", | ||
"@babel/plugin-proposal-decorators": "^7.21.0", | ||
"@embroider/addon-dev": "^3.0.0", | ||
"@rollup/plugin-babel": "^6.0.3", | ||
"babel-eslint": "^10.1.0", | ||
"concurrently": "^7.6.0", | ||
"ember-source": "4.11.0", | ||
"eslint": "^7.32.0", | ||
"eslint-config-prettier": "^8.6.0", | ||
"eslint-plugin-ember": "^11.4.7", | ||
"eslint-plugin-n": "^15.6.1", | ||
"eslint-plugin-prettier": "^4.2.1", | ||
"eslint-plugin-qunit": "^7.3.4", | ||
"prettier": "^2.8.4", | ||
"rollup": "^3.19.1", | ||
"rollup-plugin-copy": "3.4.0" | ||
}, | ||
"ember": { | ||
"edition": "octane" | ||
}, | ||
"ember-addon": { | ||
"version": 2, | ||
"type": "addon", | ||
"main": "addon-main.js", | ||
"app-js": { | ||
"./helpers/variation.js": "./dist/_app_/helpers/variation.js" | ||
} | ||
}, | ||
"exports": { | ||
".": "./dist/index.js", | ||
"./*": { | ||
"default": "./dist/*.js" | ||
}, | ||
"./test-support": "./dist/test-support/index.js", | ||
"./-sdk": "./dist/-sdk/index.js", | ||
"./-sdk/context": "./dist/-sdk/context.js", | ||
"./-sdk/identify": "./dist/-sdk/identify.js", | ||
"./-sdk/initialize": "./dist/-sdk/initialize.js", | ||
"./-sdk/variation": "./dist/-sdk/variation.js", | ||
"./addon-main.js": "./addon-main.js" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
import babel from '@rollup/plugin-babel'; | ||
import copy from 'rollup-plugin-copy'; | ||
import { Addon } from '@embroider/addon-dev/rollup'; | ||
|
||
const addon = new Addon({ | ||
srcDir: 'src', | ||
destDir: 'dist', | ||
}); | ||
|
||
export default { | ||
// This provides defaults that work well alongside `publicEntrypoints` below. | ||
// You can augment this if you need to. | ||
output: addon.output(), | ||
|
||
plugins: [ | ||
// These are the modules that users should be able to import from your | ||
// addon. Anything not listed here may get optimized away. | ||
addon.publicEntrypoints(['**/*.js']), | ||
|
||
// These are the modules that should get reexported into the traditional | ||
// "app" tree. Things in here should also be in publicEntrypoints above, but | ||
// not everything in publicEntrypoints necessarily needs to go here. | ||
addon.appReexports(['helpers/**/*.js']), | ||
|
||
// This babel config should *not* apply presets or compile away ES modules. | ||
// It exists only to provide development niceties for you, like automatic | ||
// template colocation. | ||
// | ||
// By default, this will load the actual babel config from the file | ||
// babel.config.json. | ||
babel({ | ||
babelHelpers: 'bundled', | ||
}), | ||
|
||
// Follow the V2 Addon rules about dependencies. Your code can import from | ||
// `dependencies` and `peerDependencies` as well as standard Ember-provided | ||
// package names. | ||
addon.dependencies(), | ||
|
||
// Remove leftover build artifacts when starting a new build. | ||
addon.clean(), | ||
|
||
// Copy Readme and License into published package | ||
copy({ | ||
targets: [ | ||
{ src: '../README.md', dest: '.' }, | ||
{ src: '../LICENSE.md', dest: '.' }, | ||
], | ||
}), | ||
], | ||
}; |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,6 @@ | |
|
||
# misc | ||
/coverage/ | ||
/nodetests/**/ | ||
!.* | ||
.*/ | ||
.eslintcache | ||
|
Oops, something went wrong.