diff --git a/config/autoload/database.local.php.dist b/config/autoload/database.local.php.dist new file mode 100644 index 0000000..2e30aae --- /dev/null +++ b/config/autoload/database.local.php.dist @@ -0,0 +1,24 @@ + array( + 'connection' => array( + 'orm_default' => array( + 'params' => array( + 'host' => '@db.host@', + 'user' => '@db.username@', + 'password' => '@db.password@', + 'dbname' => '@db.name@', + ) + ), + 'orm_cli' => array( + 'params' => array( + 'host' => '@db.host@', + 'user' => '@db.username@', + 'password' => '@db.password@', + 'dbname' => '@db.name@', + ) + ) + ) + ) +); diff --git a/config/autoload/languages.local.php.dist b/config/autoload/languages.local.php.dist new file mode 100644 index 0000000..fbc7c8b --- /dev/null +++ b/config/autoload/languages.local.php.dist @@ -0,0 +1,30 @@ + [ + 1 => 'Français', + 2 => 'English', + 3 => 'Deutsch' + ], + + 'defaultLanguageIndex' => 1, + + /* Link with (ModuleCore) + config['languages'] = [ + 'fr' => array( + 'index' => 1, + 'label' => 'Français' + ), + 'en' => array( + 'index' => 2, + 'label' => 'English' + ), + 'de' => array( + 'index' => 3, + 'label' => 'Deutsch' + ), + ] + */ + + 'activeLanguages' => array('fr','en','de',) +); diff --git a/config/autoload/security-authentication.local.php.dist b/config/autoload/security-authentication.local.php.dist new file mode 100644 index 0000000..1213f69 --- /dev/null +++ b/config/autoload/security-authentication.local.php.dist @@ -0,0 +1,8 @@ + array( + 'ttl' => @monarc.ttl@, // timeout + 'salt' => '@monarc.salt@', // salt privé pour chiffrement pwd + ), +); diff --git a/package.json b/package.json index daee00a..6495a18 100644 --- a/package.json +++ b/package.json @@ -5,8 +5,12 @@ "private": true, "repository": { "type": "git", - "url": "ssh://gogs@rhea.netlor.fr:2222/monarc/skeleton.git" + "url": "https://github.com/CASES-LU/skeleton.git" }, "author": "Netlor", - "license": "Copyright" + "license": "Copyright", + "devDependencies": { + "grunt": "~0.4.1", + "grunt-cli": "~0.1.13" + } } diff --git a/scripts/compile_translations.sh b/scripts/compile_translations.sh index c84ea1f..83525d3 100755 --- a/scripts/compile_translations.sh +++ b/scripts/compile_translations.sh @@ -1,14 +1,16 @@ #!/bin/bash +pwd + if [ -d node_modules/ng_backoffice ]; then pushd node_modules/ng_backoffice - grunt compile_translations - grunt concat + node_modules/.bin/grunt compile_translations + node_modules/.bin/grunt concat fi if [ -d node_modules/ng_client ]; then pushd node_modules/ng_client - grunt compile_translations - grunt concat + node_modules/.bin/grunt compile_translations + node_modules/.bin/grunt concat fi diff --git a/scripts/extract_translations.sh b/scripts/extract_translations.sh index 2f435cd..6ba7dfc 100755 --- a/scripts/extract_translations.sh +++ b/scripts/extract_translations.sh @@ -2,11 +2,11 @@ if [ -d node_modules/ng_backoffice ]; then pushd node_modules/ng_backoffice - grunt extract_translations + node_modules/.bin/grunt extract_translations fi if [ -d node_modules/ng_client ]; then pushd node_modules/ng_client - grunt extract_translations + node_modules/.bin/grunt extract_translations fi diff --git a/scripts/link_modules_resources.sh b/scripts/link_modules_resources.sh index 7d17683..5a7c03c 100755 --- a/scripts/link_modules_resources.sh +++ b/scripts/link_modules_resources.sh @@ -59,7 +59,7 @@ if [ -d node_modules/ng_backoffice ]; then cd ../.. pushd node_modules/ng_backoffice - grunt concat + node_modules/.bin/grunt concat popd fi @@ -90,7 +90,7 @@ if [ -d node_modules/ng_client ]; then cd ../.. pushd node_modules/ng_client - grunt concat + node_modules/.bin/grunt concat popd fi