From 657803cf638b10c272386a9f6804e235d883afd7 Mon Sep 17 00:00:00 2001 From: James Sevedge Date: Mon, 4 May 2020 17:41:41 -0700 Subject: [PATCH] add generate/transpile and npmignore file --- .gitlab-ci.yml | 14 ++++++++++++++ .npmignore | 16 ++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 .npmignore diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 0e7d68d..e9dfffa 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -51,6 +51,20 @@ check_content: tags: - cm-official-docker-executor +# generate/transpile code +generate_code: + stage: build + script: + - npm install + - npm run build-package + artifacts: + name: ${CI_COMMIT_REF_NAME}_generated_code + paths: + - dist + expire_in: 1 month + tags: + - cm-official-docker-executor + # build code documentation code_docs: stage: build diff --git a/.npmignore b/.npmignore new file mode 100644 index 0000000..3d1c1bd --- /dev/null +++ b/.npmignore @@ -0,0 +1,16 @@ +# Source directory +src/ +# Tests directory +tests/ +# Coverage directory +coverage/ +# Code Documentation directory +code_docs/ +# Local Documentation directory +docs/ +# NYC Output directory +.nyc_output/ +# Git Allowed File +.gitallowed +# CI File +.gitlab-ci.yml