9 Commits

Author SHA1 Message Date
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
7 changed files with 31 additions and 31 deletions

20
.gitignore vendored
View File

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

View File

@ -109,10 +109,10 @@ pages:
image: hosttoday/ht-docker-node:npmci image: hosttoday/ht-docker-node:npmci
stage: metadata stage: metadata
script: script:
- npmci command npm install -g typedoc typescript - npmci command npm install -g @gitzone/tsdoc
- npmci npm prepare - npmci npm prepare
- npmci npm install - npmci npm install
- npmci command typedoc --module "commonjs" --target "ES2016" --out public/ ts/ - npmci command tsdoc
tags: tags:
- docker - docker
- notpriv - notpriv

View File

@ -20,6 +20,14 @@ open things
Use TypeScript for best in class instellisense. 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. 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)

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

2
package-lock.json generated
View File

@ -1,6 +1,6 @@
{ {
"name": "@pushrocks/smartopen", "name": "@pushrocks/smartopen",
"version": "1.0.9", "version": "1.0.14",
"lockfileVersion": 1, "lockfileVersion": 1,
"requires": true, "requires": true,
"dependencies": { "dependencies": {

View File

@ -1,6 +1,6 @@
{ {
"name": "@pushrocks/smartopen", "name": "@pushrocks/smartopen",
"version": "1.0.9", "version": "1.0.14",
"description": "open things", "description": "open things",
"main": "dist/index.js", "main": "dist/index.js",
"typings": "dist/index.d.ts", "typings": "dist/index.d.ts",