fix(core): update
This commit is contained in:
		| @@ -37,18 +37,6 @@ snyk: | |||||||
| # ==================== | # ==================== | ||||||
| # test stage | # test stage | ||||||
| # ==================== | # ==================== | ||||||
| testLEGACY: |  | ||||||
|   stage: test |  | ||||||
|   script: |  | ||||||
|   - npmci npm prepare |  | ||||||
|   - npmci node install legacy |  | ||||||
|   - npmci npm install |  | ||||||
|   - npmci npm test |  | ||||||
|   coverage: /\d+.?\d+?\%\s*coverage/ |  | ||||||
|   tags: |  | ||||||
|   - docker |  | ||||||
|   - notpriv |  | ||||||
|   allow_failure: true |  | ||||||
|  |  | ||||||
| testLTS: | testLTS: | ||||||
|   stage: test |   stage: test | ||||||
|   | |||||||
							
								
								
									
										31
									
								
								README.md
									
									
									
									
									
								
							
							
						
						
									
										31
									
								
								README.md
									
									
									
									
									
								
							| @@ -1,24 +1,20 @@ | |||||||
| # @pushrocks/smartfile | # @pushrocks/smartfile | ||||||
|  | smart ways to work with files in nodejs | ||||||
|  |  | ||||||
| make files easily accessible for processing in javascript. | ## Availabililty and Links | ||||||
|  | * [npmjs.org (npm package)](https://www.npmjs.com/package/@pushrocks/smartfile) | ||||||
| ## Availabililty | * [gitlab.com (source)](https://gitlab.com/pushrocks/smartfile) | ||||||
|  | * [github.com (source mirror)](https://github.com/pushrocks/smartfile) | ||||||
| [](https://www.npmjs.com/package/smartfile) | * [docs (typedoc)](https://pushrocks.gitlab.io/smartfile/) | ||||||
| [](https://gitlab.com/pushrocks/smartfile) |  | ||||||
| [](https://github.com/pushrocks/smartfile) |  | ||||||
| [](https://pushrocks.gitlab.io/smartfile/) |  | ||||||
|  |  | ||||||
| ## Status for master | ## Status for master | ||||||
|  |  | ||||||
| [](https://gitlab.com/pushrocks/smartfile/commits/master) | [](https://gitlab.com/pushrocks/smartfile/commits/master) | ||||||
| [](https://gitlab.com/pushrocks/smartfile/commits/master) | [](https://gitlab.com/pushrocks/smartfile/commits/master) | ||||||
| [](https://david-dm.org/pushrocks/smartfile) | [](https://www.npmjs.com/package/@pushrocks/smartfile) | ||||||
| [](https://www.bithound.io/github/pushrocks/smartfile/master/dependencies/npm) | [](https://snyk.io/test/npm/@pushrocks/smartfile) | ||||||
| [](https://www.bithound.io/github/pushrocks/smartfile) | [](https://nodejs.org/dist/latest-v10.x/docs/api/) | ||||||
| [](https://nodejs.org/dist/latest-v6.x/docs/api/) | [](https://nodejs.org/dist/latest-v10.x/docs/api/) | ||||||
| [](https://nodejs.org/dist/latest-v6.x/docs/api/) | [](https://prettier.io/) | ||||||
| [](http://standardjs.com/) |  | ||||||
|  |  | ||||||
| ## Usage | ## Usage | ||||||
|  |  | ||||||
| @@ -36,8 +32,9 @@ smartfile thinks in sections: | |||||||
| | interpreter | (object) handles yaml and json                                               | | | interpreter | (object) handles yaml and json                                               | | ||||||
| | smartfile   | (class) a virtual representation of a file, alternative to vinyl file format | | | smartfile   | (class) a virtual representation of a file, alternative to vinyl file format | | ||||||
|  |  | ||||||
| For further information read the linked docs at the top of this README. | For further information read the linked docs at the top of this readme. | ||||||
|  |  | ||||||
| > MIT licensed | **©** [Lossless GmbH](https://lossless.gmbh) | > 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) | [](https://maintainedby.lossless.com) | ||||||
|   | |||||||
| @@ -1,13 +1,21 @@ | |||||||
| { | { | ||||||
|   "npmts":{ |   "npmts": { | ||||||
|     "mode":"default", |     "mode": "default", | ||||||
|     "coverageTreshold":70 |     "coverageTreshold": 70 | ||||||
|   }, |  | ||||||
|   "npmdocker":{ |  | ||||||
|      |  | ||||||
|   }, |   }, | ||||||
|  |   "npmdocker": {}, | ||||||
|   "npmci": { |   "npmci": { | ||||||
|     "npmGlobalTools": [], |     "npmGlobalTools": [], | ||||||
|     "npmAccessLevel": "public" |     "npmAccessLevel": "public" | ||||||
|  |   }, | ||||||
|  |   "gitzone": { | ||||||
|  |     "module": { | ||||||
|  |       "githost": "gitlab.com", | ||||||
|  |       "gitscope": "pushrocks", | ||||||
|  |       "gitrepo": "smartfile", | ||||||
|  |       "shortDescription": "smart ways to work with files in nodejs", | ||||||
|  |       "npmPackagename": "@pushrocks/smartfile", | ||||||
|  |       "license": "MIT" | ||||||
|  |     } | ||||||
|   } |   } | ||||||
| } | } | ||||||
| @@ -48,4 +48,4 @@ | |||||||
|     "tslint": "^5.15.0", |     "tslint": "^5.15.0", | ||||||
|     "tslint-config-prettier": "^1.18.0" |     "tslint-config-prettier": "^1.18.0" | ||||||
|   } |   } | ||||||
| } | } | ||||||
| @@ -22,7 +22,7 @@ export class Smartfile { | |||||||
|    * creates a Smartfile from a filePath |    * creates a Smartfile from a filePath | ||||||
|    * @param filePath |    * @param filePath | ||||||
|    */ |    */ | ||||||
|   public static async fromFilePath (filePath: string) { |   public static async fromFilePath(filePath: string) { | ||||||
|     filePath = plugins.path.resolve(filePath); |     filePath = plugins.path.resolve(filePath); | ||||||
|     const fileString = fs.toStringSync(filePath); |     const fileString = fs.toStringSync(filePath); | ||||||
|     const smartfile = new Smartfile({ |     const smartfile = new Smartfile({ | ||||||
| @@ -32,7 +32,6 @@ export class Smartfile { | |||||||
|     return smartfile; |     return smartfile; | ||||||
|   } |   } | ||||||
|  |  | ||||||
|  |  | ||||||
|   // ======== |   // ======== | ||||||
|   // INSTANCE |   // INSTANCE | ||||||
|   // ======== |   // ======== | ||||||
|   | |||||||
| @@ -266,7 +266,7 @@ export let listFolders = async (pathArg: string, regexFilter?: RegExp): Promise< | |||||||
|  * @returns an array with the folder names as strings |  * @returns an array with the folder names as strings | ||||||
|  */ |  */ | ||||||
| export let listFoldersSync = (pathArg: string, regexFilter?: RegExp): string[] => { | export let listFoldersSync = (pathArg: string, regexFilter?: RegExp): string[] => { | ||||||
|   let folderArray = plugins.fsExtra.readdirSync(pathArg).filter((file) => { |   let folderArray = plugins.fsExtra.readdirSync(pathArg).filter(file => { | ||||||
|     return plugins.fsExtra.statSync(plugins.path.join(pathArg, file)).isDirectory(); |     return plugins.fsExtra.statSync(plugins.path.join(pathArg, file)).isDirectory(); | ||||||
|   }); |   }); | ||||||
|   if (regexFilter) { |   if (regexFilter) { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user