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:
@@ -15,11 +15,9 @@
|
|||||||
"url": "https://github.com/Alfresco/alfresco-ng2-components/issues"
|
"url": "https://github.com/Alfresco/alfresco-ng2-components/issues"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "npm run tsc -- -p tsconfig.json",
|
"build": "tsc -p tsconfig.json",
|
||||||
"develop": "npm run tsc:w -- -p tsconfig.json",
|
"develop": "tsc -p tsconfig.json --watch",
|
||||||
"dist": "rm -rf ./dist/ && npm run build && cp -R ./bin ./dist/ && cp -R ./templates ./dist && cp ./package.json ./dist/",
|
"dist": "rm -rf ./dist/ && npm run build && cp -R ./bin ./dist/ && cp -R ./templates ./dist && cp ./package.json ./dist/"
|
||||||
"tsc": "./node_modules/typescript/bin/tsc",
|
|
||||||
"tsc:w": "./node_modules/typescript/bin/tsc -w"
|
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"commander": "^4.0.0",
|
"commander": "^4.0.0",
|
||||||
|
@@ -6,8 +6,8 @@ cd $DIR/../../lib/cli/
|
|||||||
|
|
||||||
echo "====== Cli ======"
|
echo "====== Cli ======"
|
||||||
echo "====== Build ======"
|
echo "====== Build ======"
|
||||||
npm install
|
npm install -g typescript
|
||||||
npm run build
|
npm run dist
|
||||||
|
|
||||||
cd $DIR/../../
|
cd $DIR/../../
|
||||||
if [ -e "./lib/dist/cli" ];
|
if [ -e "./lib/dist/cli" ];
|
||||||
|
Reference in New Issue
Block a user