mirror of https://github.com/twbs/bootstrap.git
				
				
				
			Add a release npm script.
This commit is contained in:
		
							parent
							
								
									3fcddfa42e
								
							
						
					
					
						commit
						4ce091b87f
					
				| 
						 | 
					@ -34,29 +34,11 @@ printf "\n%sUpdating version number...%s" $magenta $end
 | 
				
			||||||
printf "\n%s=======================================================\n%s" $magenta $end
 | 
					printf "\n%s=======================================================\n%s" $magenta $end
 | 
				
			||||||
npm run release-version "$current_version" "$1"
 | 
					npm run release-version "$current_version" "$1"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Compile latest CSS and JS
 | 
					# Build release
 | 
				
			||||||
printf "\n%s=======================================================%s" $magenta $end
 | 
					printf "\n%s=======================================================%s" $magenta $end
 | 
				
			||||||
printf "\n%sCompile latest CSS and JS...%s" $magenta $end
 | 
					printf "\n%sBuilding release..%s" $magenta $end
 | 
				
			||||||
printf "\n%s=======================================================\n%s" $magenta $end
 | 
					printf "\n%s=======================================================\n%s" $magenta $end
 | 
				
			||||||
npm run dist
 | 
					npm run release
 | 
				
			||||||
 | 
					 | 
				
			||||||
# Generate the SRI hashes
 | 
					 | 
				
			||||||
printf "\n%s=======================================================%s" $magenta $end
 | 
					 | 
				
			||||||
printf "\n%sGenerate the SRI hashes...%s" $magenta $end
 | 
					 | 
				
			||||||
printf "\n%s=======================================================\n%s" $magenta $end
 | 
					 | 
				
			||||||
npm run release-sri
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
# Compress the dist files
 | 
					 | 
				
			||||||
printf "\n%s=======================================================%s" $magenta $end
 | 
					 | 
				
			||||||
printf "\n%sCompressing the dist files...%s" $magenta $end
 | 
					 | 
				
			||||||
printf "\n%s=======================================================\n%s" $magenta $end
 | 
					 | 
				
			||||||
npm run release-zip
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
# Compile the docs
 | 
					 | 
				
			||||||
printf "\n%s=======================================================%s" $magenta $end
 | 
					 | 
				
			||||||
printf "\n%sCompile hosted documentation...%s" $magenta $end
 | 
					 | 
				
			||||||
printf "\n%s=======================================================\n%s" $magenta $end
 | 
					 | 
				
			||||||
npm run docs-github
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Copy the contents of the built docs site over to `bs-docs` repo
 | 
					# Copy the contents of the built docs site over to `bs-docs` repo
 | 
				
			||||||
printf "\n%s=======================================================%s" $magenta $end
 | 
					printf "\n%s=======================================================%s" $magenta $end
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -69,6 +69,7 @@
 | 
				
			||||||
    "docs-serve": "bundle exec jekyll serve",
 | 
					    "docs-serve": "bundle exec jekyll serve",
 | 
				
			||||||
    "docs-workbox-precache": "node build/workbox.js",
 | 
					    "docs-workbox-precache": "node build/workbox.js",
 | 
				
			||||||
    "update-deps": "ncu -a -x jquery -x bundlesize && npm update && bundle update && shx echo Manually update \"site/docs/4.1/assets/js/vendor/\"",
 | 
					    "update-deps": "ncu -a -x jquery -x bundlesize && npm update && bundle update && shx echo Manually update \"site/docs/4.1/assets/js/vendor/\"",
 | 
				
			||||||
 | 
					    "release": "npm run dist && npm run release-sri && npm run release-zip && npm run docs-github",
 | 
				
			||||||
    "release-sri": "node build/generate-sri.js",
 | 
					    "release-sri": "node build/generate-sri.js",
 | 
				
			||||||
    "release-version": "node build/change-version.js",
 | 
					    "release-version": "node build/change-version.js",
 | 
				
			||||||
    "release-zip": "cross-env-shell \"shx cp -r dist/ bootstrap-$npm_package_version-dist && zip -r9 bootstrap-$npm_package_version-dist.zip bootstrap-$npm_package_version-dist && shx rm -rf bootstrap-$npm_package_version-dist\"",
 | 
					    "release-zip": "cross-env-shell \"shx cp -r dist/ bootstrap-$npm_package_version-dist && zip -r9 bootstrap-$npm_package_version-dist.zip bootstrap-$npm_package_version-dist && shx rm -rf bootstrap-$npm_package_version-dist\"",
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue