20 Commits

Author SHA1 Message Date
c446c50d75 1.0.20 2019-06-04 11:46:17 +02:00
0ccff2a370 fix(core): update 2019-06-04 11:46:16 +02:00
1b54d2ca30 1.0.19 2019-06-04 11:41:48 +02:00
691e78ecbc fix(core): update 2019-06-04 11:41:47 +02:00
e42cdcf339 1.0.18 2019-06-04 11:33:38 +02:00
49c56c3d53 fix(core): update 2019-06-04 11:33:38 +02:00
18454e53dc 1.0.17 2019-06-04 11:27:28 +02:00
4d219d37d7 1.0.16 2019-06-04 11:25:51 +02:00
42e6898dc5 fix(core): update 2019-06-04 11:25:51 +02:00
67b0d0bd37 1.0.15 2019-05-23 15:53:30 +02:00
f9054f6bfd fix(core): remove obsolete @types/open 2019-05-23 15:53:30 +02:00
b959d8566e 1.0.14 2019-05-23 15:52:30 +02:00
86632619fd fix(core): update 2019-05-23 15:52:30 +02:00
ac05c11927 1.0.13 2019-05-23 15:50:48 +02:00
4cab83991b 1.0.12 2019-04-16 08:28:49 +02:00
33f76aeca8 fix(core): update 2019-04-16 08:28:49 +02:00
36fd64f0e7 1.0.11 2019-04-16 08:27:54 +02:00
7256714541 fix(core): update 2019-04-16 08:27:54 +02:00
00dc400849 1.0.10 2019-04-16 08:27:12 +02:00
bd17352fd4 fix(core): update 2019-04-16 08:27:12 +02:00
9 changed files with 518 additions and 395 deletions

20
.gitignore vendored
View File

@ -1,4 +1,22 @@
node_modules/
.nogit/
# artifacts
coverage/
public/
pages/
# installs
node_modules/
# caches
.yarn/
.cache/
.rpt2_cache
# builds
dist/
dist_web/
dist_serve/
dist_ts_web/
# custom

View File

@ -1,4 +1,4 @@
# gitzone standard
# gitzone ci_default
image: hosttoday/ht-docker-node:npmci
cache:
@ -78,19 +78,10 @@ release:
# ====================
codequality:
stage: metadata
image: docker:stable
allow_failure: true
services:
- docker:stable-dind
script:
- export SP_VERSION=$(echo "$CI_SERVER_VERSION" | sed 's/^\([0-9]*\)\.\([0-9]*\).*/\1-\2-stable/')
- docker run
--env SOURCE_CODE="$PWD"
--volume "$PWD":/code
--volume /var/run/docker.sock:/var/run/docker.sock
"registry.gitlab.com/gitlab-org/security-products/codequality:$SP_VERSION" /code
artifacts:
paths: [codeclimate.json]
- npm install -g tslint typescript
- tslint -c tslint.json ./ts/**/*.ts
tags:
- docker
- priv
@ -109,10 +100,10 @@ pages:
image: hosttoday/ht-docker-node:npmci
stage: metadata
script:
- npmci command npm install -g typedoc typescript
- npmci command npm install -g @gitzone/tsdoc
- npmci npm prepare
- npmci npm install
- npmci command typedoc --module "commonjs" --target "ES2016" --out public/ ts/
- npmci command tsdoc
tags:
- docker
- notpriv

View File

@ -20,6 +20,14 @@ open things
Use TypeScript for best in class instellisense.
```typescript
import * as smartopen from '@pushrocks/smartopen';
const run = async () => {
await smartopen.openUrl('https://lossless.com');
};
run();
```
For further information read the linked docs at the top of this readme.
> MIT licensed | **©** [Lossless GmbH](https://lossless.gmbh)

3
dist/index.d.ts vendored
View File

@ -1,3 +0,0 @@
/// <reference types="node" />
import { ChildProcess } from 'child_process';
export declare let openUrl: (urlArg: any) => Promise<ChildProcess>;

23
dist/index.js vendored
View File

@ -1,23 +0,0 @@
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
};
Object.defineProperty(exports, "__esModule", { value: true });
const open = require("opn");
exports.openUrl = (urlArg) => __awaiter(this, void 0, void 0, function* () {
if (!(process.env.CI === 'true')) {
const childProcess = yield open(urlArg, {
wait: false
});
return childProcess;
}
else {
return null;
}
});
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7O0FBQUEsNEJBQTZCO0FBR2xCLFFBQUEsT0FBTyxHQUFHLENBQU0sTUFBTSxFQUFDLEVBQUU7SUFDbEMsSUFBRyxDQUFDLENBQUMsT0FBTyxDQUFDLEdBQUcsQ0FBQyxFQUFFLEtBQUssTUFBTSxDQUFDLEVBQUU7UUFDL0IsTUFBTSxZQUFZLEdBQUcsTUFBTSxJQUFJLENBQUMsTUFBTSxFQUFFO1lBQ3RDLElBQUksRUFBRSxLQUFLO1NBQ1osQ0FBQyxDQUFDO1FBQ0gsT0FBTyxZQUFZLENBQUM7S0FDckI7U0FBTTtRQUNMLE9BQU8sSUFBSSxDQUFBO0tBQ1o7QUFDSCxDQUFDLENBQUEsQ0FBQyJ9

View File

@ -1,10 +1,6 @@
{
"npmci": {
"npmGlobalTools": [
"npmts",
"ts-node",
"typescript"
],
"npmGlobalTools": [],
"npmAccessLevel": "public"
},
"npmts": {

804
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +1,6 @@
{
"name": "@pushrocks/smartopen",
"version": "1.0.9",
"version": "1.0.20",
"description": "open things",
"main": "dist/index.js",
"typings": "dist/index.d.ts",
@ -22,15 +22,25 @@
},
"homepage": "https://gitlab.com/pushrocks/smartopen#README",
"dependencies": {
"@types/open": "^0.0.29",
"@types/opn": "^5.1.0",
"opn": "^5.3.0"
"opn": "^6.0.0"
},
"devDependencies": {
"@gitzone/tsbuild": "^2.1.8",
"@gitzone/tstest": "^1.0.20",
"@types/node": "^10.1.2",
"tapbundle": "^2.0.0"
"@gitzone/tsbuild": "^2.1.11",
"@gitzone/tstest": "^1.0.24",
"@pushrocks/tapbundle": "^3.0.9",
"@types/node": "^12.0.4",
"tslint": "^5.17.0",
"tslint-config-prettier": "^1.18.0"
},
"private": true
"private": false,
"files": [
"ts/*",
"ts_web/*",
"dist/*",
"dist_web/*",
"assets/*",
"cli.js",
"npmextra.json",
"readme.md"
]
}

View File

@ -1,4 +1,4 @@
import open = require('opn');
import open from 'opn';
import { ChildProcess } from 'child_process';
export let openUrl = async urlArg => {