diff --git a/Makefile b/Makefile index ad370f14..fb0d40bf 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,8 @@ .PHONY: all clone-quickstart install-quickstart start-quickstart install-openmct-yamcs sanity-test build-example test-getopensource test-e2e clean -all: clone-quickstart install-quickstart install-openmct-yamcs sanity-test build-example test-getopensource test-e2e +all: clone-quickstart install-quickstart install-openmct-yamcs sanity-test build-example test-e2e + +start: clone-quickstart install-quickstart install-openmct-yamcs sanity-test build-example start-openmct clone-quickstart: @echo "Running target: clone-quickstart" @@ -38,13 +40,17 @@ build-example: @current_branch=$(shell git rev-parse --abbrev-ref HEAD) @echo "Current branch of openmct-yamcs: $$current_branch checking if it exists in openmct repository" @if git ls-remote --exit-code --heads https://github.com/nasa/openmct.git refs/heads/$$current_branch; then \ - echo "Branch $$current_branch exists in openmct repository. Running build:example:current"; \ - npm run build:example:current || { echo "Failed to run build:example:current"; exit 1; }; \ + echo "Branch $$current_branch exists in openmct repository. Running build:example:currentbranch"; \ + npm run build:example:currentbranch || { echo "Failed to run build:example:currentbranch"; exit 1; }; \ else \ echo "Branch $$current_branch does not exist in openmct repository. Running build:example:master"; \ npm run build:example:master || { echo "Failed to run build:example:master"; exit 1; }; \ fi +start-openmct: + @echo "Running target: start-openmct" + npm start + test-e2e: @echo "Running target: test-e2e" npm run test:getopensource diff --git a/package.json b/package.json index 3095a00d..a8b1b3fa 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,7 @@ "build:dist": "webpack --config ./.webpack/webpack.prod.mjs", "build:example": "npm install openmct@unstable --no-save", "build:example:master": "npm install nasa/openmct#master --no-save", - "build:example:current": "npm install nasa/openmct#$(git rev-parse --abbrev-ref HEAD) --no-save --verbose", + "build:example:currentbranch": "npm install nasa/openmct#$(git rev-parse --abbrev-ref HEAD) --no-save --verbose", "postbuild:example": "node check-optional-dependencies.mjs", "start": "npx webpack serve --config ./.webpack/webpack.dev.mjs", "start:coverage": "npx webpack serve --config ./.webpack/webpack.coverage.mjs",