mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
fix build cli
This commit is contained in:
11
lib/cli/.npmignore
Normal file
11
lib/cli/.npmignore
Normal file
@@ -0,0 +1,11 @@
|
||||
npm-debug.log
|
||||
.idea
|
||||
.npmrc
|
||||
|
||||
/.editorconfig
|
||||
/.travis.yml
|
||||
/*.json
|
||||
|
||||
/.npmignore
|
||||
|
||||
node_modules
|
@@ -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('<versionNumber>')
|
||||
.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'));
|
||||
|
@@ -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
|
||||
|
9
scripts/build/build-cli.sh
Executable file
9
scripts/build/build-cli.sh
Executable file
@@ -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/
|
Reference in New Issue
Block a user