Added scripts to workspace
This commit is contained in:
parent
0a285f2d28
commit
1899cb5b86
@ -7,7 +7,62 @@
|
|||||||
"cpl_query": "src/cpl_query/cpl_query.json"
|
"cpl_query": "src/cpl_query/cpl_query.json"
|
||||||
},
|
},
|
||||||
"Scripts": {
|
"Scripts": {
|
||||||
"hello-world": "echo 'Hello World'"
|
"hello-world": "echo 'Hello World'",
|
||||||
|
"docs-build": "echo 'Build Documentation'; cd docs/; sphinx-apidoc -o source/ ../src/cpl_core; sphinx-apidoc -o source/ ../src/cpl_query; make clean; make html; rm source/cpl_query.tests.rst;",
|
||||||
|
"db": "cpl build-docs",
|
||||||
|
"docs-open": "xdg-open $PWD/docs/build/html/index.html &",
|
||||||
|
"do": "cpl docs-open",
|
||||||
|
|
||||||
|
"build-all": "cpl build-cli; cpl build-core; cpl build-query;",
|
||||||
|
"ba": "cpl build-all",
|
||||||
|
"build-cli": "echo 'Build cpl_cli'; cd ./src/cpl_cli; cpl build; cd ../../;",
|
||||||
|
"build-core": "echo 'Build cpl_core'; cd ./src/cpl_core; cpl build; cd ../../;",
|
||||||
|
"build-query": "echo 'Build cpl_query'; cd ./src/cpl_query; cpl build; cd ../../;",
|
||||||
|
|
||||||
|
"publish-all": "cpl publish-cli; cpl publish-core; cpl publish-query;",
|
||||||
|
"pa": "cpl build-all",
|
||||||
|
"publish-cli": "echo 'Publish cpl_cli'; cd ./src/cpl_cli; cpl publish; cd ../../;",
|
||||||
|
"publish-core": "echo 'Publish cpl_core'; cd ./src/cpl_core; cpl publish; cd ../../;",
|
||||||
|
"publish-query": "echo 'Publish cpl_query'; cd ./src/cpl_query; cpl publish; cd ../../;",
|
||||||
|
|
||||||
|
"upload-prod-cli": "echo 'PROD Upload cpl_cli'; cpl upl-prod-cli;",
|
||||||
|
"upload-prod-core": "echo 'PROD Upload cpl_core'; cpl upl-prod-core;",
|
||||||
|
"upload-prod-query": "echo 'PROD Upload cpl_query'; cpl upl-prod-query;",
|
||||||
|
|
||||||
|
"upload-exp-cli": "echo 'EXP Upload cpl_cli'; cpl upl-exp-cli;",
|
||||||
|
"upload-exp-core": "echo 'EXP Upload cpl_core'; cpl upl-exp-core;",
|
||||||
|
"upload-exp-query": "echo 'EXP Upload cpl_query'; cpl upl-exp-query;",
|
||||||
|
|
||||||
|
"upload-dev-cli": "echo 'DEV Upload cpl_cli'; cpl upl-dev-cli;",
|
||||||
|
"upload-dev-core": "echo 'DEV Upload cpl_core'; cpl upl-dev-core;",
|
||||||
|
"upload-dev-query": "echo 'DEV Upload cpl_query'; cpl upl-dev-query;",
|
||||||
|
|
||||||
|
"upl-prod-cli": "twine upload -r pip.sh-edraft.de dist/cpl-cli/publish/setup/*",
|
||||||
|
"upl-prod-core": "twine upload -r pip.sh-edraft.de dist/cpl-core/publish/setup/*",
|
||||||
|
"upl-prod-query": "twine upload -r pip.sh-edraft.de dist/cpl-query/publish/setup/*",
|
||||||
|
|
||||||
|
"upl-exp-cli": "twine upload -r pip-exp.sh-edraft.de dist/cpl-cli/publish/setup/*",
|
||||||
|
"upl-exp-core": "twine upload -r pip-exp.sh-edraft.de dist/cpl-core/publish/setup/*",
|
||||||
|
"upl-exp-query": "twine upload -r pip-exp.sh-edraft.de dist/cpl-query/publish/setup/*",
|
||||||
|
|
||||||
|
"upl-dev-cli": "twine upload -r pip-dev.sh-edraft.de dist/cpl-cli/publish/setup/*",
|
||||||
|
"upl-dev-core": "twine upload -r pip-dev.sh-edraft.de dist/cpl-core/publish/setup/*",
|
||||||
|
"upl-dev-query": "twine upload -r pip-dev.sh-edraft.de dist/cpl-query/publish/setup/*",
|
||||||
|
|
||||||
|
"deploy-prod": "cpl deploy-prod-cli; cpl deploy-prod-core; cpl deploy-prod-query;",
|
||||||
|
"deploy-prod-cli": "cpl publish-cli; cpl upload-prod-cli",
|
||||||
|
"deploy-prod-core": "cpl publish-core; cpl upload-prod-core",
|
||||||
|
"deploy-prod-query": "cpl publish-query; cpl upload-prod-query",
|
||||||
|
|
||||||
|
"deploy-exp": "cpl deploy-exp-cli; cpl deploy-exp-core; cpl deploy-exp-query;",
|
||||||
|
"deploy-exp-cli": "cpl publish-cli; cpl upload-exp-cli",
|
||||||
|
"deploy-exp-core": "cpl publish-core; cpl upload-exp-core",
|
||||||
|
"deploy-exp-query": "cpl publish-query; cpl upload-exp-query",
|
||||||
|
|
||||||
|
"deploy-dev": "cpl deploy-dev-cli; cpl deploy-dev-core; cpl deploy-dev-query;",
|
||||||
|
"deploy-dev-cli": "cpl publish-cli; cpl upload-dev-cli",
|
||||||
|
"deploy-dev-core": "cpl publish-core; cpl upload-dev-core",
|
||||||
|
"deploy-dev-query": "cpl publish-query; cpl upload-dev-query"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -7,7 +7,7 @@ if [ $1 == "-prod" ]; then
|
|||||||
elif [ $1 == "-exp" ]; then
|
elif [ $1 == "-exp" ]; then
|
||||||
twine upload -r pip-exp.sh-edraft.de dist/cpl-cli/publish/setup/*
|
twine upload -r pip-exp.sh-edraft.de dist/cpl-cli/publish/setup/*
|
||||||
twine upload -r pip-exp.sh-edraft.de dist/cpl-core/publish/setup/*
|
twine upload -r pip-exp.sh-edraft.de dist/cpl-core/publish/setup/*
|
||||||
twine upload -r pip-.sh-edraft.de dist/cpl-query/publish/setup/*
|
twine upload -r pip-exp.sh-edraft.de dist/cpl-query/publish/setup/*
|
||||||
|
|
||||||
else
|
else
|
||||||
twine upload -r pip-dev.sh-edraft.de dist/cpl-cli/publish/setup/*
|
twine upload -r pip-dev.sh-edraft.de dist/cpl-cli/publish/setup/*
|
||||||
|
Loading…
Reference in New Issue
Block a user