Skip to content

Commit

Permalink
Fix node-bin
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderC committed Sep 15, 2016
1 parent 8c5e303 commit fb71af5
Show file tree
Hide file tree
Showing 47 changed files with 1,248 additions and 62 deletions.
46 changes: 46 additions & 0 deletions changelog/1473932668051.md
@@ -0,0 +1,46 @@
## Changes since 3/29/2016, 3:00:00 AM

* @mgoria: #333: Allow users to be loaded inside lambda runtime (local server) (#341)
* @CCristi: Osx browser build (#339)
* @CCristi: Fix deep-search elasticsearch proxy (#338)
* @CCristi: # Fix elasticsearch proxy (#337)
* @CCristi: # Fix process exited before completing request (#336)
* @CCristi: Update aws-secure-deep-policy.json (#335)
* @mgoria: Add docs for deep-search (#334)
* @mgoria: Fix is Anonymous checker (#332)
* @CCristi: # Adjust Lambda Handler to node4.3 standart (#331)
* @CCristi: # Added Frontend-Event into deep-log package (#330)
* @CCristi: Merge (#329)
* @AlexanderC: Merge dev branch (#328)
* @mgoria: #LB92: Invoke request callback instead of throwing an error when credentials have expired (#327)
* @AScripnic: Login on local environment fails (#326)
* @CCristi: # Optimize deep-framework for node-js 4.3 (#325)
* @mgoria: #LB111: Do not load user credentials when invoking a private action (#324)
* @mgoria: #321: Fix UserProvider (#322)
* @mgoria: Logged user cannot be loaded inside lambda function (#321)
* @mgoria: Dev to master (#320)
* @mgoria: Dev to master (#319)
* @mgoria: Dev to master (#318)
* @mgoria: #316: Fix deep-security bootstrap when there are no identity providers configured (#317)
* @GoreA: Fix deep-security bootstrap when there are no identity providers configured (#316)
* @AlexanderC: Merge dev branch (#315)
* @mgoria: #312 - Allow deep-security to login Auth0 OIDC identities (#314)
* @CCristi: # Fixed dynamo-db autoscaler (#313)
* @mgoria: Add auth0 as a new IdentityProvider (#312)
* @AlexanderC: Failed to increase DynamoDB throughput (Table in use) (#311)
* @AlexanderC: Merge dev branch (#310)
* @CCristi: # Fix deep-resource caching (#309)
* @CCristi: Fix deep-resource caching (#308)
* @AlexanderC: Merge dev branch (#307)
* @dragosh1011: #304 Incorrect error message when request falls with error (#306)
* @CCristi: # Added Aws4SignedHttpConnectionFactory to sign elasticsearch requests (#305)
* @dragosh1011: Add method for get region prefix (#303)
* @CCristi: Avoid logging user credentials (#302)
* @dragosh1011: Add method for get region prefix (#301)
* @CCristi: # Added Aws4SignedHttpConnectionFactory to sign elasticsearch requests (#300)
* @eistrati: Merge from dev to master branches (#298)
* @AScripnic: Maximum call stack size exceeded issue (#290)
* @mgoria: Use asyncConfig loader to load search domains into deep-search service (#281)
* @mgoria: Add "LogType" parameter when invoking lambda functions (#140)


30 changes: 29 additions & 1 deletion src/deep-asset/node-bin/compile.sh
@@ -1,2 +1,30 @@
#!/usr/bin/env bash
bash $(dirname $0)/../../../node-bin/compile.sh
#
# Created by vcernomschi on 24/05/2016
#

if [ "$TRAVIS" == "true" ] && [ "$npm_config_global" != "true" ]; then

######################################################
### Skip transpile to ES5 when running from Travis ###
######################################################
echo "Skipping code transpiling to ES5 because we are in travis"
elif [ -d 'lib/' ] && [ "$OSTYPE" != "win32" ] && [ "$OSTYPE" != "win64" ]; then

#################################################################
### Transpile to ES5 when running on local and not on Windows ###
#################################################################
deepify compile es6 lib --out-dir lib.compiled -x .js;
elif [ "$OSTYPE" == "win32" ] || [ "$OSTYPE" == "win64" ]; then

#####################################################
### Skip transpiling on Windows from command line ###
#####################################################
echo "You should have installed and configured http://git-scm.com/ and run all bash command by using git-bash.exe"
else

######################################################
### Skip transpiling if `lib` folder doesn't exist ###
######################################################
echo "Skipping code transpiling to ES5..."
fi
50 changes: 49 additions & 1 deletion src/deep-asset/node-bin/test.sh
@@ -1,2 +1,50 @@
#!/usr/bin/env bash
bash $(dirname $0)/../../../node-bin/test.sh "$(pwd)"
#
# Created by vcernomschi on 24/05/2016
#

__TEST_PREFIX=$1

RUN_TESTS() {
if test -n "$(find $__TEST_PREFIX/test -maxdepth 4 -name '*.spec.js' -print -quit)"; then
cp $(dirname $0)/.babelrc .babelrc # @todo: resolve paths in a smarter way

babel-node $(npm root -g)/istanbul/lib/cli.js cover `which _mocha` -- 'test/**/*.spec.js' \
--reporter spec --ui tdd --recursive --timeout 20s

RESULT_CODE=$?

rm .babelrc

exit $RESULT_CODE
else
echo "Tests do not exist"
fi
}

if [ -d 'lib/' ] && [ "$OSTYPE" != "msys" ] && [ "$OSTYPE" != "win32" ] && [ "$OSTYPE" != "win64" ]; then

#########################################################################
### Run with babel-node to support ES6 tests and have coverage in ES6 ###
#########################################################################
RUN_TESTS
elif [ "$OSTYPE" == "win32" ] || [ "$OSTYPE" == "win64" ]; then

#################################################
### Skip running on Windows from command line ###
#################################################
echo "You should have installed and configured http://git-scm.com/ and run all bash command by using git-bash.exe"
elif [ -d 'lib/' ]; then

#########################################
### Running from git-bash on Windows ###
#########################################
echo "Running from git-bash with gathering coverage"
RUN_TESTS
else

##################################################
### Skip running if `lib` folder doesn't exist ###
##################################################
echo "Skipping testing..."
fi
2 changes: 1 addition & 1 deletion src/deep-asset/package.json
@@ -1,6 +1,6 @@
{
"name": "deep-asset",
"version": "1.9.2",
"version": "1.9.3",
"description": "DEEP Asset Library",
"keywords": [
"digital enterprise end-to-end platform",
Expand Down
30 changes: 29 additions & 1 deletion src/deep-cache/node-bin/compile.sh
@@ -1,2 +1,30 @@
#!/usr/bin/env bash
bash $(dirname $0)/../../../node-bin/compile.sh
#
# Created by vcernomschi on 24/05/2016
#

if [ "$TRAVIS" == "true" ] && [ "$npm_config_global" != "true" ]; then

######################################################
### Skip transpile to ES5 when running from Travis ###
######################################################
echo "Skipping code transpiling to ES5 because we are in travis"
elif [ -d 'lib/' ] && [ "$OSTYPE" != "win32" ] && [ "$OSTYPE" != "win64" ]; then

#################################################################
### Transpile to ES5 when running on local and not on Windows ###
#################################################################
deepify compile es6 lib --out-dir lib.compiled -x .js;
elif [ "$OSTYPE" == "win32" ] || [ "$OSTYPE" == "win64" ]; then

#####################################################
### Skip transpiling on Windows from command line ###
#####################################################
echo "You should have installed and configured http://git-scm.com/ and run all bash command by using git-bash.exe"
else

######################################################
### Skip transpiling if `lib` folder doesn't exist ###
######################################################
echo "Skipping code transpiling to ES5..."
fi
50 changes: 49 additions & 1 deletion src/deep-cache/node-bin/test.sh
@@ -1,2 +1,50 @@
#!/usr/bin/env bash
bash $(dirname $0)/../../../node-bin/test.sh "$(pwd)"
#
# Created by vcernomschi on 24/05/2016
#

__TEST_PREFIX=$1

RUN_TESTS() {
if test -n "$(find $__TEST_PREFIX/test -maxdepth 4 -name '*.spec.js' -print -quit)"; then
cp $(dirname $0)/.babelrc .babelrc # @todo: resolve paths in a smarter way

babel-node $(npm root -g)/istanbul/lib/cli.js cover `which _mocha` -- 'test/**/*.spec.js' \
--reporter spec --ui tdd --recursive --timeout 20s

RESULT_CODE=$?

rm .babelrc

exit $RESULT_CODE
else
echo "Tests do not exist"
fi
}

if [ -d 'lib/' ] && [ "$OSTYPE" != "msys" ] && [ "$OSTYPE" != "win32" ] && [ "$OSTYPE" != "win64" ]; then

#########################################################################
### Run with babel-node to support ES6 tests and have coverage in ES6 ###
#########################################################################
RUN_TESTS
elif [ "$OSTYPE" == "win32" ] || [ "$OSTYPE" == "win64" ]; then

#################################################
### Skip running on Windows from command line ###
#################################################
echo "You should have installed and configured http://git-scm.com/ and run all bash command by using git-bash.exe"
elif [ -d 'lib/' ]; then

#########################################
### Running from git-bash on Windows ###
#########################################
echo "Running from git-bash with gathering coverage"
RUN_TESTS
else

##################################################
### Skip running if `lib` folder doesn't exist ###
##################################################
echo "Skipping testing..."
fi
2 changes: 1 addition & 1 deletion src/deep-cache/package.json
@@ -1,6 +1,6 @@
{
"name": "deep-cache",
"version": "1.9.1",
"version": "1.9.2",
"description": "DEEP Cache Library",
"keywords": [
"digital enterprise end-to-end platform",
Expand Down
30 changes: 29 additions & 1 deletion src/deep-core/node-bin/compile.sh
@@ -1,2 +1,30 @@
#!/usr/bin/env bash
bash $(dirname $0)/../../../node-bin/compile.sh
#
# Created by vcernomschi on 24/05/2016
#

if [ "$TRAVIS" == "true" ] && [ "$npm_config_global" != "true" ]; then

######################################################
### Skip transpile to ES5 when running from Travis ###
######################################################
echo "Skipping code transpiling to ES5 because we are in travis"
elif [ -d 'lib/' ] && [ "$OSTYPE" != "win32" ] && [ "$OSTYPE" != "win64" ]; then

#################################################################
### Transpile to ES5 when running on local and not on Windows ###
#################################################################
deepify compile es6 lib --out-dir lib.compiled -x .js;
elif [ "$OSTYPE" == "win32" ] || [ "$OSTYPE" == "win64" ]; then

#####################################################
### Skip transpiling on Windows from command line ###
#####################################################
echo "You should have installed and configured http://git-scm.com/ and run all bash command by using git-bash.exe"
else

######################################################
### Skip transpiling if `lib` folder doesn't exist ###
######################################################
echo "Skipping code transpiling to ES5..."
fi
50 changes: 49 additions & 1 deletion src/deep-core/node-bin/test.sh
@@ -1,2 +1,50 @@
#!/usr/bin/env bash
bash $(dirname $0)/../../../node-bin/test.sh "$(pwd)"
#
# Created by vcernomschi on 24/05/2016
#

__TEST_PREFIX=$1

RUN_TESTS() {
if test -n "$(find $__TEST_PREFIX/test -maxdepth 4 -name '*.spec.js' -print -quit)"; then
cp $(dirname $0)/.babelrc .babelrc # @todo: resolve paths in a smarter way

babel-node $(npm root -g)/istanbul/lib/cli.js cover `which _mocha` -- 'test/**/*.spec.js' \
--reporter spec --ui tdd --recursive --timeout 20s

RESULT_CODE=$?

rm .babelrc

exit $RESULT_CODE
else
echo "Tests do not exist"
fi
}

if [ -d 'lib/' ] && [ "$OSTYPE" != "msys" ] && [ "$OSTYPE" != "win32" ] && [ "$OSTYPE" != "win64" ]; then

#########################################################################
### Run with babel-node to support ES6 tests and have coverage in ES6 ###
#########################################################################
RUN_TESTS
elif [ "$OSTYPE" == "win32" ] || [ "$OSTYPE" == "win64" ]; then

#################################################
### Skip running on Windows from command line ###
#################################################
echo "You should have installed and configured http://git-scm.com/ and run all bash command by using git-bash.exe"
elif [ -d 'lib/' ]; then

#########################################
### Running from git-bash on Windows ###
#########################################
echo "Running from git-bash with gathering coverage"
RUN_TESTS
else

##################################################
### Skip running if `lib` folder doesn't exist ###
##################################################
echo "Skipping testing..."
fi
2 changes: 1 addition & 1 deletion src/deep-core/package.json
@@ -1,6 +1,6 @@
{
"name": "deep-core",
"version": "1.9.11",
"version": "1.9.12",
"description": "DEEP Core Library",
"keywords": [
"digital enterprise end-to-end platform",
Expand Down
30 changes: 29 additions & 1 deletion src/deep-db/node-bin/compile.sh
@@ -1,2 +1,30 @@
#!/usr/bin/env bash
bash $(dirname $0)/../../../node-bin/compile.sh
#
# Created by vcernomschi on 24/05/2016
#

if [ "$TRAVIS" == "true" ] && [ "$npm_config_global" != "true" ]; then

######################################################
### Skip transpile to ES5 when running from Travis ###
######################################################
echo "Skipping code transpiling to ES5 because we are in travis"
elif [ -d 'lib/' ] && [ "$OSTYPE" != "win32" ] && [ "$OSTYPE" != "win64" ]; then

#################################################################
### Transpile to ES5 when running on local and not on Windows ###
#################################################################
deepify compile es6 lib --out-dir lib.compiled -x .js;
elif [ "$OSTYPE" == "win32" ] || [ "$OSTYPE" == "win64" ]; then

#####################################################
### Skip transpiling on Windows from command line ###
#####################################################
echo "You should have installed and configured http://git-scm.com/ and run all bash command by using git-bash.exe"
else

######################################################
### Skip transpiling if `lib` folder doesn't exist ###
######################################################
echo "Skipping code transpiling to ES5..."
fi

0 comments on commit fb71af5

Please sign in to comment.