-
Notifications
You must be signed in to change notification settings - Fork 2
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
19 changed files
with
3,484 additions
and
2,230 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 |
---|---|---|
|
@@ -5,6 +5,7 @@ | |
/dist | ||
/tests | ||
/tmp | ||
/bin | ||
**/.gitkeep | ||
.bowerrc | ||
.editorconfig | ||
|
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
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,15 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
SCRIPTPATH=`dirname $0` | ||
. "$SCRIPTPATH/config.sh" | ||
|
||
if test '!' -e "$virtualenvdir/bin/activate" | ||
then | ||
echo "Could not find virtualenv!" >&2 | ||
echo "Run prepare-virtualenv.sh first." >&2 | ||
exit 1 | ||
fi | ||
|
||
. "$virtualenvdir/bin/activate" | ||
npm set progress=false |
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,18 @@ | ||
#!/bin/sh | ||
|
||
if [ -z "$config" ] | ||
then | ||
|
||
set -e | ||
|
||
# config values | ||
basedir="$(git rev-parse --show-toplevel)" | ||
nodeversion=10.15.3 | ||
embercliversion=3.10.1 | ||
virtualenvdir="$basedir/virtualenv" | ||
|
||
|
||
|
||
|
||
fi | ||
|
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,19 @@ | ||
#!/bin/bash | ||
|
||
basedir="$(git rev-parse --show-toplevel)" | ||
echo :::: Activating virtual env | ||
cd $basedir | ||
source ./virtualenv/bin/activate | ||
|
||
echo :::::::::::::::::::: app :::::::::::::::::::::::: | ||
|
||
echo :::: app - Cleaning environment | ||
cd $basedir | ||
rm -rf ./node_modules | ||
rm -rf ./bower_components | ||
|
||
echo :::: app - Installing the project | ||
cd $basedir | ||
bower install --config.interactive=false | ||
yarn install | ||
|
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,13 @@ | ||
#!/bin/sh | ||
|
||
set -e | ||
SCRIPTPATH=`dirname $0` | ||
. "$SCRIPTPATH/config.sh" | ||
|
||
echo -- | ||
echo -- INSTALL OS DEPENDENCIES | ||
echo -- | ||
|
||
sudo apt-get install python3 | ||
sudo apt-get install python3-venv | ||
sudo apt-get install chromium-browser |
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 @@ | ||
#!/bin/sh | ||
|
||
set -e | ||
|
||
SCRIPTPATH=`dirname $0` | ||
. "$SCRIPTPATH/config.sh" | ||
|
||
echo -- | ||
echo -- INSTALL VIRTUAL ENV | ||
echo -- | ||
|
||
install_virtualenv() | ||
{ | ||
echo "installing new virtualenv for node $nodeversion" | ||
python3 -m venv "$virtualenvdir" | ||
|
||
. "$virtualenvdir/bin/activate" | ||
|
||
python3 -m pip install nodeenv | ||
python3 -m nodeenv -p --prebuilt --node=$nodeversion | ||
} | ||
|
||
if [ -d "$virtualenvdir" ]; then | ||
echo "using existing virtualenv" | ||
. "$virtualenvdir/bin/activate" | ||
if [ $(node --version) != "v$nodeversion" ]; then | ||
install_virtualenv | ||
else | ||
echo "using existing node v$nodeversion installation" | ||
fi | ||
else | ||
install_virtualenv | ||
fi | ||
|
||
. "$basedir/bin/activate-virtualenv.sh" | ||
|
||
|
||
echo -- | ||
echo -- SETTING NPM / YARN CONFIGURATION | ||
echo -- | ||
npm config set tag-version-prefix '' | ||
|
||
echo -- | ||
echo -- INSTALL BASE TOOLING INTO VIRTUAL ENV | ||
echo -- | ||
|
||
npm install -g yarn | ||
npm install -g bower | ||
npm install -g ember-cli@$embercliversion | ||
npm install -g node-gyp | ||
|
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,51 +1,49 @@ | ||
{ | ||
"name": "ember-error-handler", | ||
"version": "0.3.0", | ||
"description": "Addon handles uncatched errors. Handled error can be displayed on customizable error page or passed through custom logic. By default addon includes consumers for local and remote logging of errors.", | ||
"directories": { | ||
"doc": "doc", | ||
"test": "tests" | ||
}, | ||
"scripts": { | ||
"build": "ember build", | ||
"start": "ember server", | ||
"test": "ember try:each" | ||
}, | ||
"repository": "https://github.com/janmisek/ember-error-handler", | ||
"engines": { | ||
"node": ">= 0.12.0" | ||
}, | ||
"author": "", | ||
"license": "MIT", | ||
"devDependencies": { | ||
"ember-cli": "~3.0.0", | ||
"ember-cli-dependency-checker": "~2.1.0", | ||
"ember-cli-eslint": "~4.2.3", | ||
"ember-cli-htmlbars-inline-precompile": "~1.0.2", | ||
"ember-cli-inject-live-reload": "~1.7.0", | ||
"ember-cli-qunit": "~4.3.2", | ||
"ember-cli-shims": "~1.2.0", | ||
"ember-cli-test-loader": "~2.2.0", | ||
"ember-export-application-global": "~2.0.0", | ||
"ember-load-initializers": "~1.0.0", | ||
"ember-resolver": "~4.5.0", | ||
"ember-source": "~3.0.0", | ||
"loader.js": "~4.6.0" | ||
}, | ||
"keywords": [ | ||
"ember-addon", | ||
"error", | ||
"errors", | ||
"uncatched", | ||
"log", | ||
"exception" | ||
], | ||
"dependencies": { | ||
"ember-cli-babel": "~6.12.0", | ||
"ember-cli-htmlbars": "~2.0.3", | ||
"ember-exex": "^0.1.11" | ||
}, | ||
"ember-addon": { | ||
"configPath": "tests/dummy/config" | ||
} | ||
"name": "ember-error-handler", | ||
"version": "0.3.0", | ||
"description": "Addon handles uncatched errors. Handled error can be displayed on customizable error page or passed through custom logic. By default addon includes consumers for local and remote logging of errors.", | ||
"directories": { | ||
"doc": "doc", | ||
"test": "tests" | ||
}, | ||
"scripts": { | ||
"build": "ember build", | ||
"start": "ember server", | ||
"test": "ember try:each" | ||
}, | ||
"repository": "https://github.com/janmisek/ember-error-handler", | ||
"engines": { | ||
"node": "8.* || >= 10.*" | ||
}, | ||
"author": "", | ||
"license": "MIT", | ||
"devDependencies": { | ||
"ember-cli": "~3.10.1", | ||
"ember-cli-dependency-checker": "^3.1.0", | ||
"ember-cli-eslint": "^5.1.0", | ||
"ember-cli-htmlbars-inline-precompile": "^2.1.0", | ||
"ember-cli-inject-live-reload": "^1.8.2", | ||
"ember-cli-qunit": "^4.3.2", | ||
"ember-export-application-global": "~2.0.0", | ||
"ember-load-initializers": "^2.0.0", | ||
"ember-resolver": "^5.0.1", | ||
"ember-source": "~3.10.0", | ||
"loader.js": "^4.7.0" | ||
}, | ||
"keywords": [ | ||
"ember-addon", | ||
"error", | ||
"errors", | ||
"uncatched", | ||
"log", | ||
"exception" | ||
], | ||
"dependencies": { | ||
"ember-cli-babel": "^7.7.3", | ||
"ember-cli-htmlbars": "~2.0.3", | ||
"ember-exex": "^0.2.0" | ||
}, | ||
"ember-addon": { | ||
"configPath": "tests/dummy/config" | ||
} | ||
} |
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,28 @@ | ||
/* global QUnit */ | ||
|
||
export default function enableQUnitConsoleErrors() { | ||
|
||
// enable enhanced errors to be printed to console | ||
if ((typeof QUnit) !== "undefined" && typeof(console) !== "undefined") { | ||
QUnit.log(function (details) { | ||
if (!details.result) { | ||
|
||
if (details.message && details.message.indexOf("\n at") > -1) { | ||
console.error(details.message); //eslint-disable-line no-console | ||
} | ||
|
||
if (details.message instanceof Error) { | ||
console.error(`Error in test: '${details.module}/${details.name}' `, details.message.message, details.message.stack); //eslint-disable-line no-console | ||
} | ||
|
||
else if (details.source) { | ||
console.error(`Error in test: '${details.module}/${details.name}' `, details.source); //eslint-disable-line no-console | ||
} | ||
} | ||
}); | ||
} | ||
|
||
// Unlimited stacktrace | ||
Error.stackTraceLimit = Infinity; | ||
} | ||
|
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
Oops, something went wrong.