From 36936b0fe51d93fce45b02a40911ef9463784374 Mon Sep 17 00:00:00 2001 From: Phil Kunz Date: Fri, 20 Jan 2017 23:33:24 +0100 Subject: [PATCH] initial --- .gitignore | 5 +++++ .gitlab-ci.yml | 59 +++++++++++++++++++++++++++++++++++++++++++++++++ README.md | 24 ++++++++++++++++++++ dist/index.d.ts | 2 ++ dist/index.js | 6 +++++ package.json | 26 ++++++++++++++++++++++ ts/index.ts | 4 ++++ tslint.json | 3 +++ 8 files changed, 129 insertions(+) create mode 100644 .gitignore create mode 100644 .gitlab-ci.yml create mode 100644 README.md create mode 100644 dist/index.d.ts create mode 100644 dist/index.js create mode 100644 package.json create mode 100644 ts/index.ts create mode 100644 tslint.json diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..91d2f9a --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +node_modules/ +coverage/ +public/ +pages/ + diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..72d25cc --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,59 @@ +image: hosttoday/ht-docker-node:npmts + +stages: +- test +- release +- trigger +- pages + +testLEGACY: + stage: test + script: + - npmci test legacy + tags: + - docker + allow_failure: true + +testLTS: + stage: test + script: + - npmci test lts + tags: + - docker + +testSTABLE: + stage: test + script: + - npmci test stable + tags: + - docker + +release: + stage: release + script: + - npmci publish + only: + - tags + tags: + - docker + +trigger: + stage: trigger + script: + - npmci trigger + only: + - tags + tags: + - docker + +pages: + image: hosttoday/ht-docker-node:npmpage + stage: pages + script: + - npmci command npmpage --publish gitlab + only: + - tags + artifacts: + expire_in: 1 week + paths: + - public diff --git a/README.md b/README.md new file mode 100644 index 0000000..23db2db --- /dev/null +++ b/README.md @@ -0,0 +1,24 @@ +# smartchai +chai + chai as promised with types in place for TypeScript + +## Availabililty +[![npm](https://push.rocks/assets/repo-button-npm.svg)](https://www.npmjs.com/package/smartchai) +[![git](https://push.rocks/assets/repo-button-git.svg)](https://GitLab.com/pushrocks/smartchai) +[![git](https://push.rocks/assets/repo-button-mirror.svg)](https://github.com/pushrocks/smartchai) +[![docs](https://push.rocks/assets/repo-button-docs.svg)](https://pushrocks.gitlab.io/smartchai/) + +## Status for master +[![build status](https://GitLab.com/pushrocks/smartchai/badges/master/build.svg)](https://GitLab.com/pushrocks/smartchai/commits/master) +[![coverage report](https://GitLab.com/pushrocks/smartchai/badges/master/coverage.svg)](https://GitLab.com/pushrocks/smartchai/commits/master) +[![npm downloads per month](https://img.shields.io/npm/dm/smartchai.svg)](https://www.npmjs.com/package/smartchai) +[![Dependency Status](https://david-dm.org/pushrocks/smartchai.svg)](https://david-dm.org/pushrocks/smartchai) +[![bitHound Dependencies](https://www.bithound.io/github/pushrocks/smartchai/badges/dependencies.svg)](https://www.bithound.io/github/pushrocks/smartchai/master/dependencies/npm) +[![bitHound Code](https://www.bithound.io/github/pushrocks/smartchai/badges/code.svg)](https://www.bithound.io/github/pushrocks/smartchai) +[![TypeScript](https://img.shields.io/badge/TypeScript-2.x-blue.svg)](https://nodejs.org/dist/latest-v6.x/docs/api/) +[![node](https://img.shields.io/badge/node->=%206.x.x-blue.svg)](https://nodejs.org/dist/latest-v6.x/docs/api/) +[![JavaScript Style Guide](https://img.shields.io/badge/code%20style-standard-brightgreen.svg)](http://standardjs.com/) + +## Usage +Use TypeScript for best in class instellisense. + +[![npm](https://push.rocks/assets/repo-header.svg)](https://push.rocks) diff --git a/dist/index.d.ts b/dist/index.d.ts new file mode 100644 index 0000000..295b67f --- /dev/null +++ b/dist/index.d.ts @@ -0,0 +1,2 @@ +/// +export declare let expect: Chai.ExpectStatic; diff --git a/dist/index.js b/dist/index.js new file mode 100644 index 0000000..a140436 --- /dev/null +++ b/dist/index.js @@ -0,0 +1,6 @@ +"use strict"; +const chai = require("chai"); +const chaiAsPromised = require("chai-as-promised"); +chai.use(chaiAsPromised); +exports.expect = chai.expect; +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsNkJBQTZCO0FBQzdCLG1EQUFtRDtBQUNuRCxJQUFJLENBQUMsR0FBRyxDQUFDLGNBQWMsQ0FBQyxDQUFBO0FBQ2IsUUFBQSxNQUFNLEdBQUcsSUFBSSxDQUFDLE1BQU0sQ0FBQSJ9 \ No newline at end of file diff --git a/package.json b/package.json new file mode 100644 index 0000000..12b552e --- /dev/null +++ b/package.json @@ -0,0 +1,26 @@ +{ + "name": "smartchai", + "version": "1.0.0", + "description": "chai + chai as promised with types in place for TypeScript", + "main": "dist/index.js", + "typings": "dist/index.d.ts", + "scripts": { + "test": "(npmts)" + }, + "repository": { + "type": "git", + "url": "git+ssh://git@gitlab.com/pushrocks/smartchai.git" + }, + "author": "Lossless GmbH", + "license": "MIT", + "bugs": { + "url": "https://gitlab.com/pushrocks/smartchai/issues" + }, + "homepage": "https://gitlab.com/pushrocks/smartchai#README", + "dependencies": { + "@types/chai": "^3.4.34", + "@types/chai-as-promised": "0.0.29", + "chai": "^3.5.0", + "chai-as-promised": "^6.0.0" + } +} diff --git a/ts/index.ts b/ts/index.ts new file mode 100644 index 0000000..73adeaf --- /dev/null +++ b/ts/index.ts @@ -0,0 +1,4 @@ +import chai = require('chai') +import chaiAsPromised = require('chai-as-promised') +chai.use(chaiAsPromised) +export let expect = chai.expect diff --git a/tslint.json b/tslint.json new file mode 100644 index 0000000..45052ad --- /dev/null +++ b/tslint.json @@ -0,0 +1,3 @@ +{ + "extends": "tslint-config-standard" +}