add some structure

This commit is contained in:
Philipp Kunz 2016-08-15 05:55:09 +02:00
parent c7fc9a641e
commit 7d79f79b6a
9 changed files with 64 additions and 1 deletions

36
.gitlab-ci.yml Normal file
View File

@ -0,0 +1,36 @@
image: hosttoday/ht-docker-node:npmts
stages:
- test
- release
testLEGACY:
stage: test
script:
- npmci test legacy
tags:
- docker
testLTS:
stage: test
script:
- npmci test lts
tags:
- docker
testSTABLE:
stage: test
script:
- npmci test stable
tags:
- docker
release:
stage: release
environment: npmjs-com_registry
script:
- npmci publish
only:
- tags
tags:
- docker

View File

@ -1,2 +1,15 @@
# nodehash # nodehash
simplifies access to node hash functions. TypeScript Ready simplifies access to node hash functions. TypeScript Ready
## Status
[![build status](https://gitlab.com/pushrocks/nodehash/badges/master/build.svg)](https://gitlab.com/pushrocks/nodehash/commits/master)
## Usage
We recommend the use of TypeScript for best in class intellisense.
```typescript
import * as nodehash from "nodehash";
let sha256 = new nodehash.sha256();
let myHashedString = sha256.fromString();
```

1
dist/index.js vendored
View File

@ -1 +1,2 @@
"use strict";
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIn0= //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIn0=

2
dist/nodehash.plugins.d.ts vendored Normal file
View File

@ -0,0 +1,2 @@
import "typings-global";
export import crypto = require("crypto");

4
dist/nodehash.plugins.js vendored Normal file
View File

@ -0,0 +1,4 @@
"use strict";
require("typings-global");
exports.crypto = require("crypto");
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibm9kZWhhc2gucGx1Z2lucy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3RzL25vZGVoYXNoLnBsdWdpbnMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLFFBQU8sZ0JBQWdCLENBQUMsQ0FBQTtBQUNWLGNBQU0sV0FBVyxRQUFRLENBQUMsQ0FBQyJ9

1
npmextra.json Normal file
View File

@ -0,0 +1 @@
{}

View File

@ -3,7 +3,7 @@
"version": "1.0.0", "version": "1.0.0",
"description": "simplifies access to node hash functions", "description": "simplifies access to node hash functions",
"main": "dist/index.js", "main": "dist/index.js",
"typings":"dist/index.d.ts", "typings": "dist/index.d.ts",
"scripts": { "scripts": {
"test": "(npmts)" "test": "(npmts)"
}, },
@ -26,5 +26,8 @@
"npmts-g": "^5.2.8", "npmts-g": "^5.2.8",
"should": "^11.1.0", "should": "^11.1.0",
"typings-test": "^1.0.1" "typings-test": "^1.0.1"
},
"dependencies": {
"typings-global": "^1.0.6"
} }
} }

View File

@ -0,0 +1 @@
import * as plugins from "./nodehash.plugins";

2
ts/nodehash.plugins.ts Normal file
View File

@ -0,0 +1,2 @@
import "typings-global";
export import crypto = require("crypto");