Compare commits

..

4 Commits

Author SHA1 Message Date
96168fd870 5.0.4 2022-03-14 15:24:17 +01:00
e81c37e60a fix(core): update 2022-03-14 15:24:16 +01:00
87454d41da 5.0.3 2022-03-14 15:15:23 +01:00
97ae2d87b1 fix(core): update 2022-03-14 15:15:23 +01:00
6 changed files with 48 additions and 9 deletions

View File

@ -123,9 +123,9 @@ trigger:
pages:
stage: metadata
script:
- npmci node install lts
- npmci command npm install -g @gitzone/tsdoc
- npmci node install stable
- npmci npm prepare
- npmci command npm install -g @gitzone/tsdoc
- npmci npm install
- npmci command tsdoc
tags:

22
license Normal file
View File

@ -0,0 +1,22 @@
The MIT License (MIT)
Copyright (c) 2015 Lossless GmbH
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

4
package-lock.json generated
View File

@ -1,12 +1,12 @@
{
"name": "@pushrocks/smartpath",
"version": "5.0.2",
"version": "5.0.4",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "@pushrocks/smartpath",
"version": "5.0.2",
"version": "5.0.4",
"license": "MIT",
"devDependencies": {
"@gitzone/tsbuild": "^2.1.48",

View File

@ -1,6 +1,6 @@
{
"name": "@pushrocks/smartpath",
"version": "5.0.2",
"version": "5.0.4",
"private": false,
"description": "offers smart ways to handle paths",
"main": "dist_ts/index.js",

View File

@ -1,4 +1,4 @@
import * as plugins from './smartpath.plugins.js'
import * as plugins from './smartpath.plugins.js';
export type TPathType = 'url' | 'local';
/**
@ -16,14 +16,14 @@ export const type = (pathStringArg: string): TPathType => {
/**
* gets the dirname from import.meta.url
*/
export const getDirnameFromImportMetaUrl = (importMetaUrlArg: string) => {
export const dirnameFromImportMetaUrl = (importMetaUrlArg: string) => {
return plugins.path.dirname(plugins.url.fileURLToPath(importMetaUrlArg));
}
};
/**
* returns homedir as absolute path
* @param pathArgument if a pathargument is given, ~ is being replaced with the homedir
* @returns
* @returns
*/
export const home = (pathArgument?: string) => {
if (pathArgument) {

17
tslint.json Normal file
View File

@ -0,0 +1,17 @@
{
"extends": ["tslint:latest", "tslint-config-prettier"],
"rules": {
"semicolon": [true, "always"],
"no-console": false,
"ordered-imports": false,
"object-literal-sort-keys": false,
"member-ordering": {
"options":{
"order": [
"static-method"
]
}
}
},
"defaultSeverity": "warning"
}