update
This commit is contained in:
		
							
								
								
									
										71
									
								
								.gitlab-ci.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										71
									
								
								.gitlab-ci.yml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,71 @@ | ||||
| # gitzone standard | ||||
| image: hosttoday/ht-docker-node:npmci | ||||
|  | ||||
| cache: | ||||
|   paths: | ||||
|   - .yarn/ | ||||
|   key: "$CI_BUILD_STAGE" | ||||
|  | ||||
| stages: | ||||
| - test | ||||
| - release | ||||
| - trigger | ||||
| - pages | ||||
|  | ||||
| testLEGACY: | ||||
|   stage: test | ||||
|   script: | ||||
|     - npmci test legacy | ||||
|   coverage: /\d+.?\d+?\%\s*coverage/ | ||||
|   tags: | ||||
|     - docker | ||||
|   allow_failure: true | ||||
|  | ||||
| testLTS: | ||||
|   stage: test | ||||
|   script: | ||||
|     - npmci test lts | ||||
|   coverage: /\d+.?\d+?\%\s*coverage/ | ||||
|   tags: | ||||
|     - docker | ||||
|      | ||||
| testSTABLE: | ||||
|   stage: test | ||||
|   script: | ||||
|     - npmci test stable | ||||
|   coverage: /\d+.?\d+?\%\s*coverage/ | ||||
|   tags: | ||||
|     - docker | ||||
|  | ||||
| release: | ||||
|   stage: release | ||||
|   script: | ||||
|     - npmci publish | ||||
|   only: | ||||
|     - tags | ||||
|   tags: | ||||
|     - docker | ||||
|  | ||||
| trigger: | ||||
|   stage: trigger | ||||
|   script: | ||||
|     - npmci trigger | ||||
|   only: | ||||
|     - tags | ||||
|   tags: | ||||
|     - docker | ||||
|  | ||||
| pages: | ||||
|   image: hosttoday/ht-docker-node:npmci | ||||
|   stage: pages | ||||
|   script: | ||||
|     - npmci command yarn global add npmpage | ||||
|     - npmci command npmpage --publish gitlab | ||||
|   tags: | ||||
|     - docker | ||||
|   only: | ||||
|     - tags | ||||
|   artifacts: | ||||
|     expire_in: 1 week | ||||
|     paths: | ||||
|     - public | ||||
							
								
								
									
										38
									
								
								README.md
									
									
									
									
									
								
							
							
						
						
									
										38
									
								
								README.md
									
									
									
									
									
								
							| @@ -1,13 +1,37 @@ | ||||
| # remotezip | ||||
| downloads and extracts remote zip files | ||||
| # smartarchive | ||||
| work with archives | ||||
|  | ||||
| ## Availabililty | ||||
| [](https://www.npmjs.com/package/smartarchive) | ||||
| [](https://GitLab.com/pushrocks/smartarchive) | ||||
| [](https://github.com/pushrocks/smartarchive) | ||||
| [](https://pushrocks.gitlab.io/smartarchive/) | ||||
|  | ||||
| ## Status for master | ||||
| [](https://GitLab.com/pushrocks/smartarchive/commits/master) | ||||
| [](https://GitLab.com/pushrocks/smartarchive/commits/master) | ||||
| [](https://www.npmjs.com/package/smartarchive) | ||||
| [](https://david-dm.org/pushrocks/smartarchive) | ||||
| [](https://www.bithound.io/github/pushrocks/smartarchive/master/dependencies/npm) | ||||
| [](https://www.bithound.io/github/pushrocks/smartarchive) | ||||
| [](https://nodejs.org/dist/latest-v6.x/docs/api/) | ||||
| [](https://nodejs.org/dist/latest-v6.x/docs/api/) | ||||
| [](http://standardjs.com/) | ||||
|  | ||||
| ## Usage | ||||
| Use TypeScript for best in class instellisense. | ||||
|  | ||||
| ```javascript | ||||
| var remotezip = require("remotezip"); | ||||
| remotezip.get({ | ||||
| import * as smartarchive from 'smartarchive' | ||||
| smartarchive.get({ | ||||
|     from:"https://example.com/example.zip", | ||||
|     toPath:"/some/local/absolute/path", | ||||
|     cb: someCallback //optional | ||||
| }); | ||||
| }).then(/*...*/) | ||||
| ``` | ||||
|  | ||||
| For non zips there is remotefile. | ||||
| For further information read the linked docs at the top of this README. | ||||
|  | ||||
| > MIT licensed | **©** [Lossless GmbH](https://lossless.gmbh) | ||||
| | By using this npm module you agree to our [privacy policy](https://lossless.gmbH/privacy.html) | ||||
|  | ||||
| [](https://push.rocks) | ||||
|   | ||||
| @@ -1,7 +1,7 @@ | ||||
| { | ||||
|   "name": "smartarchive", | ||||
|   "version": "1.0.3", | ||||
|   "description": "work with remote zip files", | ||||
|   "description": "work with archives", | ||||
|   "main": "index.js", | ||||
|   "scripts": { | ||||
|     "test": "(npmts)", | ||||
|   | ||||
| @@ -1,5 +1,3 @@ | ||||
| /// <reference path="./typings/main.d.ts" /> | ||||
|  | ||||
| import plugins = require("./smartarchive.plugins"); | ||||
|  | ||||
| var smartarchive = { | ||||
|   | ||||
							
								
								
									
										3
									
								
								tslint.json
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								tslint.json
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,3 @@ | ||||
| { | ||||
|     "extends": "tslint-config-standard" | ||||
| } | ||||
		Reference in New Issue
	
	Block a user