diff --git a/lib/cli/.npmignore b/lib/cli/.npmignore new file mode 100644 index 0000000000..4620fb1ec0 --- /dev/null +++ b/lib/cli/.npmignore @@ -0,0 +1,11 @@ +npm-debug.log +.idea +.npmrc + +/.editorconfig +/.travis.yml +/*.json + +/.npmignore + +node_modules diff --git a/lib/cli/bin/doc/licenseList.js b/lib/cli/bin/doc/licenseList.js index c656dc8f4f..df49494ebe 100755 --- a/lib/cli/bin/doc/licenseList.js +++ b/lib/cli/bin/doc/licenseList.js @@ -11,32 +11,32 @@ var program = require('commander'); var templatePath = path.resolve(__dirname, 'templates', 'licensePage.ejs'); const nonStandardLicenses = { - "public domain": "PDDL-1.0", - "apache": "Apache-2.0", - "bsd": "BSD-2-Clause" + 'public domain': 'PDDL-1.0', + 'apache': 'Apache-2.0', + 'bsd': 'BSD-2-Clause' }; const missingRepos = { - "@alfresco/adf-testing": "https://github.com/Alfresco/alfresco-ng2-components", - "@webassemblyjs/helper-api-error": "https://github.com/xtuc/webassemblyjs", - "@webassemblyjs/helper-fsm": "https://github.com/xtuc/webassemblyjs", - "@webassemblyjs/ieee754": "https://github.com/xtuc/webassemblyjs", - "@webassemblyjs/leb128": "https://github.com/xtuc/webassemblyjs", - "adf-tslint-rules": "https://github.com/Alfresco/alfresco-ng2-components", - "adf-monaco-extension": "https://github.com/eromano/aca-monaco-extension", - "indexof": "https://github.com/component/indexof", - "rxjs-compat": "https://github.com/ReactiveX/rxjs/tree/master/compat", + '@alfresco/adf-testing': 'https://github.com/Alfresco/alfresco-ng2-components', + '@webassemblyjs/helper-api-error': 'https://github.com/xtuc/webassemblyjs', + '@webassemblyjs/helper-fsm': 'https://github.com/xtuc/webassemblyjs', + '@webassemblyjs/ieee754': 'https://github.com/xtuc/webassemblyjs', + '@webassemblyjs/leb128': 'https://github.com/xtuc/webassemblyjs', + 'adf-tslint-rules': 'https://github.com/Alfresco/alfresco-ng2-components', + 'adf-monaco-extension': 'https://github.com/eromano/aca-monaco-extension', + 'indexof': 'https://github.com/component/indexof', + 'rxjs-compat': 'https://github.com/ReactiveX/rxjs/tree/master/compat', }; program .usage('') .parse(process.argv); -var packageJson = JSON.parse(fs.readFileSync(path.resolve('./','package.json')), 'utf8'); +var packageJson = JSON.parse(fs.readFileSync(path.resolve('./','package.json'))); if (!packageJson) { console.error('Move in the path where you have the package.json'); - return; + throw ''; } console.log(path.resolve('./','package.json')); diff --git a/scripts/build/build-all-lib.sh b/scripts/build/build-all-lib.sh index b1665b4f06..9c6ef73f11 100755 --- a/scripts/build/build-all-lib.sh +++ b/scripts/build/build-all-lib.sh @@ -27,6 +27,9 @@ echo "====== Run process-services-cloud =====" echo "====== Run testing =====" ./build-testing.sh +echo "====== Run Cli =====" +./build-cli.sh + echo "====== Copy schema =====" cp ../../lib/core/app-config/schema.json ../../lib/dist/core/app.config.schema.json diff --git a/scripts/build/build-cli.sh b/scripts/build/build-cli.sh new file mode 100755 index 0000000000..59a99cf40c --- /dev/null +++ b/scripts/build/build-cli.sh @@ -0,0 +1,9 @@ +#!/usr/bin/env bash + +DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" + +cd $DIR/../.. + +echo "====== Cli ======" +echo "====== Build ======" +cp -R ./lib/cli/ lib/dist/cli/