diff --git a/docs/DEVELOPER_GUIDE.md b/docs/DEVELOPER_GUIDE.md index b3cd87b257..95c556ee7b 100644 --- a/docs/DEVELOPER_GUIDE.md +++ b/docs/DEVELOPER_GUIDE.md @@ -15,7 +15,7 @@ The source has two parts, the platform and a documentation app. ## Adding a new platform feature (component/module/utility) -Please reference these [docs](https://github.com/Teradata/covalent/blob/93c5a064d1aa19fab5015f5def2b300f48671de2/src/platform/experimental/README.md). +Please reference these [docs](https://github.com/Teradata/covalent/blob/develop/src/platform/experimental/README.md). diff --git a/package.json b/package.json index 7e4668869c..0dd01adebe 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,7 @@ "build:lib": "bash scripts/build-release && gulp version-placeholder", "build:universal": "bash scripts/build-universal", "publish:npm": "npm run build:lib && bash scripts/npm-publish", - "publish:nightly": "npm run build:lib && bash scripts/nightly-publish", + "publish:nightly": "npm run build:lib && bash scripts/nightly-publish core && bash scripts/nightly-publish experimental", "ghpages:deploy": "npm run build:docs -- --base-href /covalent/ && bash scripts/ghpages-deploy", "release:start": "bash scripts/start-release", "release:finish": "bash scripts/finish-release", diff --git a/scripts/nightly-publish b/scripts/nightly-publish index 2aa9e5ebc2..2a106c59b4 100644 --- a/scripts/nightly-publish +++ b/scripts/nightly-publish @@ -2,15 +2,23 @@ set -o errexit -o nounset -buildDir="deploy/platform/core" +package=$1 + +buildDir="deploy/platform/${package}" commitSha=$(git rev-parse --short HEAD) commitAuthorName=$(git --no-pager show -s --format='%an' HEAD) commitAuthorEmail=$(git --no-pager show -s --format='%ae' HEAD) commitMessage=$(git log --oneline -n 1) -repoName="covalent-nightly" -repoUrl="https://github.com/Teradata/covalent-nightly.git" +if [ $package = "core" ] +then + repoName="covalent-nightly" + repoUrl="https://github.com/Teradata/covalent-nightly.git" +else + repoName="covalent-${package}-nightly" + repoUrl="https://github.com/Teradata/covalent-${package}-nightly.git" +fi repoDir="deploy/$repoName" echo "Cloning $repoUrl into $repoDir" @@ -18,7 +26,7 @@ git clone $repoUrl $repoDir echo "Cleaning nightly repo and moving release files into it" rm -rf $repoDir/* -cp -r $buildDir/* $repoDir +cp -rf $buildDir/* $repoDir cd $repoDir # Prepare Git for pushing the artifacts to the repository. @@ -29,9 +37,12 @@ git config credential.helper "store --file=.git/credentials" echo "https://${COVALENT_NIGHTLY_TOKEN}:@github.com" > .git/credentials -git add -A -git commit -m "$commitMessage" -git tag "$commitSha" -git push origin master --tags - -echo "Finished publishing nightly build" \ No newline at end of file +if [ -n "$(git status --porcelain)" ]; then + git add -A + git commit -m "$commitMessage" + git tag "$commitSha" + git push origin master --tags + echo "Finished publishing nightly build for ${package}" +else + echo "No changes to commit for ${package}"; +fi diff --git a/scripts/npm-publish b/scripts/npm-publish index faa323a945..6e1ca02659 100644 --- a/scripts/npm-publish +++ b/scripts/npm-publish @@ -11,10 +11,14 @@ for package in ./deploy/platform/* do if [ -d ${package} ] then - npm publish ${package} --access=public --tag=$tag + # ignore experimental package + if [[ !(${package} =~ "experimental") ]] + then + npm publish ${package} --access=public --tag=$tag + fi fi done #logout when finished -npm logout +npm logout echo "Published successfully [scope: $scope]. Use 'npm install [package-name]' in the project you want to use it." diff --git a/src/platform/experimental/package.json b/src/platform/experimental/package.json index 1d53471539..7c9cee5731 100644 --- a/src/platform/experimental/package.json +++ b/src/platform/experimental/package.json @@ -1,7 +1,7 @@ { "name": "@covalent/experimental", "description": "Teradata UI Platform Experimental Module", - "version": "0.0.0-EXPERIMENTAL", + "version": "0.0.0-COVALENT", "license": "MIT", "author": "Teradata UX", "contributors": [ diff --git a/src/platform/experimental/template-rename-me-experiment-module/rename-me.component.html b/src/platform/experimental/template-rename-me-experiment-module/rename-me.component.html index 4a2aa0635b..c5cd0580a8 100644 --- a/src/platform/experimental/template-rename-me-experiment-module/rename-me.component.html +++ b/src/platform/experimental/template-rename-me-experiment-module/rename-me.component.html @@ -1 +1 @@ - Test Link + Test Link