new way to initialize npm packages
This commit is contained in:
		@@ -1,16 +1,19 @@
 | 
				
			|||||||
image: node:14
 | 
					image: node:latest
 | 
				
			||||||
 | 
					
 | 
				
			||||||
stages:
 | 
					stages:
 | 
				
			||||||
  - prepare
 | 
					 | 
				
			||||||
  - build
 | 
					  - build
 | 
				
			||||||
  - test
 | 
					  - test
 | 
				
			||||||
  - packaging
 | 
					  - packaging
 | 
				
			||||||
  - deploy
 | 
					  - deploy
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Cache modules in between jobs
 | 
				
			||||||
cache:
 | 
					cache:
 | 
				
			||||||
  key: "$CI_COMMIT_REF_SLUG" # use per branch caching
 | 
					  key: ${CI_COMMIT_REF_SLUG}
 | 
				
			||||||
  paths:
 | 
					  paths:
 | 
				
			||||||
    - node_modules/
 | 
					    - .npm/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					before_script:
 | 
				
			||||||
 | 
					  - npm ci --cache .npm --prefer-offline
 | 
				
			||||||
 | 
					
 | 
				
			||||||
include:
 | 
					include:
 | 
				
			||||||
  - template: Code-Quality.gitlab-ci.yml
 | 
					  - template: Code-Quality.gitlab-ci.yml
 | 
				
			||||||
@@ -18,11 +21,6 @@ include:
 | 
				
			|||||||
variables:
 | 
					variables:
 | 
				
			||||||
  SAST_DISABLE_DIND: "true"
 | 
					  SAST_DISABLE_DIND: "true"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Node_dependencies:
 | 
					 | 
				
			||||||
  stage: prepare
 | 
					 | 
				
			||||||
  script:
 | 
					 | 
				
			||||||
    - npm install --progress=false
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Minimize:
 | 
					Minimize:
 | 
				
			||||||
  stage: build
 | 
					  stage: build
 | 
				
			||||||
  script:
 | 
					  script:
 | 
				
			||||||
@@ -31,7 +29,6 @@ Minimize:
 | 
				
			|||||||
    expire_in: 7 days
 | 
					    expire_in: 7 days
 | 
				
			||||||
    paths:
 | 
					    paths:
 | 
				
			||||||
      - build/
 | 
					      - build/
 | 
				
			||||||
  needs: ["Node_dependencies"]
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
Frontend_Tests:
 | 
					Frontend_Tests:
 | 
				
			||||||
  stage: test
 | 
					  stage: test
 | 
				
			||||||
@@ -41,7 +38,6 @@ Frontend_Tests:
 | 
				
			|||||||
    reports:
 | 
					    reports:
 | 
				
			||||||
      junit:
 | 
					      junit:
 | 
				
			||||||
        - ./junit.xml
 | 
					        - ./junit.xml
 | 
				
			||||||
  needs: ["Node_dependencies"]
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
code_quality:
 | 
					code_quality:
 | 
				
			||||||
  tags:
 | 
					  tags:
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user