version bump 1.3.1: npm minutiae
This commit is contained in:
		
							parent
							
								
									7847c20022
								
							
						
					
					
						commit
						d8b2f48bd9
					
				
							
								
								
									
										37
									
								
								Makefile
									
									
									
									
									
								
							
							
								
								
								
								
								
									
									
								
							
						
						
									
										37
									
								
								Makefile
									
									
									
									
									
								
							| @ -12,6 +12,13 @@ FLOWTARGET=$(LIB).flow.js | ||||
| MJSTARGET=$(LIB).mjs | ||||
| FLOWTGTS=$(TARGET) $(AUXTARGETS) | ||||
| CLOSURE=/usr/local/lib/node_modules/google-closure-compiler/compiler.jar | ||||
| UGLIFY="./node_modules/@sheetjs/uglify-js/bin/uglifyjs" | ||||
| JSCS=./node_modules/.bin/jscs | ||||
| JSHINT=./node_modules/.bin/jshint | ||||
| MOCHA=./node_modules/.bin/mocha | ||||
| ESLINT=./node_modules/.bin/eslint | ||||
| ALEX=./node_modules/.bin/alex | ||||
| MDSPELL=./node_modules/.bin/mdspell | ||||
| 
 | ||||
| ## Main Targets
 | ||||
| 
 | ||||
| @ -37,18 +44,22 @@ clean: clean-stress ## Remove targets and build artifacts | ||||
| 	@OUTDIR=$(PWD)/lib make -C bits clean | ||||
| 	rm -f $(TARGET) $(FLOWTARGET) | ||||
| 
 | ||||
| .PHONY: init | ||||
| init: ## Initial setup for development
 | ||||
| 	npm i | ||||
| 
 | ||||
| .PHONY: dist | ||||
| dist: $(TARGET) ## Prepare JS files for distribution
 | ||||
| 	cp $(TARGET) dist/ | ||||
| 	cp LICENSE dist/ | ||||
| 	uglifyjs $(TARGET) -o dist/$(LIB).min.js --source-map dist/$(LIB).min.map --preamble "$$(head -n 1 bits/00_header.js)" | ||||
| 	$(UGLIFY) $(TARGET) -o dist/$(LIB).min.js --source-map dist/$(LIB).min.map --preamble "$$(head -n 1 bits/00_header.js)" | ||||
| 	misc/strip_sourcemap.sh dist/$(LIB).min.js | ||||
| 
 | ||||
| ## Testing
 | ||||
| 
 | ||||
| .PHONY: test mocha | ||||
| test mocha: test.js $(TARGET) ## Run test suite
 | ||||
| 	mocha -R spec -t 20000 | ||||
| 	$(MOCHA) -R spec -t 20000 | ||||
| 
 | ||||
| .PHONY: ctest | ||||
| ctest: ## Build browser test (into ctest/ subdirectory)
 | ||||
| @ -73,20 +84,20 @@ clean-stress: ## Remove stress tests | ||||
| ## Code Checking
 | ||||
| 
 | ||||
| .PHONY: fullint | ||||
| fullint: lint old-lint tslint flow mdlint ## Run all checks
 | ||||
| fullint: lint old-lint tslint mdlint ## Run all checks
 | ||||
| 
 | ||||
| .PHONY: lint | ||||
| lint: $(TARGET) ## Run eslint checks
 | ||||
| 	@eslint --ext .js,.njs,.json,.html,.htm $(TARGET) $(AUXTARGETS) $(CMDS) $(HTMLLINT) package.json | ||||
| 	@$(ESLINT) --ext .js,.njs,.json,.html,.htm $(TARGET) $(AUXTARGETS) $(CMDS) $(HTMLLINT) package.json | ||||
| 	if [ -e $(CLOSURE) ]; then java -jar $(CLOSURE) $(FLOWTARGET) --jscomp_warning=reportUnknownTypes >/dev/null; fi | ||||
| 
 | ||||
| .PHONY: old-lint | ||||
| old-lint: $(TARGET) ## Run jshint and jscs checks
 | ||||
| 	@jshint --show-non-errors $(TARGET) $(AUXTARGETS) | ||||
| 	@jshint --show-non-errors $(CMDS) | ||||
| 	@jshint --show-non-errors package.json | ||||
| 	@jshint --show-non-errors --extract=always $(HTMLLINT) | ||||
| 	@jscs lib/*.js | ||||
| 	@$(JSHINT) --show-non-errors $(TARGET) $(AUXTARGETS) | ||||
| 	@$(JSHINT) --show-non-errors $(CMDS) | ||||
| 	@$(JSHINT) --show-non-errors package.json | ||||
| 	@$(JSHINT) --show-non-errors --extract=always $(HTMLLINT) | ||||
| 	@$(JSCS) lib/*.js | ||||
| 	if [ -e $(CLOSURE) ]; then java -jar $(CLOSURE) $(FLOWTARGET) --jscomp_warning=reportUnknownTypes >/dev/null; fi | ||||
| 
 | ||||
| .PHONY: tslint | ||||
| @ -102,17 +113,17 @@ flow: lint ## Run flow checker | ||||
| cov: misc/coverage.html ## Run coverage test
 | ||||
| 
 | ||||
| misc/coverage.html: $(TARGET) test.js | ||||
| 	mocha --require blanket -R html-cov -t 20000 > $@ | ||||
| 	$(MOCHA) --require blanket -R html-cov -t 20000 > $@ | ||||
| 
 | ||||
| .PHONY: coveralls | ||||
| coveralls: ## Coverage Test + Send to coveralls.io
 | ||||
| 	mocha --require blanket --reporter mocha-lcov-reporter -t 20000 | node ./node_modules/coveralls/bin/coveralls.js | ||||
| 	$(MOCHA) --require blanket --reporter mocha-lcov-reporter -t 20000 | node ./node_modules/coveralls/bin/coveralls.js | ||||
| 
 | ||||
| MDLINT=README.md | ||||
| .PHONY: mdlint | ||||
| mdlint: $(MDLINT) ## Check markdown documents
 | ||||
| 	alex $^ | ||||
| 	mdspell -a -n -x -r --en-us $^ | ||||
| 	$(ALEX) $^ | ||||
| 	$(MDSPELL) -a -n -x -r --en-us $^ | ||||
| 
 | ||||
| .PHONY: help | ||||
| help: | ||||
|  | ||||
| @ -1,5 +1,5 @@ | ||||
| #!/usr/bin/env node | ||||
| /* printj.js (C) 2016-present SheetJS -- http://sheetjs.com */ | ||||
| /* printj.js (C) 2016-present SheetJS -- https://sheetjs.com */ | ||||
| /* eslint-env node */ | ||||
| /* vim: set ts=2 ft=javascript: */ | ||||
| /*jshint node:true, evil:true */ | ||||
| @ -28,8 +28,7 @@ function help() { | ||||
| "    $ printj '|%s is %s|' s:1+2 e:1+2                # |1+2 is 3|", | ||||
| "    $ printj '|%c %c|' s:69 n:69                     # |6 E|", | ||||
| "", | ||||
| "Support email: dev@sheetjs.com", | ||||
| "Web Demo: http://oss.sheetjs.com/printj/" | ||||
| "Web Demo: https://oss.sheetjs.com/printj/" | ||||
| ].forEach(function(l) { console.log(l); }); | ||||
| 	return 0; | ||||
| } | ||||
|  | ||||
| @ -1 +1 @@ | ||||
| PRINTJ.version = '1.3.0'; | ||||
| PRINTJ.version = '1.3.1'; | ||||
|  | ||||
							
								
								
									
										2
									
								
								dist/printj.js
									
									
									
									
										vendored
									
									
								
							
							
								
								
								
								
								
									
									
								
							
						
						
									
										2
									
								
								dist/printj.js
									
									
									
									
										vendored
									
									
								
							| @ -25,7 +25,7 @@ var PRINTJ; | ||||
| 	/*jshint ignore:end */ | ||||
| }(function(PRINTJ) { | ||||
| 
 | ||||
| PRINTJ.version = '1.3.0'; | ||||
| PRINTJ.version = '1.3.1'; | ||||
| 
 | ||||
| var tcache = {}; | ||||
| 
 | ||||
|  | ||||
							
								
								
									
										2
									
								
								dist/printj.min.js
									
									
									
									
										vendored
									
									
								
							
							
								
								
								
								
								
									
									
								
							
						
						
									
										2
									
								
								dist/printj.min.js
									
									
									
									
										vendored
									
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							| @ -7,7 +7,7 @@ | ||||
| 
 | ||||
| var PRINTJ/*:PRINTJModule*/ = /*::(*/{}/*:: :any)*/; | ||||
| 
 | ||||
| PRINTJ.version = '1.3.0'; | ||||
| PRINTJ.version = '1.3.1'; | ||||
| 
 | ||||
| export const version = PRINTJ.version; | ||||
| 
 | ||||
|  | ||||
							
								
								
									
										21
									
								
								package.json
									
									
									
									
									
								
							
							
								
								
								
								
								
									
									
								
							
						
						
									
										21
									
								
								package.json
									
									
									
									
									
								
							| @ -1,6 +1,6 @@ | ||||
| { | ||||
| 	"name": "printj", | ||||
| 	"version": "1.3.0", | ||||
| 	"version": "1.3.1", | ||||
| 	"author": "sheetjs", | ||||
| 	"description": "Pure-JS printf", | ||||
| 	"keywords": [ | ||||
| @ -10,10 +10,10 @@ | ||||
| 		"string" | ||||
| 	], | ||||
| 	"bin": { | ||||
| 		"printj": "./bin/printj.njs" | ||||
| 		"printj": "bin/printj.njs" | ||||
| 	}, | ||||
| 	"main": "./printj", | ||||
| 	"module": "./printj.mjs", | ||||
| 	"main": "printj.js", | ||||
| 	"module": "printj.mjs", | ||||
| 	"types": "types", | ||||
| 	"browser": { | ||||
| 		"process": false, | ||||
| @ -24,10 +24,16 @@ | ||||
| 	"devDependencies": { | ||||
| 		"@sheetjs/uglify-js": "~2.7.3", | ||||
| 		"@types/node": "^8.0.7", | ||||
| 		"alex": "10.0.0", | ||||
| 		"blanket": "~1.2.3", | ||||
| 		"dtslint": "^0.1.2", | ||||
| 		"mocha": "~2.5.3", | ||||
| 		"typescript": "2.2.0" | ||||
| 		"dtslint": "4.2.1", | ||||
| 		"eslint": "6.8.0", | ||||
| 		"eslint-plugin-html": "6.0.0", | ||||
| 		"eslint-plugin-json": "1.4.0", | ||||
| 		"jscs": "3.0.7", | ||||
| 		"jshint": "2.9.6", | ||||
| 		"markdown-spellcheck": "1.3.1", | ||||
| 		"mocha": "~2.5.3" | ||||
| 	}, | ||||
| 	"repository": { | ||||
| 		"type": "git", | ||||
| @ -46,6 +52,7 @@ | ||||
| 	}, | ||||
| 	"alex": { | ||||
| 		"allow": [ | ||||
| 			"whitespace", | ||||
| 			"special", | ||||
| 			"period", | ||||
| 			"just", | ||||
|  | ||||
| @ -28,7 +28,7 @@ var PRINTJ/*:PRINTJModule*/; | ||||
| 	/*jshint ignore:end */ | ||||
| }(function(PRINTJ/*:PRINTJModule*/) { | ||||
| 
 | ||||
| PRINTJ.version = '1.3.0'; | ||||
| PRINTJ.version = '1.3.1'; | ||||
| 
 | ||||
| var tcache = {}; | ||||
| 
 | ||||
|  | ||||
| @ -25,7 +25,7 @@ var PRINTJ; | ||||
| 	/*jshint ignore:end */ | ||||
| }(function(PRINTJ) { | ||||
| 
 | ||||
| PRINTJ.version = '1.3.0'; | ||||
| PRINTJ.version = '1.3.1'; | ||||
| 
 | ||||
| var tcache = {}; | ||||
| 
 | ||||
|  | ||||
| @ -7,7 +7,7 @@ | ||||
| 
 | ||||
| var PRINTJ/*:PRINTJModule*/ = /*::(*/{}/*:: :any)*/; | ||||
| 
 | ||||
| PRINTJ.version = '1.3.0'; | ||||
| PRINTJ.version = '1.3.1'; | ||||
| 
 | ||||
| export const version = PRINTJ.version; | ||||
| 
 | ||||
|  | ||||
| @ -34,7 +34,7 @@ return 0; | ||||
| 
 | ||||
| function parse_arg(arg: string): any { | ||||
| 	const m: string = arg.substr(2); | ||||
| 	let p: number = 0; | ||||
| 	let p = 0; | ||||
| 	if(arg.charCodeAt(1) === 58) switch((p = arg.charCodeAt(0))) { | ||||
| 		case /*n*/ 110: return parseInt(m, 10); | ||||
| 		case /*f*/ 102: return parseFloat(m); | ||||
|  | ||||
							
								
								
									
										1
									
								
								types/index.d.ts
									
									
									
									
										vendored
									
									
								
							
							
								
								
								
								
								
									
									
								
							
						
						
									
										1
									
								
								types/index.d.ts
									
									
									
									
										vendored
									
									
								
							| @ -1,5 +1,4 @@ | ||||
| /* index.d.ts (C) 2015-present SheetJS */ | ||||
| // TypeScript Version: 2.2
 | ||||
| 
 | ||||
| /** Version string */ | ||||
| export const version: string; | ||||
|  | ||||
| @ -9,6 +9,7 @@ | ||||
|         "paths": { "printj": ["."] }, | ||||
|         "types": [], | ||||
|         "noEmit": true, | ||||
|         "strictFunctionTypes": true, | ||||
|         "forceConsistentCasingInFileNames": true | ||||
|     } | ||||
| } | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user