From 063eeaaa7f391ce499129ba56684f2980ee2445b Mon Sep 17 00:00:00 2001 From: Phil Kunz Date: Fri, 24 Mar 2017 01:42:59 +0100 Subject: [PATCH] initial --- .gitignore | 0 .gitlab-ci.yml | 71 ++++++++++++++++++++++++++++++++++++ README.md | 29 +++++++++++++++ coverage/coverage-final.json | 2 + coverage/lcov.info | 0 dist/index.d.ts | 2 + dist/index.js | 5 +++ package.json | 28 ++++++++++++++ test/test.d.ts | 0 test/test.js | 3 ++ test/test.ts | 1 + ts/index.ts | 5 +++ tslint.json | 3 ++ yarn.lock | 11 ++++++ 14 files changed, 160 insertions(+) create mode 100644 .gitignore create mode 100644 .gitlab-ci.yml create mode 100644 README.md create mode 100644 coverage/coverage-final.json create mode 100644 coverage/lcov.info create mode 100644 dist/index.d.ts create mode 100644 dist/index.js create mode 100644 package.json create mode 100644 test/test.d.ts create mode 100644 test/test.js create mode 100644 test/test.ts create mode 100644 ts/index.ts create mode 100644 tslint.json create mode 100644 yarn.lock diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e69de29 diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..d910736 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,71 @@ +# gitzone standard +image: hosttoday/ht-docker-node:npmci + +cache: + paths: + - .yarn/ + key: "$CI_BUILD_STAGE" + +stages: +- test +- release +- trigger +- pages + +testLEGACY: + stage: test + script: + - npmci test legacy + coverage: /\d+.?\d+?\%\s*coverage/ + tags: + - docker + allow_failure: true + +testLTS: + stage: test + script: + - npmci test lts + coverage: /\d+.?\d+?\%\s*coverage/ + tags: + - docker + +testSTABLE: + stage: test + script: + - npmci test stable + coverage: /\d+.?\d+?\%\s*coverage/ + 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:npmci + stage: pages + script: + - npmci command yarn global add npmpage + - npmci command npmpage --publish gitlab + tags: + - docker + only: + - tags + artifacts: + expire_in: 1 week + paths: + - public diff --git a/README.md b/README.md new file mode 100644 index 0000000..ff94f66 --- /dev/null +++ b/README.md @@ -0,0 +1,29 @@ +# smartlodash +lodash with typings + +## Availabililty +[![npm](https://pushrocks.gitlab.io/assets/repo-button-npm.svg)](https://www.npmjs.com/package/smartlodash) +[![git](https://pushrocks.gitlab.io/assets/repo-button-git.svg)](https://GitLab.com/pushrocks/smartlodash) +[![git](https://pushrocks.gitlab.io/assets/repo-button-mirror.svg)](https://github.com/pushrocks/smartlodash) +[![docs](https://pushrocks.gitlab.io/assets/repo-button-docs.svg)](https://pushrocks.gitlab.io/smartlodash/) + +## Status for master +[![build status](https://GitLab.com/pushrocks/smartlodash/badges/master/build.svg)](https://GitLab.com/pushrocks/smartlodash/commits/master) +[![coverage report](https://GitLab.com/pushrocks/smartlodash/badges/master/coverage.svg)](https://GitLab.com/pushrocks/smartlodash/commits/master) +[![npm downloads per month](https://img.shields.io/npm/dm/smartlodash.svg)](https://www.npmjs.com/package/smartlodash) +[![Dependency Status](https://david-dm.org/pushrocks/smartlodash.svg)](https://david-dm.org/pushrocks/smartlodash) +[![bitHound Dependencies](https://www.bithound.io/github/pushrocks/smartlodash/badges/dependencies.svg)](https://www.bithound.io/github/pushrocks/smartlodash/master/dependencies/npm) +[![bitHound Code](https://www.bithound.io/github/pushrocks/smartlodash/badges/code.svg)](https://www.bithound.io/github/pushrocks/smartlodash) +[![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. + +For further information read the linked docs at the top of this README. + +> MIT licensed | **©** [Lossless GmbH](https://lossless.gmbh) +| By using this npm module you agree to our [privacy policy](https://lossless.gmbH/privacy.html) + +[![repo-footer](https://pushrocks.gitlab.io/assets/repo-footer.svg)](https://push.rocks) diff --git a/coverage/coverage-final.json b/coverage/coverage-final.json new file mode 100644 index 0000000..2c63c08 --- /dev/null +++ b/coverage/coverage-final.json @@ -0,0 +1,2 @@ +{ +} diff --git a/coverage/lcov.info b/coverage/lcov.info new file mode 100644 index 0000000..e69de29 diff --git a/dist/index.d.ts b/dist/index.d.ts new file mode 100644 index 0000000..bdd83c5 --- /dev/null +++ b/dist/index.d.ts @@ -0,0 +1,2 @@ +import * as lodash from 'lodash'; +export { lodash }; diff --git a/dist/index.js b/dist/index.js new file mode 100644 index 0000000..a7e2eaa --- /dev/null +++ b/dist/index.js @@ -0,0 +1,5 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const lodash = require("lodash"); +exports.lodash = lodash; +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLGlDQUFnQztBQUc1Qix3QkFBTSJ9 \ No newline at end of file diff --git a/package.json b/package.json new file mode 100644 index 0000000..d2a2d3f --- /dev/null +++ b/package.json @@ -0,0 +1,28 @@ +{ + "name": "smartlodash", + "version": "1.0.0", + "description": "lodash with typings", + "main": "dist/index.js", + "typings": "dist/index.d.ts", + "scripts": { + "test": "(npmts)" + }, + "repository": { + "type": "git", + "url": "git+ssh://git@gitlab.com/pushrocks/smartlodash.git" + }, + "keywords": [ + "lodash", + "typings" + ], + "author": "Lossless GmbH", + "license": "MIT", + "bugs": { + "url": "https://gitlab.com/pushrocks/smartlodash/issues" + }, + "homepage": "https://gitlab.com/pushrocks/smartlodash#README", + "dependencies": { + "@types/lodash": "^4.14.56", + "lodash": "^4.17.4" + } +} diff --git a/test/test.d.ts b/test/test.d.ts new file mode 100644 index 0000000..e69de29 diff --git a/test/test.js b/test/test.js new file mode 100644 index 0000000..997ac48 --- /dev/null +++ b/test/test.js @@ -0,0 +1,3 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGVzdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbInRlc3QudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiJ9 \ No newline at end of file diff --git a/test/test.ts b/test/test.ts new file mode 100644 index 0000000..cb80008 --- /dev/null +++ b/test/test.ts @@ -0,0 +1 @@ +import * as smartlodash from '../dist/index' diff --git a/ts/index.ts b/ts/index.ts new file mode 100644 index 0000000..7c09a18 --- /dev/null +++ b/ts/index.ts @@ -0,0 +1,5 @@ +import * as lodash from 'lodash' + +export { + lodash +} 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" +} diff --git a/yarn.lock b/yarn.lock new file mode 100644 index 0000000..f9fea05 --- /dev/null +++ b/yarn.lock @@ -0,0 +1,11 @@ +# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. +# yarn lockfile v1 + + +"@types/lodash@^4.14.56": + version "4.14.56" + resolved "https://registry.yarnpkg.com/@types/lodash/-/lodash-4.14.56.tgz#e7ed952ca250c5bdfbf6e75598c137785c41170e" + +lodash@^4.17.4: + version "4.17.4" + resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.4.tgz#78203a4d1c328ae1d86dca6460e369b57f4055ae"