Compare commits
No commits in common. "master" and "v3.0.0" have entirely different histories.
@ -1,66 +0,0 @@
|
|||||||
name: Default (not tags)
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
tags-ignore:
|
|
||||||
- '**'
|
|
||||||
|
|
||||||
env:
|
|
||||||
IMAGE: registry.gitlab.com/hosttoday/ht-docker-node:npmci
|
|
||||||
NPMCI_COMPUTED_REPOURL: https://${{gitea.repository_owner}}:${{secrets.GITEA_TOKEN}}@gitea.lossless.digital/${{gitea.repository}}.git
|
|
||||||
NPMCI_TOKEN_NPM: ${{secrets.NPMCI_TOKEN_NPM}}
|
|
||||||
NPMCI_TOKEN_NPM2: ${{secrets.NPMCI_TOKEN_NPM2}}
|
|
||||||
NPMCI_GIT_GITHUBTOKEN: ${{secrets.NPMCI_GIT_GITHUBTOKEN}}
|
|
||||||
NPMCI_URL_CLOUDLY: ${{secrets.NPMCI_URL_CLOUDLY}}
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
security:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
continue-on-error: true
|
|
||||||
container:
|
|
||||||
image: ${{ env.IMAGE }}
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v3
|
|
||||||
|
|
||||||
- name: Install pnpm and npmci
|
|
||||||
run: |
|
|
||||||
pnpm install -g pnpm
|
|
||||||
pnpm install -g @shipzone/npmci
|
|
||||||
|
|
||||||
- name: Run npm prepare
|
|
||||||
run: npmci npm prepare
|
|
||||||
|
|
||||||
- name: Audit production dependencies
|
|
||||||
run: |
|
|
||||||
npmci command npm config set registry https://registry.npmjs.org
|
|
||||||
npmci command pnpm audit --audit-level=high --prod
|
|
||||||
continue-on-error: true
|
|
||||||
|
|
||||||
- name: Audit development dependencies
|
|
||||||
run: |
|
|
||||||
npmci command npm config set registry https://registry.npmjs.org
|
|
||||||
npmci command pnpm audit --audit-level=high --dev
|
|
||||||
continue-on-error: true
|
|
||||||
|
|
||||||
test:
|
|
||||||
if: ${{ always() }}
|
|
||||||
needs: security
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
container:
|
|
||||||
image: ${{ env.IMAGE }}
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v3
|
|
||||||
|
|
||||||
- name: Test stable
|
|
||||||
run: |
|
|
||||||
npmci node install stable
|
|
||||||
npmci npm install
|
|
||||||
npmci npm test
|
|
||||||
|
|
||||||
- name: Test build
|
|
||||||
run: |
|
|
||||||
npmci node install stable
|
|
||||||
npmci npm install
|
|
||||||
npmci npm build
|
|
@ -1,124 +0,0 @@
|
|||||||
name: Default (tags)
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
tags:
|
|
||||||
- '*'
|
|
||||||
|
|
||||||
env:
|
|
||||||
IMAGE: registry.gitlab.com/hosttoday/ht-docker-node:npmci
|
|
||||||
NPMCI_COMPUTED_REPOURL: https://${{gitea.repository_owner}}:${{secrets.GITEA_TOKEN}}@gitea.lossless.digital/${{gitea.repository}}.git
|
|
||||||
NPMCI_TOKEN_NPM: ${{secrets.NPMCI_TOKEN_NPM}}
|
|
||||||
NPMCI_TOKEN_NPM2: ${{secrets.NPMCI_TOKEN_NPM2}}
|
|
||||||
NPMCI_GIT_GITHUBTOKEN: ${{secrets.NPMCI_GIT_GITHUBTOKEN}}
|
|
||||||
NPMCI_URL_CLOUDLY: ${{secrets.NPMCI_URL_CLOUDLY}}
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
security:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
continue-on-error: true
|
|
||||||
container:
|
|
||||||
image: ${{ env.IMAGE }}
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v3
|
|
||||||
|
|
||||||
- name: Prepare
|
|
||||||
run: |
|
|
||||||
pnpm install -g pnpm
|
|
||||||
pnpm install -g @shipzone/npmci
|
|
||||||
npmci npm prepare
|
|
||||||
|
|
||||||
- name: Audit production dependencies
|
|
||||||
run: |
|
|
||||||
npmci command npm config set registry https://registry.npmjs.org
|
|
||||||
npmci command pnpm audit --audit-level=high --prod
|
|
||||||
continue-on-error: true
|
|
||||||
|
|
||||||
- name: Audit development dependencies
|
|
||||||
run: |
|
|
||||||
npmci command npm config set registry https://registry.npmjs.org
|
|
||||||
npmci command pnpm audit --audit-level=high --dev
|
|
||||||
continue-on-error: true
|
|
||||||
|
|
||||||
test:
|
|
||||||
if: ${{ always() }}
|
|
||||||
needs: security
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
container:
|
|
||||||
image: ${{ env.IMAGE }}
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v3
|
|
||||||
|
|
||||||
- name: Prepare
|
|
||||||
run: |
|
|
||||||
pnpm install -g pnpm
|
|
||||||
pnpm install -g @shipzone/npmci
|
|
||||||
npmci npm prepare
|
|
||||||
|
|
||||||
- name: Test stable
|
|
||||||
run: |
|
|
||||||
npmci node install stable
|
|
||||||
npmci npm install
|
|
||||||
npmci npm test
|
|
||||||
|
|
||||||
- name: Test build
|
|
||||||
run: |
|
|
||||||
npmci node install stable
|
|
||||||
npmci npm install
|
|
||||||
npmci npm build
|
|
||||||
|
|
||||||
release:
|
|
||||||
needs: test
|
|
||||||
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
container:
|
|
||||||
image: ${{ env.IMAGE }}
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v3
|
|
||||||
|
|
||||||
- name: Prepare
|
|
||||||
run: |
|
|
||||||
pnpm install -g pnpm
|
|
||||||
pnpm install -g @shipzone/npmci
|
|
||||||
npmci npm prepare
|
|
||||||
|
|
||||||
- name: Release
|
|
||||||
run: |
|
|
||||||
npmci node install stable
|
|
||||||
npmci npm publish
|
|
||||||
|
|
||||||
metadata:
|
|
||||||
needs: test
|
|
||||||
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
container:
|
|
||||||
image: ${{ env.IMAGE }}
|
|
||||||
continue-on-error: true
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v3
|
|
||||||
|
|
||||||
- name: Prepare
|
|
||||||
run: |
|
|
||||||
pnpm install -g pnpm
|
|
||||||
pnpm install -g @shipzone/npmci
|
|
||||||
npmci npm prepare
|
|
||||||
|
|
||||||
- name: Code quality
|
|
||||||
run: |
|
|
||||||
npmci command npm install -g typescript
|
|
||||||
npmci npm install
|
|
||||||
|
|
||||||
- name: Trigger
|
|
||||||
run: npmci trigger
|
|
||||||
|
|
||||||
- name: Build docs and upload artifacts
|
|
||||||
run: |
|
|
||||||
npmci node install stable
|
|
||||||
npmci npm install
|
|
||||||
pnpm install -g @git.zone/tsdoc
|
|
||||||
npmci command tsdoc
|
|
||||||
continue-on-error: true
|
|
23
.gitignore
vendored
23
.gitignore
vendored
@ -1,20 +1,5 @@
|
|||||||
.nogit/
|
|
||||||
|
|
||||||
# artifacts
|
|
||||||
coverage/
|
|
||||||
public/
|
|
||||||
pages/
|
|
||||||
|
|
||||||
# installs
|
|
||||||
node_modules/
|
node_modules/
|
||||||
|
coverage/
|
||||||
# caches
|
pages/
|
||||||
.yarn/
|
public/
|
||||||
.cache/
|
kvstore/
|
||||||
.rpt2_cache
|
|
||||||
|
|
||||||
# builds
|
|
||||||
dist/
|
|
||||||
dist_*/
|
|
||||||
|
|
||||||
# custom
|
|
||||||
|
142
.gitlab-ci.yml
Normal file
142
.gitlab-ci.yml
Normal file
@ -0,0 +1,142 @@
|
|||||||
|
# gitzone standard
|
||||||
|
image: hosttoday/ht-docker-node:npmci
|
||||||
|
|
||||||
|
cache:
|
||||||
|
paths:
|
||||||
|
- .npmci_cache/
|
||||||
|
key: "$CI_BUILD_STAGE"
|
||||||
|
|
||||||
|
stages:
|
||||||
|
- security
|
||||||
|
- test
|
||||||
|
- release
|
||||||
|
- metadata
|
||||||
|
|
||||||
|
# ====================
|
||||||
|
# security stage
|
||||||
|
# ====================
|
||||||
|
mirror:
|
||||||
|
stage: security
|
||||||
|
script:
|
||||||
|
- npmci git mirror
|
||||||
|
tags:
|
||||||
|
- docker
|
||||||
|
- notpriv
|
||||||
|
|
||||||
|
snyk:
|
||||||
|
stage: security
|
||||||
|
script:
|
||||||
|
- npmci command npm install -g snyk
|
||||||
|
- npmci command npm install --ignore-scripts
|
||||||
|
- npmci command snyk test
|
||||||
|
tags:
|
||||||
|
- docker
|
||||||
|
- notpriv
|
||||||
|
|
||||||
|
# ====================
|
||||||
|
# test stage
|
||||||
|
# ====================
|
||||||
|
testLEGACY:
|
||||||
|
stage: test
|
||||||
|
script:
|
||||||
|
- npmci node install legacy
|
||||||
|
- npmci npm install
|
||||||
|
- npmci npm test
|
||||||
|
coverage: /\d+.?\d+?\%\s*coverage/
|
||||||
|
tags:
|
||||||
|
- docker
|
||||||
|
- notpriv
|
||||||
|
allow_failure: true
|
||||||
|
|
||||||
|
testLTS:
|
||||||
|
stage: test
|
||||||
|
script:
|
||||||
|
- npmci node install lts
|
||||||
|
- npmci npm install
|
||||||
|
- npmci npm test
|
||||||
|
coverage: /\d+.?\d+?\%\s*coverage/
|
||||||
|
tags:
|
||||||
|
- docker
|
||||||
|
- notpriv
|
||||||
|
|
||||||
|
testSTABLE:
|
||||||
|
stage: test
|
||||||
|
script:
|
||||||
|
- npmci node install stable
|
||||||
|
- npmci npm install
|
||||||
|
- npmci npm test
|
||||||
|
coverage: /\d+.?\d+?\%\s*coverage/
|
||||||
|
tags:
|
||||||
|
- docker
|
||||||
|
- notpriv
|
||||||
|
|
||||||
|
release:
|
||||||
|
stage: release
|
||||||
|
script:
|
||||||
|
- npmci node install stable
|
||||||
|
- npmci npm publish
|
||||||
|
only:
|
||||||
|
- tags
|
||||||
|
tags:
|
||||||
|
- docker
|
||||||
|
- notpriv
|
||||||
|
|
||||||
|
# ====================
|
||||||
|
# metadata stage
|
||||||
|
# ====================
|
||||||
|
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]
|
||||||
|
tags:
|
||||||
|
- docker
|
||||||
|
- priv
|
||||||
|
|
||||||
|
trigger:
|
||||||
|
stage: metadata
|
||||||
|
script:
|
||||||
|
- npmci trigger
|
||||||
|
only:
|
||||||
|
- tags
|
||||||
|
tags:
|
||||||
|
- docker
|
||||||
|
- notpriv
|
||||||
|
|
||||||
|
pages:
|
||||||
|
image: hosttoday/ht-docker-node:npmci
|
||||||
|
stage: metadata
|
||||||
|
script:
|
||||||
|
- npmci command npm install -g typedoc typescript
|
||||||
|
- npmci npm install
|
||||||
|
- npmci command typedoc --module "commonjs" --target "ES2016" --out public/ ts/
|
||||||
|
tags:
|
||||||
|
- docker
|
||||||
|
- notpriv
|
||||||
|
only:
|
||||||
|
- tags
|
||||||
|
artifacts:
|
||||||
|
expire_in: 1 week
|
||||||
|
paths:
|
||||||
|
- public
|
||||||
|
allow_failure: true
|
||||||
|
|
||||||
|
windowsCompatibility:
|
||||||
|
image: stefanscherer/node-windows:10-build-tools
|
||||||
|
stage: metadata
|
||||||
|
script:
|
||||||
|
- npm install & npm test
|
||||||
|
coverage: /\d+.?\d+?\%\s*coverage/
|
||||||
|
tags:
|
||||||
|
- windows
|
||||||
|
allow_failure: true
|
4
.snyk
Normal file
4
.snyk
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities.
|
||||||
|
version: v1.12.0
|
||||||
|
ignore: {}
|
||||||
|
patch: {}
|
11
.vscode/launch.json
vendored
11
.vscode/launch.json
vendored
@ -1,11 +0,0 @@
|
|||||||
{
|
|
||||||
"version": "0.2.0",
|
|
||||||
"configurations": [
|
|
||||||
{
|
|
||||||
"command": "npm test",
|
|
||||||
"name": "Run npm test",
|
|
||||||
"request": "launch",
|
|
||||||
"type": "node-terminal"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
26
.vscode/settings.json
vendored
26
.vscode/settings.json
vendored
@ -1,26 +0,0 @@
|
|||||||
{
|
|
||||||
"json.schemas": [
|
|
||||||
{
|
|
||||||
"fileMatch": ["/npmextra.json"],
|
|
||||||
"schema": {
|
|
||||||
"type": "object",
|
|
||||||
"properties": {
|
|
||||||
"npmci": {
|
|
||||||
"type": "object",
|
|
||||||
"description": "settings for npmci"
|
|
||||||
},
|
|
||||||
"gitzone": {
|
|
||||||
"type": "object",
|
|
||||||
"description": "settings for gitzone",
|
|
||||||
"properties": {
|
|
||||||
"projectType": {
|
|
||||||
"type": "string",
|
|
||||||
"enum": ["website", "element", "service", "npm", "wcc"]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
33
README.md
Normal file
33
README.md
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
# npmextra
|
||||||
|
|
||||||
|
do more with npm
|
||||||
|
|
||||||
|
## Availabililty
|
||||||
|
|
||||||
|
[](https://www.npmjs.com/package/npmextra)
|
||||||
|
[](https://GitLab.com/pushrocks/npmextra)
|
||||||
|
[](https://github.com/pushrocks/npmextra)
|
||||||
|
[](https://pushrocks.gitlab.io/npmextra/)
|
||||||
|
|
||||||
|
## Status for master
|
||||||
|
|
||||||
|
[](https://GitLab.com/pushrocks/npmextra/commits/master)
|
||||||
|
[](https://GitLab.com/pushrocks/npmextra/commits/master)
|
||||||
|
[](https://www.npmjs.com/package/npmextra)
|
||||||
|
[](https://david-dm.org/pushrocks/npmextra)
|
||||||
|
[](https://www.bithound.io/github/pushrocks/npmextra/master/dependencies/npm)
|
||||||
|
[](https://www.bithound.io/github/pushrocks/npmextra)
|
||||||
|
[](https://nodejs.org/dist/latest-v6.x/docs/api/)
|
||||||
|
[](https://nodejs.org/dist/latest-v6.x/docs/api/)
|
||||||
|
[](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)
|
||||||
|
|
||||||
|
[](https://push.rocks)
|
57
changelog.md
57
changelog.md
@ -1,57 +0,0 @@
|
|||||||
# Changelog
|
|
||||||
|
|
||||||
## 2024-11-06 - 5.1.2 - fix(appdata)
|
|
||||||
Fix iteration over overwriteObject in AppData class
|
|
||||||
|
|
||||||
- Corrected the for loop from in to of inside the AppData class for iterating over overwriteObject keys.
|
|
||||||
|
|
||||||
## 2024-11-05 - 5.1.1 - fix(AppData)
|
|
||||||
Fix issue with overwrite object handling in AppData class
|
|
||||||
|
|
||||||
- Corrected logic to handle cases when overwriteObject is undefined.
|
|
||||||
|
|
||||||
## 2024-11-05 - 5.1.0 - feat(appdata)
|
|
||||||
Add support for overwriting keys using the overwriteObject option in AppData
|
|
||||||
|
|
||||||
- Introduced the overwriteObject option in IAppDataOptions to allow overwriting specific keys in the AppData class.
|
|
||||||
|
|
||||||
## 2024-06-19 - 5.0.17 - 5.0.23 - Core Updates
|
|
||||||
Routine maintenance and updates to the core components.
|
|
||||||
|
|
||||||
- Multiple core updates and fixes improving stability
|
|
||||||
|
|
||||||
## 2024-06-12 - 5.0.13 - 5.0.16 - Core Updates
|
|
||||||
Maintenance focus on core systems with enhancements and problem resolutions.
|
|
||||||
|
|
||||||
- Enhancements and updates in the core functionality
|
|
||||||
|
|
||||||
## 2024-05-29 - 5.0.13 - Documentation Update
|
|
||||||
Descriptive improvements aligned with current features.
|
|
||||||
|
|
||||||
- Updated core description for better clarity in documentation
|
|
||||||
|
|
||||||
## 2024-04-01 - 5.0.10 - Configuration Update
|
|
||||||
Improved configuration management for build processes.
|
|
||||||
|
|
||||||
- Updated `npmextra.json` to reflect changes in git repository management
|
|
||||||
|
|
||||||
## 2024-02-12 - 5.0.0 - 5.0.9 - Major Core Enhancements
|
|
||||||
A series of critical updates with resolved issues in the core components.
|
|
||||||
|
|
||||||
- Introduction of new core features
|
|
||||||
- Several core system updates
|
|
||||||
|
|
||||||
## 2024-02-12 - 4.0.16 - Major Version Transition
|
|
||||||
Migration to the new major version with impactful changes.
|
|
||||||
|
|
||||||
- BREAKING CHANGE: Significant updates requiring attention for smooth transition
|
|
||||||
|
|
||||||
## 2023-08-24 - 3.0.9 - 4.0.16 - Organization Updates
|
|
||||||
Formatted updates with attention to organizational standards and practice.
|
|
||||||
|
|
||||||
- SWITCH to a new organizational scheme
|
|
||||||
|
|
||||||
## 2023-07-11 - 3.0.9 - Organizational Enhancement
|
|
||||||
Shifts aligning with contemporary structuring and logistics.
|
|
||||||
|
|
||||||
- Strategic realignment with organizational principles
|
|
66
docs/index.md
Normal file
66
docs/index.md
Normal file
@ -0,0 +1,66 @@
|
|||||||
|
# npmextra
|
||||||
|
|
||||||
|
do more with npm
|
||||||
|
|
||||||
|
## Availabililty
|
||||||
|
|
||||||
|
[](https://www.npmjs.com/package/npmextra)
|
||||||
|
[](https://GitLab.com/pushrocks/npmextra)
|
||||||
|
[](https://github.com/pushrocks/npmextra)
|
||||||
|
[](https://pushrocks.gitlab.io/npmextra/)
|
||||||
|
|
||||||
|
## Status for master
|
||||||
|
|
||||||
|
[](https://GitLab.com/pushrocks/npmextra/commits/master)
|
||||||
|
[](https://GitLab.com/pushrocks/npmextra/commits/master)
|
||||||
|
[](https://www.npmjs.com/package/npmextra)
|
||||||
|
[](https://david-dm.org/pushrocks/npmextra)
|
||||||
|
[](https://www.bithound.io/github/pushrocks/npmextra/master/dependencies/npm)
|
||||||
|
[](https://www.bithound.io/github/pushrocks/npmextra)
|
||||||
|
[](https://nodejs.org/dist/latest-v6.x/docs/api/)
|
||||||
|
[](https://nodejs.org/dist/latest-v6.x/docs/api/)
|
||||||
|
[](http://standardjs.com/)
|
||||||
|
|
||||||
|
## Usage
|
||||||
|
|
||||||
|
Use TypeScript for best in class instellisense.
|
||||||
|
|
||||||
|
## Using npmextra for managing toolconfigs
|
||||||
|
|
||||||
|
The main purpose of npmextra is to configure different tools using one npmextra.json. This way complex setups avoid additional complexity caused by too many configuration files.
|
||||||
|
|
||||||
|
npmextra.json
|
||||||
|
|
||||||
|
```json
|
||||||
|
{
|
||||||
|
"sometool": {
|
||||||
|
"defaultKey1": "awesomeValueFromConfig"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
import { Npmextra } from 'npmextra';
|
||||||
|
|
||||||
|
let myNpmExtra = new Npmextra('my/path/to/cwd'); // cwd argument is optional
|
||||||
|
mergedData = myNpmExtra.dataFor('sometool', {
|
||||||
|
// gets merged with whatever is in the configfile
|
||||||
|
defaultKey1: 'defaultValue1', // so this will get overwritten with "awesomeValueFromConfig"
|
||||||
|
defaultKey2: 'defaultValue2' // this one will pass through unaltered
|
||||||
|
});
|
||||||
|
```
|
||||||
|
|
||||||
|
### Tools that already use the config feature of npmextra
|
||||||
|
|
||||||
|
- [npmts](https://www.npmjs.com/package/npmts)
|
||||||
|
- [npmci](https://www.npmjs.com/package/npmci)
|
||||||
|
- [npmdocker](https://www.npmjs.com/package/npmdocker)
|
||||||
|
|
||||||
|
## Using the KeyValueStore
|
||||||
|
|
||||||
|
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)
|
||||||
|
|
||||||
|
[](https://push.rocks)
|
@ -1,42 +1,10 @@
|
|||||||
{
|
{
|
||||||
"npmci": {
|
"npmci": {
|
||||||
"globalNpmTools": [],
|
"globalNpmTools": []
|
||||||
"npmAccessLevel": "public"
|
|
||||||
},
|
},
|
||||||
"npmts": {
|
"npmts": {
|
||||||
"testConfig": {
|
"testConfig": {
|
||||||
"parallel": false
|
"parallel": false
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"gitzone": {
|
|
||||||
"projectType": "npm",
|
|
||||||
"module": {
|
|
||||||
"githost": "code.foss.global",
|
|
||||||
"gitscope": "push.rocks",
|
|
||||||
"gitrepo": "npmextra",
|
|
||||||
"description": "A utility to enhance npm with additional configuration, tool management capabilities, and a key-value store for project setups.",
|
|
||||||
"npmPackagename": "@push.rocks/npmextra",
|
|
||||||
"license": "MIT",
|
|
||||||
"keywords": [
|
|
||||||
"npm",
|
|
||||||
"configuration management",
|
|
||||||
"tool management",
|
|
||||||
"key-value store",
|
|
||||||
"project setup",
|
|
||||||
"typescript",
|
|
||||||
"environment setup",
|
|
||||||
"dependencies management",
|
|
||||||
"npm package enhancement",
|
|
||||||
"automation",
|
|
||||||
"async operations",
|
|
||||||
"app configuration",
|
|
||||||
"smart file handling",
|
|
||||||
"workflow improvement",
|
|
||||||
"persistent storage"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"tsdoc": {
|
|
||||||
"legal": "\n## License and Legal Information\n\nThis repository contains open-source code that is licensed under the MIT License. A copy of the MIT License can be found in the [license](license) file within this repository. \n\n**Please note:** The MIT License does not grant permission to use the trade names, trademarks, service marks, or product names of the project, except as required for reasonable and customary use in describing the origin of the work and reproducing the content of the NOTICE file.\n\n### Trademarks\n\nThis project is owned and maintained by Task Venture Capital GmbH. The names and logos associated with Task Venture Capital GmbH and any related products or services are trademarks of Task Venture Capital GmbH and are not included within the scope of the MIT license granted herein. Use of these trademarks must comply with Task Venture Capital GmbH's Trademark Guidelines, and any usage must be approved in writing by Task Venture Capital GmbH.\n\n### Company Information\n\nTask Venture Capital GmbH \nRegistered at District court Bremen HRB 35230 HB, Germany\n\nFor any legal inquiries or if you require further information, please contact us via email at hello@task.vc.\n\nBy using this repository, you acknowledge that you have read this section, agree to comply with its terms, and understand that the licensing of the code does not imply endorsement by Task Venture Capital GmbH of any derivative works.\n"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
902
package-lock.json
generated
Normal file
902
package-lock.json
generated
Normal file
@ -0,0 +1,902 @@
|
|||||||
|
{
|
||||||
|
"name": "npmextra",
|
||||||
|
"version": "3.0.0",
|
||||||
|
"lockfileVersion": 1,
|
||||||
|
"requires": true,
|
||||||
|
"dependencies": {
|
||||||
|
"@airbnb/node-memwatch": {
|
||||||
|
"version": "1.0.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/@airbnb/node-memwatch/-/node-memwatch-1.0.2.tgz",
|
||||||
|
"integrity": "sha512-2R+MEEMSTUdKwQ6NFWkyA/UNoSjL1tMldZqJbZpgXSwNMBzlNlkUWEXKu9RqTTMkDqJRfGJ2VDs8gPlPK2APDQ==",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"bindings": "^1.3.0",
|
||||||
|
"nan": "^2.9.2"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"@gitzone/tsbuild": {
|
||||||
|
"version": "2.0.22",
|
||||||
|
"resolved": "https://registry.npmjs.org/@gitzone/tsbuild/-/tsbuild-2.0.22.tgz",
|
||||||
|
"integrity": "sha512-H0rqGVUKXWgxXhkY62kF92WpbS9GSJW27jQXaoyMsQptTQN4HIYKHWZMdO4egkk0/gDmKnBjk8MXg5Rx6efItA==",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"@pushrocks/smartfile": "^6.0.6",
|
||||||
|
"@pushrocks/smartlog": "^2.0.1",
|
||||||
|
"@pushrocks/smartpath": "^4.0.1",
|
||||||
|
"@pushrocks/smartpromise": "^2.0.5",
|
||||||
|
"typescript": "^3.0.1"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"@gitzone/tsrun": {
|
||||||
|
"version": "1.1.12",
|
||||||
|
"resolved": "https://registry.npmjs.org/@gitzone/tsrun/-/tsrun-1.1.12.tgz",
|
||||||
|
"integrity": "sha512-DOxqOg+evoxhgbzhzH4u6LaPF+6bpMsnBVl1QQaHzKPGBlNjaIY4yJ0RsGnWMgX1hlNLvbgHtl0Ky4A2MDvyrg==",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"@gitzone/tsbuild": "^2.0.22",
|
||||||
|
"@pushrocks/smartfile": "^6.0.6",
|
||||||
|
"ts-node": "^7.0.0",
|
||||||
|
"typescript": "^3.0.1"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"@gitzone/tstest": {
|
||||||
|
"version": "1.0.15",
|
||||||
|
"resolved": "https://registry.npmjs.org/@gitzone/tstest/-/tstest-1.0.15.tgz",
|
||||||
|
"integrity": "sha512-+t5fvYK4a0JkwwH0Fokh5aOxVzrax5OjDUL4zmhBk7KFmXt7fdvcqsSNaEp9iyqC52dLiDybdAXqHYZypXTIYw==",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"@gitzone/tsrun": "^1.1.12",
|
||||||
|
"@pushrocks/consolecolor": "^2.0.1",
|
||||||
|
"@pushrocks/smartfile": "^6.0.6",
|
||||||
|
"@pushrocks/smartlog": "^2.0.1",
|
||||||
|
"@pushrocks/smartpromise": "^2.0.5",
|
||||||
|
"@pushrocks/smartshell": "^2.0.6",
|
||||||
|
"@types/figures": "^2.0.0",
|
||||||
|
"figures": "^2.0.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"@pushrocks/consolecolor": {
|
||||||
|
"version": "2.0.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/@pushrocks/consolecolor/-/consolecolor-2.0.1.tgz",
|
||||||
|
"integrity": "sha512-iOFCHVeFZ2OywbdwSxVI4/wokkcLrXVdHLgvMmkNhJ220eeLgjNZWx3EJo3vNW3zq5ybCSCUIq0878djBxrWpw==",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"ansi-256-colors": "^1.1.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"@pushrocks/early": {
|
||||||
|
"version": "3.0.3",
|
||||||
|
"resolved": "https://registry.npmjs.org/@pushrocks/early/-/early-3.0.3.tgz",
|
||||||
|
"integrity": "sha512-71/nwxTpqdp1glmHz4YaGusNl/XOOcPelAxC9RA6rpS/6280QyY2u4yx+mRdMrCzn7ruLYF5awbkS8llNZ94Pg==",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"@pushrocks/consolecolor": "^2.0.1",
|
||||||
|
"@pushrocks/smartpromise": "^2.0.5"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"@pushrocks/lik": {
|
||||||
|
"version": "3.0.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/@pushrocks/lik/-/lik-3.0.1.tgz",
|
||||||
|
"integrity": "sha512-6dwRg7WMdY9drlqfo6NzOcw5ubVWYvIOSSMZz4Jsojpa8aDVwXd2VkD7sxO/PJRrbZzHkx/JXoY/epcWRjngUw==",
|
||||||
|
"requires": {
|
||||||
|
"@pushrocks/smartpromise": "^2.0.5",
|
||||||
|
"@types/lodash": "^4.14.112",
|
||||||
|
"@types/minimatch": "^3.0.3",
|
||||||
|
"lodash": "^4.17.10",
|
||||||
|
"minimatch": "^3.0.4",
|
||||||
|
"symbol-tree": "^3.2.2"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"@pushrocks/smartdelay": {
|
||||||
|
"version": "2.0.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/@pushrocks/smartdelay/-/smartdelay-2.0.2.tgz",
|
||||||
|
"integrity": "sha512-4xf6tMKwZcxBynKgXrM4SQKgeASfRvx43LUmR5DkStp26ZHAsarCXUdKJS6y8QIPygEOTOCP8we97JAcCzBuMg==",
|
||||||
|
"requires": {
|
||||||
|
"@pushrocks/smartpromise": "^2.0.5"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"@pushrocks/smartfile": {
|
||||||
|
"version": "6.0.8",
|
||||||
|
"resolved": "https://registry.npmjs.org/@pushrocks/smartfile/-/smartfile-6.0.8.tgz",
|
||||||
|
"integrity": "sha512-YkAovvQ0pcVphXLynlQ1D4nhEoUqALqqUn2pRXc2vXNy0RDSU22puLlLVhoXT0NPAqYNMazhqc4OAixgEOpdFw==",
|
||||||
|
"requires": {
|
||||||
|
"@pushrocks/smartpath": "^4.0.1",
|
||||||
|
"@pushrocks/smartpromise": "^2.0.5",
|
||||||
|
"@pushrocks/smartrequest": "^1.1.14",
|
||||||
|
"@types/fs-extra": "^5.0.4",
|
||||||
|
"@types/vinyl": "^2.0.2",
|
||||||
|
"fs-extra": "^7.0.0",
|
||||||
|
"glob": "^7.1.2",
|
||||||
|
"js-yaml": "^3.10.0",
|
||||||
|
"vinyl-file": "^3.0.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"@pushrocks/smartlog": {
|
||||||
|
"version": "2.0.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/@pushrocks/smartlog/-/smartlog-2.0.1.tgz",
|
||||||
|
"integrity": "sha512-GtsDTGIUF3VuWPyF8FV5dF31ZCEIcaJ56ZlvJsWxjnyJq57X25mk5/K0QAaRE9IIeHg6fORcukFomb5C+AOQrg==",
|
||||||
|
"requires": {
|
||||||
|
"@pushrocks/smartlog-interfaces": "^1.0.9"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"@pushrocks/smartlog-interfaces": {
|
||||||
|
"version": "1.0.9",
|
||||||
|
"resolved": "https://registry.npmjs.org/@pushrocks/smartlog-interfaces/-/smartlog-interfaces-1.0.9.tgz",
|
||||||
|
"integrity": "sha512-0qwpomrRN0kFjmhR9m1iHYXoISoNuXtRP0Wr+JtkYyURLwKHMaW8Xoznf8MzXJptRfqufJi3Fxh5HodpPrIZUA=="
|
||||||
|
},
|
||||||
|
"@pushrocks/smartpath": {
|
||||||
|
"version": "4.0.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/@pushrocks/smartpath/-/smartpath-4.0.1.tgz",
|
||||||
|
"integrity": "sha512-MaI0+uLQPCr2V3WGnbdgb0pWa9xkWyrP4qYcbsHIjeismGLbn9s3jmP/HIXU8LkgzRgaVb+BJxmZJHOwl32DyA=="
|
||||||
|
},
|
||||||
|
"@pushrocks/smartpromise": {
|
||||||
|
"version": "2.0.5",
|
||||||
|
"resolved": "https://registry.npmjs.org/@pushrocks/smartpromise/-/smartpromise-2.0.5.tgz",
|
||||||
|
"integrity": "sha512-9j/chLtIiNkR0MDw7Mpxg9slxAVvAQwUZuiaPYX5KpHdKxQaHLI1VZ8IN0vPhwlfgNO4i4vGXV0wB8BvSDj03g=="
|
||||||
|
},
|
||||||
|
"@pushrocks/smartrequest": {
|
||||||
|
"version": "1.1.14",
|
||||||
|
"resolved": "https://registry.npmjs.org/@pushrocks/smartrequest/-/smartrequest-1.1.14.tgz",
|
||||||
|
"integrity": "sha512-+sDQB4Mxvpn8BIMPUQ7TPSCKUVMln3tHC4rp4pmfEHmBQK+g1XwtNr59aMA9kEoBDMt7li1hu+1cs+SNsWt6Gw==",
|
||||||
|
"requires": {
|
||||||
|
"@pushrocks/smartpromise": "^2.0.5",
|
||||||
|
"@types/form-data": "^2.2.1",
|
||||||
|
"form-data": "^2.3.2"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"@pushrocks/smartshell": {
|
||||||
|
"version": "2.0.6",
|
||||||
|
"resolved": "https://registry.npmjs.org/@pushrocks/smartshell/-/smartshell-2.0.6.tgz",
|
||||||
|
"integrity": "sha512-D48KB3DDqLfMjOXGEutqJi+v3Z4RcWacu5BJXxUwrecvd6oetbKobfmNGxeHSQPmNGb7U3ISfKwV6c5T5EZkJg==",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"@pushrocks/smartpromise": "^2.0.5",
|
||||||
|
"@types/which": "^1.3.1",
|
||||||
|
"which": "^1.3.1"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"@pushrocks/tapbundle": {
|
||||||
|
"version": "3.0.5",
|
||||||
|
"resolved": "https://registry.npmjs.org/@pushrocks/tapbundle/-/tapbundle-3.0.5.tgz",
|
||||||
|
"integrity": "sha512-7K1y4pyJ5O8XRmnW/ADryEoniGKOW0Un6VZpxMcYTndS5AjwKhjRkAAaSQf4g/a8Ei+uk/q8csI9Twjb9KISLQ==",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"@pushrocks/early": "^3.0.3",
|
||||||
|
"@pushrocks/smartdelay": "^2.0.2",
|
||||||
|
"@pushrocks/smartpromise": "^2.0.5",
|
||||||
|
"leakage": "^0.4.0",
|
||||||
|
"smartchai": "^2.0.1"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"@pushrocks/taskbuffer": {
|
||||||
|
"version": "2.0.5",
|
||||||
|
"resolved": "https://registry.npmjs.org/@pushrocks/taskbuffer/-/taskbuffer-2.0.5.tgz",
|
||||||
|
"integrity": "sha512-frzuSoz7Lhlt4y+5vP513BJ/blSalkLH1A4Es0QtxQ6258ekxP/FWC7Bq0Hy7XnNDIlws0WDvd1KN2prSIKZDg==",
|
||||||
|
"requires": {
|
||||||
|
"@pushrocks/lik": "^3.0.1",
|
||||||
|
"@pushrocks/smartdelay": "^2.0.1",
|
||||||
|
"@pushrocks/smartlog": "^2.0.1",
|
||||||
|
"@pushrocks/smartpromise": "^2.0.5",
|
||||||
|
"@types/cron": "^1.3.0",
|
||||||
|
"cron": "^1.3.0",
|
||||||
|
"rxjs": "^6.2.2"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"@types/chai": {
|
||||||
|
"version": "4.1.4",
|
||||||
|
"resolved": "https://registry.npmjs.org/@types/chai/-/chai-4.1.4.tgz",
|
||||||
|
"integrity": "sha512-h6+VEw2Vr3ORiFCyyJmcho2zALnUq9cvdB/IO8Xs9itrJVCenC7o26A6+m7D0ihTTr65eS259H5/Ghl/VjYs6g==",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
|
"@types/chai-as-promised": {
|
||||||
|
"version": "7.1.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/@types/chai-as-promised/-/chai-as-promised-7.1.0.tgz",
|
||||||
|
"integrity": "sha512-MFiW54UOSt+f2bRw8J7LgQeIvE/9b4oGvwU7XW30S9QGAiHGnU/fmiOprsyMkdmH2rl8xSPc0/yrQw8juXU6bQ==",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"@types/chai": "*"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"@types/chai-string": {
|
||||||
|
"version": "1.4.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/@types/chai-string/-/chai-string-1.4.1.tgz",
|
||||||
|
"integrity": "sha512-aRNMs6TKgjgPlCHwDfq/YNy5VtRR2hJ4AUWByddrT0TRVVD8eX4MiHW6/iHvmQHRlVuuPZcwnTUE7b4yFt7bEA==",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"@types/chai": "*"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"@types/cron": {
|
||||||
|
"version": "1.3.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/@types/cron/-/cron-1.3.0.tgz",
|
||||||
|
"integrity": "sha512-RNJ6Hbxs9CbUw+Bxt8kpN8/yNlYG1xli0JZSO1xTJJxFjgD2KWctFSkJeJpjf9iLJU0jeNPoJ5LEru7eBN3xuA=="
|
||||||
|
},
|
||||||
|
"@types/figures": {
|
||||||
|
"version": "2.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/@types/figures/-/figures-2.0.0.tgz",
|
||||||
|
"integrity": "sha512-mcRgJ+ncKuNI+Dwac7omO18B8C8u+YBS+AU/oyLhEyjAnT3cUUThhHgZpbiIvu5ZqSvdD30BXtrqg9nxc3OKMg==",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
|
"@types/form-data": {
|
||||||
|
"version": "2.2.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/@types/form-data/-/form-data-2.2.1.tgz",
|
||||||
|
"integrity": "sha512-JAMFhOaHIciYVh8fb5/83nmuO/AHwmto+Hq7a9y8FzLDcC1KCU344XDOMEmahnrTFlHjgh4L0WJFczNIX2GxnQ==",
|
||||||
|
"requires": {
|
||||||
|
"@types/node": "*"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"@types/fs-extra": {
|
||||||
|
"version": "5.0.4",
|
||||||
|
"resolved": "https://registry.npmjs.org/@types/fs-extra/-/fs-extra-5.0.4.tgz",
|
||||||
|
"integrity": "sha512-DsknoBvD8s+RFfSGjmERJ7ZOP1HI0UZRA3FSI+Zakhrc/Gy26YQsLI+m5V5DHxroHRJqCDLKJp7Hixn8zyaF7g==",
|
||||||
|
"requires": {
|
||||||
|
"@types/node": "*"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"@types/lodash": {
|
||||||
|
"version": "4.14.116",
|
||||||
|
"resolved": "https://registry.npmjs.org/@types/lodash/-/lodash-4.14.116.tgz",
|
||||||
|
"integrity": "sha512-lRnAtKnxMXcYYXqOiotTmJd74uawNWuPnsnPrrO7HiFuE3npE2iQhfABatbYDyxTNqZNuXzcKGhw37R7RjBFLg=="
|
||||||
|
},
|
||||||
|
"@types/minimatch": {
|
||||||
|
"version": "3.0.3",
|
||||||
|
"resolved": "https://registry.npmjs.org/@types/minimatch/-/minimatch-3.0.3.tgz",
|
||||||
|
"integrity": "sha512-tHq6qdbT9U1IRSGf14CL0pUlULksvY9OZ+5eEgl1N7t+OA3tGvNpxJCzuKQlsNgCVwbAs670L1vcVQi8j9HjnA=="
|
||||||
|
},
|
||||||
|
"@types/node": {
|
||||||
|
"version": "10.9.4",
|
||||||
|
"resolved": "https://registry.npmjs.org/@types/node/-/node-10.9.4.tgz",
|
||||||
|
"integrity": "sha512-fCHV45gS+m3hH17zgkgADUSi2RR1Vht6wOZ0jyHP8rjiQra9f+mIcgwPQHllmDocYOstIEbKlxbFDYlgrTPYqw=="
|
||||||
|
},
|
||||||
|
"@types/vinyl": {
|
||||||
|
"version": "2.0.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/@types/vinyl/-/vinyl-2.0.2.tgz",
|
||||||
|
"integrity": "sha512-2iYpNuOl98SrLPBZfEN9Mh2JCJ2EI9HU35SfgBEb51DcmaHkhp8cKMblYeBqMQiwXMgAD3W60DbQ4i/UdLiXhw==",
|
||||||
|
"requires": {
|
||||||
|
"@types/node": "*"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"@types/which": {
|
||||||
|
"version": "1.3.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/@types/which/-/which-1.3.1.tgz",
|
||||||
|
"integrity": "sha512-ZrJDWpvg75LTGX4XwuneY9s6bF3OeZcGTpoGh3zDV9ytzcHMFsRrMIaLBRJZQMBoGyKs6unBQfVdrLZiYfb1zQ==",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
|
"ansi-256-colors": {
|
||||||
|
"version": "1.1.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/ansi-256-colors/-/ansi-256-colors-1.1.0.tgz",
|
||||||
|
"integrity": "sha1-kQ3lDvzHwJ49gvL4er1rcAwYgYo=",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
|
"argparse": {
|
||||||
|
"version": "1.0.10",
|
||||||
|
"resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz",
|
||||||
|
"integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==",
|
||||||
|
"requires": {
|
||||||
|
"sprintf-js": "~1.0.2"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"arrify": {
|
||||||
|
"version": "1.0.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/arrify/-/arrify-1.0.1.tgz",
|
||||||
|
"integrity": "sha1-iYUI2iIm84DfkEcoRWhJwVAaSw0=",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
|
"assertion-error": {
|
||||||
|
"version": "1.1.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/assertion-error/-/assertion-error-1.1.0.tgz",
|
||||||
|
"integrity": "sha512-jgsaNduz+ndvGyFt3uSuWqvy4lCnIJiovtouQN5JZHOKCS2QuhEdbcQHFhVksz2N2U9hXJo8odG7ETyWlEeuDw==",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
|
"asynckit": {
|
||||||
|
"version": "0.4.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz",
|
||||||
|
"integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k="
|
||||||
|
},
|
||||||
|
"balanced-match": {
|
||||||
|
"version": "1.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz",
|
||||||
|
"integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c="
|
||||||
|
},
|
||||||
|
"bindings": {
|
||||||
|
"version": "1.3.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/bindings/-/bindings-1.3.0.tgz",
|
||||||
|
"integrity": "sha512-DpLh5EzMR2kzvX1KIlVC0VkC3iZtHKTgdtZ0a3pglBZdaQFjt5S9g9xd1lE+YvXyfd6mtCeRnrUfOLYiTMlNSw==",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
|
"brace-expansion": {
|
||||||
|
"version": "1.1.11",
|
||||||
|
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz",
|
||||||
|
"integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==",
|
||||||
|
"requires": {
|
||||||
|
"balanced-match": "^1.0.0",
|
||||||
|
"concat-map": "0.0.1"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"buffer-from": {
|
||||||
|
"version": "1.1.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.1.tgz",
|
||||||
|
"integrity": "sha512-MQcXEUbCKtEo7bhqEs6560Hyd4XaovZlO/k9V3hjVUF/zwW7KBVdSK4gIt/bzwS9MbR5qob+F5jusZsb0YQK2A==",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
|
"chai": {
|
||||||
|
"version": "4.1.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/chai/-/chai-4.1.2.tgz",
|
||||||
|
"integrity": "sha1-D2RYS6ZC8PKs4oBiefTwbKI61zw=",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"assertion-error": "^1.0.1",
|
||||||
|
"check-error": "^1.0.1",
|
||||||
|
"deep-eql": "^3.0.0",
|
||||||
|
"get-func-name": "^2.0.0",
|
||||||
|
"pathval": "^1.0.0",
|
||||||
|
"type-detect": "^4.0.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"chai-as-promised": {
|
||||||
|
"version": "7.1.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/chai-as-promised/-/chai-as-promised-7.1.1.tgz",
|
||||||
|
"integrity": "sha512-azL6xMoi+uxu6z4rhWQ1jbdUhOMhis2PvscD/xjLqNMkv3BPPp2JyyuTHOrf9BOosGpNQ11v6BKv/g57RXbiaA==",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"check-error": "^1.0.2"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"chai-string": {
|
||||||
|
"version": "1.4.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/chai-string/-/chai-string-1.4.0.tgz",
|
||||||
|
"integrity": "sha1-NZFAwFHTak5LGl/GuRAVL0OKjUk=",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
|
"check-error": {
|
||||||
|
"version": "1.0.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/check-error/-/check-error-1.0.2.tgz",
|
||||||
|
"integrity": "sha1-V00xLt2Iu13YkS6Sht1sCu1KrII=",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
|
"clone": {
|
||||||
|
"version": "2.1.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/clone/-/clone-2.1.2.tgz",
|
||||||
|
"integrity": "sha1-G39Ln1kfHo+DZwQBYANFoCiHQ18="
|
||||||
|
},
|
||||||
|
"clone-buffer": {
|
||||||
|
"version": "1.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/clone-buffer/-/clone-buffer-1.0.0.tgz",
|
||||||
|
"integrity": "sha1-4+JbIHrE5wGvch4staFnksrD3Fg="
|
||||||
|
},
|
||||||
|
"clone-stats": {
|
||||||
|
"version": "1.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/clone-stats/-/clone-stats-1.0.0.tgz",
|
||||||
|
"integrity": "sha1-s3gt/4u1R04Yuba/D9/ngvh3doA="
|
||||||
|
},
|
||||||
|
"cloneable-readable": {
|
||||||
|
"version": "1.1.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/cloneable-readable/-/cloneable-readable-1.1.2.tgz",
|
||||||
|
"integrity": "sha512-Bq6+4t+lbM8vhTs/Bef5c5AdEMtapp/iFb6+s4/Hh9MVTt8OLKH7ZOOZSCT+Ys7hsHvqv0GuMPJ1lnQJVHvxpg==",
|
||||||
|
"requires": {
|
||||||
|
"inherits": "^2.0.1",
|
||||||
|
"process-nextick-args": "^2.0.0",
|
||||||
|
"readable-stream": "^2.3.5"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"combined-stream": {
|
||||||
|
"version": "1.0.6",
|
||||||
|
"resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.6.tgz",
|
||||||
|
"integrity": "sha1-cj599ugBrFYTETp+RFqbactjKBg=",
|
||||||
|
"requires": {
|
||||||
|
"delayed-stream": "~1.0.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"concat-map": {
|
||||||
|
"version": "0.0.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz",
|
||||||
|
"integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s="
|
||||||
|
},
|
||||||
|
"core-util-is": {
|
||||||
|
"version": "1.0.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz",
|
||||||
|
"integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac="
|
||||||
|
},
|
||||||
|
"cron": {
|
||||||
|
"version": "1.4.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/cron/-/cron-1.4.1.tgz",
|
||||||
|
"integrity": "sha512-HlglwQUNh6bhgfoDR6aEzyHN2T4bc0XhxJxkNPp+Ry7lK7Noby94pHcngYf634+MtxplwZm8okFgNe+R9PGDjg==",
|
||||||
|
"requires": {
|
||||||
|
"moment-timezone": "^0.5.x"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"deep-eql": {
|
||||||
|
"version": "3.0.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/deep-eql/-/deep-eql-3.0.1.tgz",
|
||||||
|
"integrity": "sha512-+QeIQyN5ZuO+3Uk5DYh6/1eKO0m0YmJFGNmFHGACpf1ClL1nmlV/p4gNgbl2pJGxgXb4faqo6UE+M5ACEMyVcw==",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"type-detect": "^4.0.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"delayed-stream": {
|
||||||
|
"version": "1.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz",
|
||||||
|
"integrity": "sha1-3zrhmayt+31ECqrgsp4icrJOxhk="
|
||||||
|
},
|
||||||
|
"diff": {
|
||||||
|
"version": "3.5.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/diff/-/diff-3.5.0.tgz",
|
||||||
|
"integrity": "sha512-A46qtFgd+g7pDZinpnwiRJtxbC1hpgf0uzP3iG89scHk0AUC7A1TGxf5OiiOUv/JMZR8GOt8hL900hV0bOy5xA==",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
|
"es6-error": {
|
||||||
|
"version": "4.1.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/es6-error/-/es6-error-4.1.1.tgz",
|
||||||
|
"integrity": "sha512-Um/+FxMr9CISWh0bi5Zv0iOD+4cFh5qLeks1qhAopKVAJw3drgKbKySikp7wGhDL0HPeaja0P5ULZrxLkniUVg==",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
|
"escape-string-regexp": {
|
||||||
|
"version": "1.0.5",
|
||||||
|
"resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz",
|
||||||
|
"integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
|
"esprima": {
|
||||||
|
"version": "4.0.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz",
|
||||||
|
"integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A=="
|
||||||
|
},
|
||||||
|
"figures": {
|
||||||
|
"version": "2.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/figures/-/figures-2.0.0.tgz",
|
||||||
|
"integrity": "sha1-OrGi0qYsi/tDGgyUy3l6L84nyWI=",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"escape-string-regexp": "^1.0.5"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"first-chunk-stream": {
|
||||||
|
"version": "2.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/first-chunk-stream/-/first-chunk-stream-2.0.0.tgz",
|
||||||
|
"integrity": "sha1-G97NuOCDwGZLkZRVgVd6Q6nzHXA=",
|
||||||
|
"requires": {
|
||||||
|
"readable-stream": "^2.0.2"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"form-data": {
|
||||||
|
"version": "2.3.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/form-data/-/form-data-2.3.2.tgz",
|
||||||
|
"integrity": "sha1-SXBJi+YEwgwAXU9cI67NIda0kJk=",
|
||||||
|
"requires": {
|
||||||
|
"asynckit": "^0.4.0",
|
||||||
|
"combined-stream": "1.0.6",
|
||||||
|
"mime-types": "^2.1.12"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"fs-extra": {
|
||||||
|
"version": "7.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-7.0.0.tgz",
|
||||||
|
"integrity": "sha512-EglNDLRpmaTWiD/qraZn6HREAEAHJcJOmxNEYwq6xeMKnVMAy3GUcFB+wXt2C6k4CNvB/mP1y/U3dzvKKj5OtQ==",
|
||||||
|
"requires": {
|
||||||
|
"graceful-fs": "^4.1.2",
|
||||||
|
"jsonfile": "^4.0.0",
|
||||||
|
"universalify": "^0.1.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"fs.realpath": {
|
||||||
|
"version": "1.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz",
|
||||||
|
"integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8="
|
||||||
|
},
|
||||||
|
"get-func-name": {
|
||||||
|
"version": "2.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/get-func-name/-/get-func-name-2.0.0.tgz",
|
||||||
|
"integrity": "sha1-6td0q+5y4gQJQzoGY2YCPdaIekE=",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
|
"glob": {
|
||||||
|
"version": "7.1.3",
|
||||||
|
"resolved": "https://registry.npmjs.org/glob/-/glob-7.1.3.tgz",
|
||||||
|
"integrity": "sha512-vcfuiIxogLV4DlGBHIUOwI0IbrJ8HWPc4MU7HzviGeNho/UJDfi6B5p3sHeWIQ0KGIU0Jpxi5ZHxemQfLkkAwQ==",
|
||||||
|
"requires": {
|
||||||
|
"fs.realpath": "^1.0.0",
|
||||||
|
"inflight": "^1.0.4",
|
||||||
|
"inherits": "2",
|
||||||
|
"minimatch": "^3.0.4",
|
||||||
|
"once": "^1.3.0",
|
||||||
|
"path-is-absolute": "^1.0.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"graceful-fs": {
|
||||||
|
"version": "4.1.11",
|
||||||
|
"resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.11.tgz",
|
||||||
|
"integrity": "sha1-Dovf5NHduIVNZOBOp8AOKgJuVlg="
|
||||||
|
},
|
||||||
|
"inflight": {
|
||||||
|
"version": "1.0.6",
|
||||||
|
"resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz",
|
||||||
|
"integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=",
|
||||||
|
"requires": {
|
||||||
|
"once": "^1.3.0",
|
||||||
|
"wrappy": "1"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"inherits": {
|
||||||
|
"version": "2.0.3",
|
||||||
|
"resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz",
|
||||||
|
"integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4="
|
||||||
|
},
|
||||||
|
"is-utf8": {
|
||||||
|
"version": "0.2.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/is-utf8/-/is-utf8-0.2.1.tgz",
|
||||||
|
"integrity": "sha1-Sw2hRCEE0bM2NA6AeX6GXPOffXI="
|
||||||
|
},
|
||||||
|
"isarray": {
|
||||||
|
"version": "1.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz",
|
||||||
|
"integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE="
|
||||||
|
},
|
||||||
|
"isexe": {
|
||||||
|
"version": "2.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz",
|
||||||
|
"integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
|
"js-yaml": {
|
||||||
|
"version": "3.12.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.12.0.tgz",
|
||||||
|
"integrity": "sha512-PIt2cnwmPfL4hKNwqeiuz4bKfnzHTBv6HyVgjahA6mPLwPDzjDWrplJBMjHUFxku/N3FlmrbyPclad+I+4mJ3A==",
|
||||||
|
"requires": {
|
||||||
|
"argparse": "^1.0.7",
|
||||||
|
"esprima": "^4.0.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"jsonfile": {
|
||||||
|
"version": "4.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz",
|
||||||
|
"integrity": "sha1-h3Gq4HmbZAdrdmQPygWPnBDjPss=",
|
||||||
|
"requires": {
|
||||||
|
"graceful-fs": "^4.1.6"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"leakage": {
|
||||||
|
"version": "0.4.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/leakage/-/leakage-0.4.0.tgz",
|
||||||
|
"integrity": "sha512-x7gYK5n5dPkHDZWJ2Kh8Ag1hZNzUh+HtXn8Bv1aDdN6o6ONPCJ8sOfFq+kxcULJFp3lXaCjXb3iXOLmQRbBLwA==",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"@airbnb/node-memwatch": "^1.0.2",
|
||||||
|
"es6-error": "^4.0.2",
|
||||||
|
"left-pad": "^1.1.3",
|
||||||
|
"minimist": "^1.2.0",
|
||||||
|
"pretty-bytes": "^4.0.2"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"left-pad": {
|
||||||
|
"version": "1.3.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/left-pad/-/left-pad-1.3.0.tgz",
|
||||||
|
"integrity": "sha512-XI5MPzVNApjAyhQzphX8BkmKsKUxD4LdyK24iZeQGinBN9yTQT3bFlCBy/aVx2HrNcqQGsdot8ghrjyrvMCoEA==",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
|
"lodash": {
|
||||||
|
"version": "4.17.10",
|
||||||
|
"resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.10.tgz",
|
||||||
|
"integrity": "sha512-UejweD1pDoXu+AD825lWwp4ZGtSwgnpZxb3JDViD7StjQz+Nb/6l093lx4OQ0foGWNRoc19mWy7BzL+UAK2iVg=="
|
||||||
|
},
|
||||||
|
"make-error": {
|
||||||
|
"version": "1.3.5",
|
||||||
|
"resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.5.tgz",
|
||||||
|
"integrity": "sha512-c3sIjNUow0+8swNwVpqoH4YCShKNFkMaw6oH1mNS2haDZQqkeZFlHS3dhoeEbKKmJB4vXpJucU6oH75aDYeE9g==",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
|
"mime-db": {
|
||||||
|
"version": "1.36.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.36.0.tgz",
|
||||||
|
"integrity": "sha512-L+xvyD9MkoYMXb1jAmzI/lWYAxAMCPvIBSWur0PZ5nOf5euahRLVqH//FKW9mWp2lkqUgYiXPgkzfMUFi4zVDw=="
|
||||||
|
},
|
||||||
|
"mime-types": {
|
||||||
|
"version": "2.1.20",
|
||||||
|
"resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.20.tgz",
|
||||||
|
"integrity": "sha512-HrkrPaP9vGuWbLK1B1FfgAkbqNjIuy4eHlIYnFi7kamZyLLrGlo2mpcx0bBmNpKqBtYtAfGbodDddIgddSJC2A==",
|
||||||
|
"requires": {
|
||||||
|
"mime-db": "~1.36.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"minimatch": {
|
||||||
|
"version": "3.0.4",
|
||||||
|
"resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz",
|
||||||
|
"integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==",
|
||||||
|
"requires": {
|
||||||
|
"brace-expansion": "^1.1.7"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"minimist": {
|
||||||
|
"version": "1.2.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz",
|
||||||
|
"integrity": "sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ=",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
|
"mkdirp": {
|
||||||
|
"version": "0.5.1",
|
||||||
|
"resolved": "http://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz",
|
||||||
|
"integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"minimist": "0.0.8"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"minimist": {
|
||||||
|
"version": "0.0.8",
|
||||||
|
"resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz",
|
||||||
|
"integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=",
|
||||||
|
"dev": true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"moment": {
|
||||||
|
"version": "2.22.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/moment/-/moment-2.22.2.tgz",
|
||||||
|
"integrity": "sha1-PCV/mDn8DpP/UxSWMiOeuQeD/2Y="
|
||||||
|
},
|
||||||
|
"moment-timezone": {
|
||||||
|
"version": "0.5.21",
|
||||||
|
"resolved": "https://registry.npmjs.org/moment-timezone/-/moment-timezone-0.5.21.tgz",
|
||||||
|
"integrity": "sha512-j96bAh4otsgj3lKydm3K7kdtA3iKf2m6MY2iSYCzCm5a1zmHo1g+aK3068dDEeocLZQIS9kU8bsdQHLqEvgW0A==",
|
||||||
|
"requires": {
|
||||||
|
"moment": ">= 2.9.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"nan": {
|
||||||
|
"version": "2.11.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/nan/-/nan-2.11.0.tgz",
|
||||||
|
"integrity": "sha512-F4miItu2rGnV2ySkXOQoA8FKz/SR2Q2sWP0sbTxNxz/tuokeC8WxOhPMcwi0qIyGtVn/rrSeLbvVkznqCdwYnw==",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
|
"once": {
|
||||||
|
"version": "1.4.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz",
|
||||||
|
"integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=",
|
||||||
|
"requires": {
|
||||||
|
"wrappy": "1"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"path-is-absolute": {
|
||||||
|
"version": "1.0.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz",
|
||||||
|
"integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18="
|
||||||
|
},
|
||||||
|
"pathval": {
|
||||||
|
"version": "1.1.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/pathval/-/pathval-1.1.0.tgz",
|
||||||
|
"integrity": "sha1-uULm1L3mUwBe9rcTYd74cn0GReA=",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
|
"pify": {
|
||||||
|
"version": "2.3.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz",
|
||||||
|
"integrity": "sha1-7RQaasBDqEnqWISY59yosVMw6Qw="
|
||||||
|
},
|
||||||
|
"pretty-bytes": {
|
||||||
|
"version": "4.0.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/pretty-bytes/-/pretty-bytes-4.0.2.tgz",
|
||||||
|
"integrity": "sha1-sr+C5zUNZcbDOqlaqlpPYyf2HNk=",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
|
"process-nextick-args": {
|
||||||
|
"version": "2.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.0.tgz",
|
||||||
|
"integrity": "sha512-MtEC1TqN0EU5nephaJ4rAtThHtC86dNN9qCuEhtshvpVBkAW5ZO7BASN9REnF9eoXGcRub+pFuKEpOHE+HbEMw=="
|
||||||
|
},
|
||||||
|
"readable-stream": {
|
||||||
|
"version": "2.3.6",
|
||||||
|
"resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.6.tgz",
|
||||||
|
"integrity": "sha512-tQtKA9WIAhBF3+VLAseyMqZeBjW0AHJoxOtYqSUZNJxauErmLbVm2FW1y+J/YA9dUrAC39ITejlZWhVIwawkKw==",
|
||||||
|
"requires": {
|
||||||
|
"core-util-is": "~1.0.0",
|
||||||
|
"inherits": "~2.0.3",
|
||||||
|
"isarray": "~1.0.0",
|
||||||
|
"process-nextick-args": "~2.0.0",
|
||||||
|
"safe-buffer": "~5.1.1",
|
||||||
|
"string_decoder": "~1.1.1",
|
||||||
|
"util-deprecate": "~1.0.1"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"remove-trailing-separator": {
|
||||||
|
"version": "1.1.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/remove-trailing-separator/-/remove-trailing-separator-1.1.0.tgz",
|
||||||
|
"integrity": "sha1-wkvOKig62tW8P1jg1IJJuSN52O8="
|
||||||
|
},
|
||||||
|
"replace-ext": {
|
||||||
|
"version": "1.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/replace-ext/-/replace-ext-1.0.0.tgz",
|
||||||
|
"integrity": "sha1-3mMSg3P8v3w8z6TeWkgMRaZ5WOs="
|
||||||
|
},
|
||||||
|
"rxjs": {
|
||||||
|
"version": "6.3.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.3.0.tgz",
|
||||||
|
"integrity": "sha512-ZnwuEquf72mnVORgX75eZCAKNNwulmKQuFxDPwDA5EvbkBXeRNJtmvhyVLcPcKkdiUtqqv+LbBM8jYo0eBW++w==",
|
||||||
|
"requires": {
|
||||||
|
"tslib": "^1.9.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"safe-buffer": {
|
||||||
|
"version": "5.1.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz",
|
||||||
|
"integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g=="
|
||||||
|
},
|
||||||
|
"smartchai": {
|
||||||
|
"version": "2.0.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/smartchai/-/smartchai-2.0.1.tgz",
|
||||||
|
"integrity": "sha512-9M+R56OhAHXScxgr2vzQqxGx0XMS0QXriNZuP7hjlbVbo2FUT+l60iEzbwPt9Ga+5u2cEEjSSoZEQVqlROaddA==",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"@types/chai": "^4.1.2",
|
||||||
|
"@types/chai-as-promised": "^7.1.0",
|
||||||
|
"@types/chai-string": "^1.4.0",
|
||||||
|
"chai": "^4.1.2",
|
||||||
|
"chai-as-promised": "^7.1.1",
|
||||||
|
"chai-string": "^1.4.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"smartlodash": {
|
||||||
|
"version": "1.0.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/smartlodash/-/smartlodash-1.0.1.tgz",
|
||||||
|
"integrity": "sha512-pXy7CD1jrRJ4JKCPiamFb+uqOgqqItJbksF6djqW/83ZG7ChLYPLkQOX/9D5FzU5JylHVs+xdQ6bSprcNQfEng==",
|
||||||
|
"requires": {
|
||||||
|
"@types/lodash": "^4.14.68",
|
||||||
|
"@types/node": "^8.0.10",
|
||||||
|
"lodash": "^4.17.4"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"@types/node": {
|
||||||
|
"version": "8.10.29",
|
||||||
|
"resolved": "https://registry.npmjs.org/@types/node/-/node-8.10.29.tgz",
|
||||||
|
"integrity": "sha512-zbteaWZ2mdduacm0byELwtRyhYE40aK+pAanQk415gr1eRuu67x7QGOLmn8jz5zI8LDK7d0WI/oT6r5Trz4rzQ=="
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"source-map": {
|
||||||
|
"version": "0.6.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz",
|
||||||
|
"integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
|
"source-map-support": {
|
||||||
|
"version": "0.5.9",
|
||||||
|
"resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.9.tgz",
|
||||||
|
"integrity": "sha512-gR6Rw4MvUlYy83vP0vxoVNzM6t8MUXqNuRsuBmBHQDu1Fh6X015FrLdgoDKcNdkwGubozq0P4N0Q37UyFVr1EA==",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"buffer-from": "^1.0.0",
|
||||||
|
"source-map": "^0.6.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"sprintf-js": {
|
||||||
|
"version": "1.0.3",
|
||||||
|
"resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz",
|
||||||
|
"integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw="
|
||||||
|
},
|
||||||
|
"string_decoder": {
|
||||||
|
"version": "1.1.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz",
|
||||||
|
"integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==",
|
||||||
|
"requires": {
|
||||||
|
"safe-buffer": "~5.1.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"strip-bom": {
|
||||||
|
"version": "2.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-2.0.0.tgz",
|
||||||
|
"integrity": "sha1-YhmoVhZSBJHzV4i9vxRHqZx+aw4=",
|
||||||
|
"requires": {
|
||||||
|
"is-utf8": "^0.2.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"strip-bom-buf": {
|
||||||
|
"version": "1.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/strip-bom-buf/-/strip-bom-buf-1.0.0.tgz",
|
||||||
|
"integrity": "sha1-HLRar1dTD0yvhsf3UXnSyaUd1XI=",
|
||||||
|
"requires": {
|
||||||
|
"is-utf8": "^0.2.1"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"strip-bom-stream": {
|
||||||
|
"version": "2.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/strip-bom-stream/-/strip-bom-stream-2.0.0.tgz",
|
||||||
|
"integrity": "sha1-+H217yYT9paKpUWr/h7HKLaoKco=",
|
||||||
|
"requires": {
|
||||||
|
"first-chunk-stream": "^2.0.0",
|
||||||
|
"strip-bom": "^2.0.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"symbol-tree": {
|
||||||
|
"version": "3.2.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/symbol-tree/-/symbol-tree-3.2.2.tgz",
|
||||||
|
"integrity": "sha1-rifbOPZgp64uHDt9G8KQgZuFGeY="
|
||||||
|
},
|
||||||
|
"ts-node": {
|
||||||
|
"version": "7.0.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/ts-node/-/ts-node-7.0.1.tgz",
|
||||||
|
"integrity": "sha512-BVwVbPJRspzNh2yfslyT1PSbl5uIk03EZlb493RKHN4qej/D06n1cEhjlOJG69oFsE7OT8XjpTUcYf6pKTLMhw==",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"arrify": "^1.0.0",
|
||||||
|
"buffer-from": "^1.1.0",
|
||||||
|
"diff": "^3.1.0",
|
||||||
|
"make-error": "^1.1.1",
|
||||||
|
"minimist": "^1.2.0",
|
||||||
|
"mkdirp": "^0.5.1",
|
||||||
|
"source-map-support": "^0.5.6",
|
||||||
|
"yn": "^2.0.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"tslib": {
|
||||||
|
"version": "1.9.3",
|
||||||
|
"resolved": "https://registry.npmjs.org/tslib/-/tslib-1.9.3.tgz",
|
||||||
|
"integrity": "sha512-4krF8scpejhaOgqzBEcGM7yDIEfi0/8+8zDRZhNZZ2kjmHJ4hv3zCbQWxoJGz1iw5U0Jl0nma13xzHXcncMavQ=="
|
||||||
|
},
|
||||||
|
"type-detect": {
|
||||||
|
"version": "4.0.8",
|
||||||
|
"resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz",
|
||||||
|
"integrity": "sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
|
"typescript": {
|
||||||
|
"version": "3.0.3",
|
||||||
|
"resolved": "https://registry.npmjs.org/typescript/-/typescript-3.0.3.tgz",
|
||||||
|
"integrity": "sha512-kk80vLW9iGtjMnIv11qyxLqZm20UklzuR2tL0QAnDIygIUIemcZMxlMWudl9OOt76H3ntVzcTiddQ1/pAAJMYg==",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
|
"universalify": {
|
||||||
|
"version": "0.1.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz",
|
||||||
|
"integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg=="
|
||||||
|
},
|
||||||
|
"util-deprecate": {
|
||||||
|
"version": "1.0.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz",
|
||||||
|
"integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8="
|
||||||
|
},
|
||||||
|
"vinyl": {
|
||||||
|
"version": "2.2.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/vinyl/-/vinyl-2.2.0.tgz",
|
||||||
|
"integrity": "sha512-MBH+yP0kC/GQ5GwBqrTPTzEfiiLjta7hTtvQtbxBgTeSXsmKQRQecjibMbxIXzVT3Y9KJK+drOz1/k+vsu8Nkg==",
|
||||||
|
"requires": {
|
||||||
|
"clone": "^2.1.1",
|
||||||
|
"clone-buffer": "^1.0.0",
|
||||||
|
"clone-stats": "^1.0.0",
|
||||||
|
"cloneable-readable": "^1.0.0",
|
||||||
|
"remove-trailing-separator": "^1.0.1",
|
||||||
|
"replace-ext": "^1.0.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"vinyl-file": {
|
||||||
|
"version": "3.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/vinyl-file/-/vinyl-file-3.0.0.tgz",
|
||||||
|
"integrity": "sha1-sQTZ5ECf+jJfqt1SBkLQo7SIs2U=",
|
||||||
|
"requires": {
|
||||||
|
"graceful-fs": "^4.1.2",
|
||||||
|
"pify": "^2.3.0",
|
||||||
|
"strip-bom-buf": "^1.0.0",
|
||||||
|
"strip-bom-stream": "^2.0.0",
|
||||||
|
"vinyl": "^2.0.1"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"which": {
|
||||||
|
"version": "1.3.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz",
|
||||||
|
"integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"isexe": "^2.0.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"wrappy": {
|
||||||
|
"version": "1.0.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz",
|
||||||
|
"integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8="
|
||||||
|
},
|
||||||
|
"yn": {
|
||||||
|
"version": "2.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/yn/-/yn-2.0.0.tgz",
|
||||||
|
"integrity": "sha1-5a2ryKz0CPY4X8dklWhMiOavaJo=",
|
||||||
|
"dev": true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
79
package.json
79
package.json
@ -1,74 +1,37 @@
|
|||||||
{
|
{
|
||||||
"name": "@push.rocks/npmextra",
|
"name": "@pushrocks/npmextra",
|
||||||
"version": "5.1.2",
|
"version": "3.0.0",
|
||||||
"private": false,
|
"private": false,
|
||||||
"description": "A utility to enhance npm with additional configuration, tool management capabilities, and a key-value store for project setups.",
|
"description": "do more with npm",
|
||||||
"main": "dist_ts/index.js",
|
"main": "dist/index.js",
|
||||||
"typings": "dist_ts/index.d.ts",
|
"typings": "dist/index.d.ts",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "(tstest test/ --web)",
|
"test": "(tstest test/)",
|
||||||
"build": "(tsbuild --web --allowimplicitany)",
|
"build": "(tsbuild)"
|
||||||
"buildDocs": "tsdoc"
|
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://code.foss.global/push.rocks/npmextra.git"
|
"url": "git+ssh://git@gitlab.com/pushrocks/npmextra.git"
|
||||||
},
|
},
|
||||||
"author": "Lossless GmbH",
|
"author": "Lossless GmbH",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"bugs": {
|
"bugs": {
|
||||||
"url": "https://gitlab.com/pushrocks/npmextra/issues"
|
"url": "https://gitlab.com/pushrocks/npmextra/issues"
|
||||||
},
|
},
|
||||||
"homepage": "https://code.foss.global/push.rocks/npmextra",
|
"homepage": "https://gitlab.com/pushrocks/npmextra#README",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@push.rocks/qenv": "^6.0.5",
|
"@pushrocks/smartfile": "^6.0.8",
|
||||||
"@push.rocks/smartfile": "^11.0.20",
|
"@pushrocks/smartlog": "^2.0.1",
|
||||||
"@push.rocks/smartjson": "^5.0.20",
|
"@pushrocks/smartpath": "^4.0.1",
|
||||||
"@push.rocks/smartlog": "^3.0.7",
|
"@pushrocks/smartpromise": "^2.0.5",
|
||||||
"@push.rocks/smartpath": "^5.0.18",
|
"@pushrocks/taskbuffer": "^2.0.5",
|
||||||
"@push.rocks/smartpromise": "^4.0.2",
|
"smartlodash": "^1.0.1"
|
||||||
"@push.rocks/smartrx": "^3.0.7",
|
|
||||||
"@push.rocks/taskbuffer": "^3.1.7",
|
|
||||||
"@tsclass/tsclass": "^4.0.59"
|
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@git.zone/tsbuild": "^2.1.80",
|
"@gitzone/tsbuild": "^2.0.22",
|
||||||
"@git.zone/tsrun": "^1.2.44",
|
"@gitzone/tsrun": "^1.1.12",
|
||||||
"@git.zone/tstest": "^1.0.90",
|
"@gitzone/tstest": "^1.0.15",
|
||||||
"@push.rocks/tapbundle": "^5.0.23",
|
"@pushrocks/tapbundle": "^3.0.5",
|
||||||
"@types/node": "^20.14.5"
|
"@types/node": "^10.9.4"
|
||||||
},
|
}
|
||||||
"files": [
|
|
||||||
"ts/**/*",
|
|
||||||
"ts_web/**/*",
|
|
||||||
"dist/**/*",
|
|
||||||
"dist_*/**/*",
|
|
||||||
"dist_ts/**/*",
|
|
||||||
"dist_ts_web/**/*",
|
|
||||||
"assets/**/*",
|
|
||||||
"cli.js",
|
|
||||||
"npmextra.json",
|
|
||||||
"readme.md"
|
|
||||||
],
|
|
||||||
"browserslist": [
|
|
||||||
"last 1 chrome versions"
|
|
||||||
],
|
|
||||||
"type": "module",
|
|
||||||
"keywords": [
|
|
||||||
"npm",
|
|
||||||
"configuration management",
|
|
||||||
"tool management",
|
|
||||||
"key-value store",
|
|
||||||
"project setup",
|
|
||||||
"typescript",
|
|
||||||
"environment setup",
|
|
||||||
"dependencies management",
|
|
||||||
"npm package enhancement",
|
|
||||||
"automation",
|
|
||||||
"async operations",
|
|
||||||
"app configuration",
|
|
||||||
"smart file handling",
|
|
||||||
"workflow improvement",
|
|
||||||
"persistent storage"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
|
6757
pnpm-lock.yaml
generated
6757
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
311
readme.md
311
readme.md
@ -1,311 +0,0 @@
|
|||||||
# @push.rocks/npmextra
|
|
||||||
A utility to enhance npm with additional configuration, tool management capabilities, and a key-value store for project setups.
|
|
||||||
|
|
||||||
## Install
|
|
||||||
To install `@push.rocks/npmextra`, use the following npm command:
|
|
||||||
|
|
||||||
```bash
|
|
||||||
npm install @push.rocks/npmextra --save
|
|
||||||
```
|
|
||||||
|
|
||||||
This package is available on [npm](https://www.npmjs.com/package/@push.rocks/npmextra) and can be installed into your project as a dependency to enhance npm with additional configuration and tool management capabilities.
|
|
||||||
|
|
||||||
## Usage
|
|
||||||
`@push.rocks/npmextra` is designed to supplement npm functionalities with enhanced configuration and tool management. It facilitates the management of project configurations and tool setups in a consolidated manner, enabling a smoother workflow and maintenance process. Below are detailed use cases and examples implemented with ESM syntax and TypeScript.
|
|
||||||
|
|
||||||
### Initial Setup and Configuration
|
|
||||||
To start using `npmextra` in your project, first include it with an import statement:
|
|
||||||
|
|
||||||
```typescript
|
|
||||||
import { Npmextra } from '@push.rocks/npmextra';
|
|
||||||
```
|
|
||||||
|
|
||||||
Instantiate the `Npmextra` class optionally with a custom path to your project's working directory. If no path is provided, the current working directory (`process.cwd()`) is used.
|
|
||||||
|
|
||||||
```typescript
|
|
||||||
const npmExtraInstance = new Npmextra('/path/to/your/project');
|
|
||||||
```
|
|
||||||
|
|
||||||
### Managing Tool Configurations with `npmextra.json`
|
|
||||||
`@push.rocks/npmextra` excels in unifying tool configurations through a single `npmextra.json` file. Instead of scattering configurations across multiple files, `npmextra` enables you to define tool-specific settings within this centralized configuration file, which can then be accessed programmatically.
|
|
||||||
|
|
||||||
#### Creating and Utilizing `npmextra.json`
|
|
||||||
|
|
||||||
Create a `npmextra.json` in your project root with the following structure:
|
|
||||||
|
|
||||||
```json
|
|
||||||
{
|
|
||||||
"toolname": {
|
|
||||||
"setting1": "value1",
|
|
||||||
"setting2": "value2"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
For example, to configure a hypothetical tool named `toolname`, define its settings as shown above.
|
|
||||||
|
|
||||||
#### Accessing Configuration in Your Project
|
|
||||||
|
|
||||||
With the configuration defined, you can easily access these settings in your TypeScript code as follows:
|
|
||||||
|
|
||||||
```typescript
|
|
||||||
// Import the npmextra module
|
|
||||||
import { Npmextra } from '@push.rocks/npmextra';
|
|
||||||
|
|
||||||
// Create an instance pointing at the current directory
|
|
||||||
const npmExtraInstance = new Npmextra();
|
|
||||||
|
|
||||||
// Retrieve the configuration for 'toolname', merging defaults with any found in npmextra.json
|
|
||||||
const toolConfig = npmExtraInstance.dataFor<{ setting1: string, setting2: string }>('toolname', {
|
|
||||||
setting1: 'defaultValue1',
|
|
||||||
setting2: 'defaultValue2'
|
|
||||||
});
|
|
||||||
|
|
||||||
// toolConfig now contains the merged settings from npmextra.json and provided defaults
|
|
||||||
console.log(toolConfig);
|
|
||||||
```
|
|
||||||
|
|
||||||
### Key-Value Store Management
|
|
||||||
`@push.rocks/npmextra` also includes a Key-Value Store (KeyValueStore) functionality enabling persistent storage of key-value pairs between script executions.
|
|
||||||
|
|
||||||
#### Setting Up KeyValueStore
|
|
||||||
|
|
||||||
To utilize the KeyValueStore, create an instance specifying its scope (e.g., 'userHomeDir') and a unique identity for your application or tool:
|
|
||||||
|
|
||||||
```typescript
|
|
||||||
import { KeyValueStore } from '@push.rocks/npmextra';
|
|
||||||
|
|
||||||
const kvStore = new KeyValueStore<'userHomeDir'>({
|
|
||||||
typeArg: 'userHomeDir',
|
|
||||||
identityArg: 'myUniqueAppName'
|
|
||||||
});
|
|
||||||
```
|
|
||||||
|
|
||||||
You can then use the `writeKey`, `readKey`, `writeAll`, and `readAll` methods to manage your store respectively.
|
|
||||||
|
|
||||||
#### Example: Storing and Retrieving Data
|
|
||||||
|
|
||||||
```typescript
|
|
||||||
// Write a single key-value pair
|
|
||||||
await kvStore.writeKey('username', 'johnDoe');
|
|
||||||
|
|
||||||
// Read a single key
|
|
||||||
const username = await kvStore.readKey('username');
|
|
||||||
console.log(username); // Outputs: johnDoe
|
|
||||||
|
|
||||||
// Write multiple key-value pairs
|
|
||||||
await kvStore.writeAll({
|
|
||||||
email: 'john@example.com',
|
|
||||||
isAdmin: true
|
|
||||||
});
|
|
||||||
|
|
||||||
// Read all key-value pairs
|
|
||||||
const allData = await kvStore.readAll();
|
|
||||||
console.log(allData); // Outputs the entire store's contents
|
|
||||||
```
|
|
||||||
|
|
||||||
### Advanced Key-Value Store Management
|
|
||||||
|
|
||||||
In addition to basic read/write operations, `npmextra`’s `KeyValueStore` supports advanced scenarios like mandatory keys and custom file paths.
|
|
||||||
|
|
||||||
#### Example: Mandatory Keys and Custom Paths
|
|
||||||
|
|
||||||
Consider a scenario where your application requires specific keys to be present in the KeyValueStore. You can define mandatory keys and use a custom path for your store like this:
|
|
||||||
|
|
||||||
```typescript
|
|
||||||
import { KeyValueStore } from '@push.rocks/npmextra';
|
|
||||||
|
|
||||||
interface CustomData {
|
|
||||||
key1: string;
|
|
||||||
key2: number;
|
|
||||||
key3?: boolean;
|
|
||||||
}
|
|
||||||
|
|
||||||
const kvStore = new KeyValueStore<CustomData>({
|
|
||||||
typeArg: 'custom',
|
|
||||||
identityArg: 'customApp',
|
|
||||||
customPath: '/custom/path/to/store.json',
|
|
||||||
mandatoryKeys: ['key1', 'key2']
|
|
||||||
});
|
|
||||||
|
|
||||||
// Ensure all mandatory keys are present
|
|
||||||
const missingKeys = await kvStore.getMissingMandatoryKeys();
|
|
||||||
if (missingKeys.length) {
|
|
||||||
console.log(`Missing mandatory keys: ${missingKeys.join(', ')}`);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Use the KeyValueStore
|
|
||||||
await kvStore.writeKey('key1', 'value1');
|
|
||||||
await kvStore.writeKey('key2', 123);
|
|
||||||
|
|
||||||
const key1Value = await kvStore.readKey('key1');
|
|
||||||
const allData = await kvStore.readAll();
|
|
||||||
|
|
||||||
console.log(key1Value); // Outputs: value1
|
|
||||||
console.log(allData); // Outputs: { key1: 'value1', key2: 123 }
|
|
||||||
```
|
|
||||||
|
|
||||||
### Combining AppData and KeyValueStore
|
|
||||||
|
|
||||||
The `AppData` class extends the functionality of `KeyValueStore` by integrating environmental variables, specifying additional configurations, and providing a more structured approach to data management.
|
|
||||||
|
|
||||||
#### Example: AppData Usage
|
|
||||||
|
|
||||||
```typescript
|
|
||||||
import { AppData } from '@push.rocks/npmextra';
|
|
||||||
|
|
||||||
interface AppSettings {
|
|
||||||
settingA: string;
|
|
||||||
settingB: number;
|
|
||||||
nestedSetting: {
|
|
||||||
innerSetting: boolean;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const appDataInstance = await AppData.createAndInit<AppSettings>({
|
|
||||||
dirPath: '/custom/path/to/appdata',
|
|
||||||
requiredKeys: ['settingA', 'settingB'],
|
|
||||||
envMapping: {
|
|
||||||
settingA: 'MY_ENV_A',
|
|
||||||
settingB: 'hard:42',
|
|
||||||
nestedSetting: {
|
|
||||||
innerSetting: 'MY_ENV_INNER'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
const appDataKvStore = await appDataInstance.getKvStore();
|
|
||||||
|
|
||||||
// Writing values
|
|
||||||
await appDataKvStore.writeKey('settingA', 'exampleValue');
|
|
||||||
await appDataKvStore.writeKey('settingB', 100);
|
|
||||||
await appDataKvStore.writeKey('nestedSetting', { innerSetting: true });
|
|
||||||
|
|
||||||
// Reading values
|
|
||||||
const settingA = await appDataKvStore.readKey('settingA');
|
|
||||||
const allSettings = await appDataKvStore.readAll();
|
|
||||||
|
|
||||||
console.log(settingA); // Outputs: 'exampleValue'
|
|
||||||
console.log(allSettings); // Outputs: { settingA: 'exampleValue', settingB: 100, nestedSetting: { innerSetting: true } }
|
|
||||||
```
|
|
||||||
|
|
||||||
### Error Handling and Debugging
|
|
||||||
|
|
||||||
Proper error handling ensures your integrations with `npmextra` are robust and stable. Below are some strategies for error handling and debugging potential issues.
|
|
||||||
|
|
||||||
#### Example: Error Handling in KeyValueStore
|
|
||||||
|
|
||||||
```typescript
|
|
||||||
import { KeyValueStore } from '@push.rocks/npmextra';
|
|
||||||
|
|
||||||
const kvStore = new KeyValueStore('userHomeDir', 'errorHandlingApp');
|
|
||||||
|
|
||||||
try {
|
|
||||||
await kvStore.writeKey('importantKey', 'importantValue');
|
|
||||||
const value = await kvStore.readKey('importantKey');
|
|
||||||
console.log(value); // Outputs: importantValue
|
|
||||||
} catch (error) {
|
|
||||||
console.error('Error managing key-value store:', error);
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
#### Debugging Configuration Issues in `npmextra.json`
|
|
||||||
|
|
||||||
To debug configuration issues, you can utilize conditional logging and checks:
|
|
||||||
|
|
||||||
```typescript
|
|
||||||
import { Npmextra } from '@push.rocks/npmextra';
|
|
||||||
|
|
||||||
const npmExtraInstance = new Npmextra();
|
|
||||||
const toolConfig = npmExtraInstance.dataFor('toolname', {
|
|
||||||
configKey1: 'defaultValue1',
|
|
||||||
configKey2: 'defaultValue2'
|
|
||||||
});
|
|
||||||
|
|
||||||
if (!toolConfig.configKey1) {
|
|
||||||
console.error('configKey1 is missing in npmextra.json');
|
|
||||||
}
|
|
||||||
|
|
||||||
console.log(toolConfig);
|
|
||||||
```
|
|
||||||
|
|
||||||
### Integration Tests
|
|
||||||
|
|
||||||
Writing tests ensures that your integration with `npmextra` works as expected. Below are examples of integration tests for both `Npmextra` and `KeyValueStore`.
|
|
||||||
|
|
||||||
#### Example: Testing `Npmextra` Class
|
|
||||||
|
|
||||||
```typescript
|
|
||||||
import { expect, tap } from '@push.rocks/tapbundle';
|
|
||||||
import { Npmextra } from '@push.rocks/npmextra';
|
|
||||||
|
|
||||||
let npmExtraInstance: Npmextra;
|
|
||||||
|
|
||||||
tap.test('should create an instance of Npmextra', async () => {
|
|
||||||
npmExtraInstance = new Npmextra();
|
|
||||||
expect(npmExtraInstance).toBeInstanceOf(Npmextra);
|
|
||||||
});
|
|
||||||
|
|
||||||
tap.test('should load configuration from npmextra.json', async () => {
|
|
||||||
const config = npmExtraInstance.dataFor('toolname', {
|
|
||||||
defaultKey1: 'defaultValue1',
|
|
||||||
});
|
|
||||||
expect(config).toHaveProperty('defaultKey1');
|
|
||||||
});
|
|
||||||
|
|
||||||
tap.start();
|
|
||||||
```
|
|
||||||
|
|
||||||
#### Example: Testing `KeyValueStore` Class
|
|
||||||
|
|
||||||
```typescript
|
|
||||||
import { expect, tap } from '@push.rocks/tapbundle';
|
|
||||||
import { KeyValueStore } from '@push.rocks/npmextra';
|
|
||||||
|
|
||||||
let kvStore: KeyValueStore<{ key1: string, key2: number }>;
|
|
||||||
|
|
||||||
tap.test('should create a KeyValueStore instance', async () => {
|
|
||||||
kvStore = new KeyValueStore({
|
|
||||||
typeArg: 'userHomeDir',
|
|
||||||
identityArg: 'testApp'
|
|
||||||
});
|
|
||||||
expect(kvStore).toBeInstanceOf(KeyValueStore);
|
|
||||||
});
|
|
||||||
|
|
||||||
tap.test('should write and read back a value', async () => {
|
|
||||||
await kvStore.writeKey('key1', 'value1');
|
|
||||||
const result = await kvStore.readKey('key1');
|
|
||||||
expect(result).toEqual('value1');
|
|
||||||
});
|
|
||||||
|
|
||||||
tap.test('should write and read back multiple values', async () => {
|
|
||||||
await kvStore.writeAll({ key1: 'updatedValue1', key2: 2 });
|
|
||||||
const result = await kvStore.readAll();
|
|
||||||
expect(result).toEqual({ key1: 'updatedValue1', key2: 2 });
|
|
||||||
});
|
|
||||||
|
|
||||||
tap.start();
|
|
||||||
```
|
|
||||||
|
|
||||||
### Summary
|
|
||||||
|
|
||||||
By centralizing configuration management and offering a versatile key-value store, `@push.rocks/npmextra` significantly simplifies the setup and management of tools and settings in modern JavaScript and TypeScript projects. Whether you're managing project-wide configurations or need persistent storage for key-value pairs, `npmextra` provides an efficient and streamlined solution. Leveraging these robust features will ensure your project is well-configured and maintainable.
|
|
||||||
|
|
||||||
## License and Legal Information
|
|
||||||
|
|
||||||
This repository contains open-source code that is licensed under the MIT License. A copy of the MIT License can be found in the [license](license) file within this repository.
|
|
||||||
|
|
||||||
**Please note:** The MIT License does not grant permission to use the trade names, trademarks, service marks, or product names of the project, except as required for reasonable and customary use in describing the origin of the work and reproducing the content of the NOTICE file.
|
|
||||||
|
|
||||||
### Trademarks
|
|
||||||
|
|
||||||
This project is owned and maintained by Task Venture Capital GmbH. The names and logos associated with Task Venture Capital GmbH and any related products or services are trademarks of Task Venture Capital GmbH and are not included within the scope of the MIT license granted herein. Use of these trademarks must comply with Task Venture Capital GmbH's Trademark Guidelines, and any usage must be approved in writing by Task Venture Capital GmbH.
|
|
||||||
|
|
||||||
### Company Information
|
|
||||||
|
|
||||||
Task Venture Capital GmbH
|
|
||||||
Registered at District court Bremen HRB 35230 HB, Germany
|
|
||||||
|
|
||||||
For any legal inquiries or if you require further information, please contact us via email at hello@task.vc.
|
|
||||||
|
|
||||||
By using this repository, you acknowledge that you have read this section, agree to comply with its terms, and understand that the licensing of the code does not imply endorsement by Task Venture Capital GmbH of any derivative works.
|
|
@ -1,3 +0,0 @@
|
|||||||
{
|
|
||||||
"myKey": "myValue"
|
|
||||||
}
|
|
@ -1,27 +0,0 @@
|
|||||||
import { expect, tap } from '@push.rocks/tapbundle';
|
|
||||||
import path = require('path');
|
|
||||||
|
|
||||||
// module to test
|
|
||||||
import * as npmextra from '../ts/index.js';
|
|
||||||
|
|
||||||
interface ITestOptions {
|
|
||||||
hi: string;
|
|
||||||
deep: {
|
|
||||||
deep1: string;
|
|
||||||
deep2: string;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
let testAppdata: npmextra.AppData<ITestOptions>;
|
|
||||||
|
|
||||||
tap.test('should create a valid AppData', async () => {
|
|
||||||
testAppdata = new npmextra.AppData<ITestOptions>({
|
|
||||||
envMapping: {
|
|
||||||
deep: {
|
|
||||||
deep1: '',
|
|
||||||
},
|
|
||||||
},
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
||||||
export default tap.start();
|
|
@ -1,32 +1,25 @@
|
|||||||
import { expect, tap } from '@push.rocks/tapbundle';
|
import { expect, tap } from '@pushrocks/tapbundle';
|
||||||
|
|
||||||
import * as npmextra from '../ts/index.js';
|
import * as npmextra from '../ts/index';
|
||||||
|
|
||||||
let myKeyValueStore: npmextra.KeyValueStore<any>;
|
let myKeyValueStore: npmextra.KeyValueStore;
|
||||||
|
|
||||||
tap.test('should create a keyValueStore', async () => {
|
tap.test('should create a keyValueStore', async () => {
|
||||||
myKeyValueStore = new npmextra.KeyValueStore<any>({
|
myKeyValueStore = new npmextra.KeyValueStore('custom', 'test');
|
||||||
typeArg: 'custom',
|
expect(myKeyValueStore).to.be.instanceof(npmextra.KeyValueStore);
|
||||||
identityArg: 'test',
|
|
||||||
customPath: 'test/somekv.json',
|
|
||||||
});
|
|
||||||
expect(myKeyValueStore).toBeInstanceOf(npmextra.KeyValueStore);
|
|
||||||
});
|
|
||||||
|
|
||||||
tap.test('should reset the keyValueStore', async () => {
|
|
||||||
await myKeyValueStore.reset();
|
|
||||||
});
|
});
|
||||||
|
|
||||||
tap.test('expect result to be empty', async () => {
|
tap.test('expect result to be empty', async () => {
|
||||||
let result = await myKeyValueStore.readAll();
|
let result = myKeyValueStore.readAll();
|
||||||
expect(JSON.stringify(result)).toEqual('{}');
|
// tslint:disable-next-line:no-unused-expression
|
||||||
|
expect(result).to.be.empty;
|
||||||
});
|
});
|
||||||
|
|
||||||
tap.test('expect to add an object to the kv Store', async () => {
|
tap.test('expect to add an object to the kv Store', async () => {
|
||||||
await myKeyValueStore.writeAll({
|
await myKeyValueStore.writeAll({
|
||||||
myKey: 'myValue',
|
myKey: 'myValue'
|
||||||
});
|
});
|
||||||
await expect(await myKeyValueStore.readKey('myKey')).toEqual('myValue');
|
await expect(myKeyValueStore.readKey('myKey')).to.eventually.equal('myValue');
|
||||||
});
|
});
|
||||||
|
|
||||||
tap.start();
|
tap.start();
|
||||||
|
20
test/test.ts
20
test/test.ts
@ -1,33 +1,33 @@
|
|||||||
import { expect, tap } from '@push.rocks/tapbundle';
|
import { expect, tap } from '@pushrocks/tapbundle';
|
||||||
import path = require('path');
|
import path = require('path');
|
||||||
|
|
||||||
// module to test
|
// module to test
|
||||||
import * as npmextra from '../ts/index.js';
|
import npmExtra = require('../ts/index');
|
||||||
|
|
||||||
let testNpmextra: npmextra.Npmextra;
|
let testNpmextra: npmExtra.Npmextra;
|
||||||
|
|
||||||
tap.test('should create a new Npmtextra instance', async () => {
|
tap.test('should create a new Npmtextra instance', async () => {
|
||||||
testNpmextra = new npmextra.Npmextra('./test/');
|
testNpmextra = new npmExtra.Npmextra('./test/');
|
||||||
expect(testNpmextra).toBeInstanceOf(npmextra.Npmextra);
|
expect(testNpmextra).be.instanceof(npmExtra.Npmextra);
|
||||||
});
|
});
|
||||||
|
|
||||||
tap.test('should state wether a npmextra.json exists', async () => {
|
tap.test('should state wether a npmextra.json exists', async () => {
|
||||||
// tslint:disable-next-line:no-unused-expression
|
// tslint:disable-next-line:no-unused-expression
|
||||||
expect(testNpmextra.npmextraJsonExists).toBeTrue();
|
expect(testNpmextra.npmextraJsonExists).be.true;
|
||||||
});
|
});
|
||||||
|
|
||||||
tap.test('should pass through default value, if not overriden by config from file', async () => {
|
tap.test('should pass through default value, if not overriden by config from file', async () => {
|
||||||
let testData = testNpmextra.dataFor('testTool', { someKey2: 'someValue2' });
|
let testData = testNpmextra.dataFor('testTool', { someKey2: 'someValue2' });
|
||||||
console.log(testData);
|
console.log(testData);
|
||||||
expect(testData).toHaveProperty('someKey2');
|
expect(testData).have.ownProperty('someKey2');
|
||||||
});
|
});
|
||||||
|
|
||||||
tap.test('should read a config file', async () => {
|
tap.test('should read a config file', async () => {
|
||||||
let testData = testNpmextra.dataFor<any>('testTool', {
|
let testData = testNpmextra.dataFor<any>('testTool', {
|
||||||
someKey2: 'someValue2',
|
someKey2: 'someValue2'
|
||||||
});
|
});
|
||||||
expect(testData).toHaveProperty('someKey2');
|
expect(testData).have.ownProperty('someKey2');
|
||||||
expect(testData.testValue).toEqual(2);
|
expect(testData.testValue).equal(2);
|
||||||
});
|
});
|
||||||
|
|
||||||
tap.start();
|
tap.start();
|
||||||
|
@ -1,8 +0,0 @@
|
|||||||
/**
|
|
||||||
* autocreated commitinfo by @push.rocks/commitinfo
|
|
||||||
*/
|
|
||||||
export const commitinfo = {
|
|
||||||
name: '@push.rocks/npmextra',
|
|
||||||
version: '5.1.2',
|
|
||||||
description: 'A utility to enhance npm with additional configuration, tool management capabilities, and a key-value store for project setups.'
|
|
||||||
}
|
|
@ -1,3 +1,4 @@
|
|||||||
export * from './npmextra.classes.appdata.js';
|
import * as plugins from './npmextra.plugins';
|
||||||
export * from './npmextra.classes.keyvaluestore.js';
|
|
||||||
export * from './npmextra.classes.npmextra.js';
|
export * from './npmextra.classes.npmextra';
|
||||||
|
export * from './npmextra.classes.keyvaluestore';
|
||||||
|
@ -1,219 +0,0 @@
|
|||||||
import * as plugins from './npmextra.plugins.js';
|
|
||||||
import * as paths from './npmextra.paths.js';
|
|
||||||
import { KeyValueStore } from './npmextra.classes.keyvaluestore.js';
|
|
||||||
|
|
||||||
export interface IAppDataOptions<T = any> {
|
|
||||||
dirPath?: string;
|
|
||||||
requiredKeys?: Array<keyof T>;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* wether keys should be persisted on disk or not
|
|
||||||
*/
|
|
||||||
ephermal?: boolean;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* kvStoreKey: 'MY_ENV_VAR'
|
|
||||||
*/
|
|
||||||
envMapping?: plugins.tsclass.typeFest.PartialDeep<T>;
|
|
||||||
overwriteObject?: plugins.tsclass.typeFest.PartialDeep<T>;
|
|
||||||
}
|
|
||||||
|
|
||||||
export class AppData<T = any> {
|
|
||||||
/**
|
|
||||||
* creates appdata. If no pathArg is given, data will be stored here:
|
|
||||||
* ${PWD}/.nogit/appdata
|
|
||||||
* @param pathArg
|
|
||||||
* @returns
|
|
||||||
*/
|
|
||||||
public static async createAndInit<T = any>(
|
|
||||||
optionsArg: IAppDataOptions<T> = {}
|
|
||||||
): Promise<AppData<T>> {
|
|
||||||
const appData = new AppData<T>(optionsArg);
|
|
||||||
await appData.readyDeferred.promise;
|
|
||||||
return appData;
|
|
||||||
}
|
|
||||||
|
|
||||||
// instance
|
|
||||||
public readyDeferred = plugins.smartpromise.defer<void>();
|
|
||||||
public options: IAppDataOptions<T>;
|
|
||||||
private kvStore: KeyValueStore<T>;
|
|
||||||
|
|
||||||
constructor(optionsArg: IAppDataOptions<T> = {}) {
|
|
||||||
this.options = optionsArg;
|
|
||||||
this.init();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* inits app data
|
|
||||||
* @param pathArg
|
|
||||||
*/
|
|
||||||
private async init(pathArg?: string) {
|
|
||||||
if (this.options.dirPath || this.options.ephermal) {
|
|
||||||
// ok, nothing to do here;
|
|
||||||
} else {
|
|
||||||
const appDataDir = '/app/data';
|
|
||||||
const dataDir = '/data';
|
|
||||||
const nogitAppData = '.nogit/appdata';
|
|
||||||
const appDataExists = plugins.smartfile.fs.isDirectory(appDataDir);
|
|
||||||
const dataExists = plugins.smartfile.fs.isDirectory(dataDir);
|
|
||||||
if (appDataExists) {
|
|
||||||
this.options.dirPath = appDataDir;
|
|
||||||
} else if (dataExists) {
|
|
||||||
this.options.dirPath = dataDir;
|
|
||||||
} else {
|
|
||||||
await plugins.smartfile.fs.ensureDir(nogitAppData);
|
|
||||||
this.options.dirPath = nogitAppData;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
this.kvStore = new KeyValueStore<T>({
|
|
||||||
typeArg: this.options.ephermal ? 'ephemeral' : 'custom',
|
|
||||||
identityArg: 'appkv',
|
|
||||||
customPath: this.options.dirPath,
|
|
||||||
mandatoryKeys: this.options.requiredKeys as Array<keyof T>,
|
|
||||||
});
|
|
||||||
|
|
||||||
if (this.options.envMapping) {
|
|
||||||
const qenvInstance = new plugins.qenv.Qenv(
|
|
||||||
process.cwd(),
|
|
||||||
plugins.path.join(process.cwd(), '.nogit')
|
|
||||||
);
|
|
||||||
|
|
||||||
// Recursive function to handle nested objects, now includes key parameter
|
|
||||||
const processEnvMapping = async (
|
|
||||||
key: keyof T,
|
|
||||||
mappingValue: any,
|
|
||||||
parentKey: keyof T | '' = ''
|
|
||||||
): Promise<any> => {
|
|
||||||
if (typeof mappingValue === 'string') {
|
|
||||||
let envValue: string | boolean | T[keyof T];
|
|
||||||
let convert: 'none' | 'json' | 'base64' | 'boolean' = 'none';
|
|
||||||
switch (true) {
|
|
||||||
case mappingValue.startsWith('hard:'):
|
|
||||||
envValue = mappingValue.replace('hard:', '') as T[keyof T];
|
|
||||||
break;
|
|
||||||
case mappingValue.startsWith('hard_boolean:'):
|
|
||||||
envValue = mappingValue.replace('hard_boolean:', '') === 'true';
|
|
||||||
convert = 'boolean';
|
|
||||||
break;
|
|
||||||
case mappingValue.startsWith('hard_json:'):
|
|
||||||
envValue = JSON.parse(mappingValue.replace('hard_json:', '')) as T[keyof T];
|
|
||||||
convert = 'json';
|
|
||||||
break;
|
|
||||||
case mappingValue.startsWith('hard_base64:'):
|
|
||||||
envValue = Buffer.from(
|
|
||||||
mappingValue.replace('hard_base64:', ''),
|
|
||||||
'base64'
|
|
||||||
).toString() as T[keyof T];
|
|
||||||
convert = 'base64';
|
|
||||||
break;
|
|
||||||
case mappingValue.startsWith('boolean:'):
|
|
||||||
envValue = (await qenvInstance.getEnvVarOnDemand(
|
|
||||||
mappingValue.replace('boolean:', '')
|
|
||||||
)) as T[keyof T];
|
|
||||||
convert = 'boolean';
|
|
||||||
break;
|
|
||||||
case mappingValue.startsWith('json:'):
|
|
||||||
envValue = (await qenvInstance.getEnvVarOnDemand(
|
|
||||||
mappingValue.replace('json:', '')
|
|
||||||
)) as T[keyof T];
|
|
||||||
convert = 'json';
|
|
||||||
break;
|
|
||||||
case mappingValue.startsWith('base64:'):
|
|
||||||
envValue = (await qenvInstance.getEnvVarOnDemand(
|
|
||||||
mappingValue.replace('base64:', '')
|
|
||||||
)) as T[keyof T];
|
|
||||||
convert = 'base64';
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
envValue = (await qenvInstance.getEnvVarOnDemand(mappingValue)) as T[keyof T];
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
// lets format the env value
|
|
||||||
if (envValue) {
|
|
||||||
if (typeof envValue === 'string' && convert === 'boolean') {
|
|
||||||
envValue = envValue === 'true';
|
|
||||||
}
|
|
||||||
if (
|
|
||||||
typeof envValue === 'string' &&
|
|
||||||
(mappingValue.endsWith('_JSON') || convert === 'json')
|
|
||||||
) {
|
|
||||||
envValue = JSON.parse(envValue as string) as T[keyof T];
|
|
||||||
}
|
|
||||||
if (
|
|
||||||
typeof envValue === 'string' &&
|
|
||||||
(mappingValue.endsWith('_BASE64') || convert === 'base64')
|
|
||||||
) {
|
|
||||||
envValue = Buffer.from(envValue as string, 'base64').toString();
|
|
||||||
}
|
|
||||||
if (!parentKey) {
|
|
||||||
await this.kvStore.writeKey(key, envValue as any);
|
|
||||||
} else {
|
|
||||||
return envValue;
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
return undefined;
|
|
||||||
}
|
|
||||||
} else if (typeof mappingValue === 'object' && mappingValue !== null) {
|
|
||||||
const resultObject: Partial<T> = {};
|
|
||||||
for (const innerKey in mappingValue) {
|
|
||||||
const nestedValue = mappingValue[innerKey];
|
|
||||||
// For nested objects, call recursively but do not immediately write to kvStore
|
|
||||||
const nestedResult = await processEnvMapping(innerKey as keyof T, nestedValue, key);
|
|
||||||
resultObject[innerKey as keyof T] = nestedResult;
|
|
||||||
}
|
|
||||||
if (parentKey === '') {
|
|
||||||
// Only write to kvStore if at the top level
|
|
||||||
await this.kvStore.writeKey(key, resultObject as T[keyof T]);
|
|
||||||
} else {
|
|
||||||
// For nested objects, return the constructed object instead of writing to kvStore
|
|
||||||
return resultObject;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
for (const key in this.options.envMapping) {
|
|
||||||
await processEnvMapping(key as keyof T, this.options.envMapping[key]);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (this.options.overwriteObject) {
|
|
||||||
for (const key of Object.keys(this.options.overwriteObject)) {
|
|
||||||
console.log(`-> heads up: overwriting key ${key} from options.overwriteObject`);
|
|
||||||
await this.kvStore.writeKey(key as keyof T, this.options.overwriteObject[key]);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
this.readyDeferred.resolve();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* returns a kvstore that resides in appdata
|
|
||||||
*/
|
|
||||||
public async getKvStore(): Promise<KeyValueStore<T>> {
|
|
||||||
await this.readyDeferred.promise;
|
|
||||||
return this.kvStore;
|
|
||||||
}
|
|
||||||
|
|
||||||
public async logMissingKeys(): Promise<Array<keyof T>> {
|
|
||||||
const kvStore = await this.getKvStore();
|
|
||||||
const missingMandatoryKeys = await kvStore.getMissingMandatoryKeys();
|
|
||||||
if (missingMandatoryKeys.length > 0) {
|
|
||||||
console.log(
|
|
||||||
`The following mandatory keys are missing in the appdata:\n -> ${missingMandatoryKeys.join(
|
|
||||||
',\n -> '
|
|
||||||
)}`
|
|
||||||
);
|
|
||||||
} else {
|
|
||||||
console.log('All mandatory keys are present in the appdata');
|
|
||||||
}
|
|
||||||
return missingMandatoryKeys;
|
|
||||||
}
|
|
||||||
|
|
||||||
public async waitForAndGetKey<K extends keyof T>(keyArg: K): Promise<T[K] | undefined> {
|
|
||||||
await this.readyDeferred.promise;
|
|
||||||
await this.kvStore.waitForKeysPresent([keyArg]);
|
|
||||||
return this.kvStore.readKey(keyArg);
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,205 +1,120 @@
|
|||||||
import * as plugins from './npmextra.plugins.js';
|
import * as plugins from './npmextra.plugins';
|
||||||
import * as paths from './npmextra.paths.js';
|
import * as paths from './npmextra.paths';
|
||||||
|
|
||||||
import { Task } from '@push.rocks/taskbuffer';
|
import { Task, TaskOnce } from '@pushrocks/taskbuffer';
|
||||||
|
|
||||||
export type TKeyValueStore = 'custom' | 'userHomeDir' | 'ephemeral';
|
export type TKeyValueStore = 'path' | 'gitProject' | 'custom';
|
||||||
|
|
||||||
export interface IKvStoreConstructorOptions<T> {
|
|
||||||
typeArg: TKeyValueStore;
|
|
||||||
identityArg: string;
|
|
||||||
customPath?: string;
|
|
||||||
mandatoryKeys?: Array<keyof T>;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* kvStore is a simple key value store to store data about projects between runs
|
* kvStore is a simple key vlaue store to store data about projects between runs
|
||||||
*/
|
*/
|
||||||
export class KeyValueStore<T = any> {
|
export class KeyValueStore {
|
||||||
private dataObject: Partial<T> = {};
|
dataObject: any;
|
||||||
private deletedObject: Partial<T> = {};
|
deletedObject: any = {};
|
||||||
private mandatoryKeys: Set<keyof T> = new Set();
|
initialReadTask = new TaskOnce({
|
||||||
public changeSubject = new plugins.smartrx.rxjs.Subject<Partial<T>>();
|
|
||||||
|
|
||||||
private storedStateString: string = '';
|
|
||||||
public syncTask = new Task({
|
|
||||||
name: 'syncTask',
|
|
||||||
buffered: true,
|
|
||||||
bufferMax: 1,
|
|
||||||
execDelay: 0,
|
|
||||||
taskFunction: async () => {
|
taskFunction: async () => {
|
||||||
if (this.type !== 'ephemeral') {
|
this.dataObject = plugins.smartfile.fs.toObjectSync(this.filePath);
|
||||||
this.dataObject = {
|
}
|
||||||
...plugins.smartfile.fs.toObjectSync(this.filePath),
|
|
||||||
...this.dataObject,
|
|
||||||
};
|
|
||||||
for (const key of Object.keys(this.deletedObject) as Array<keyof T>) {
|
|
||||||
delete this.dataObject[key];
|
|
||||||
}
|
|
||||||
this.deletedObject = {};
|
|
||||||
await plugins.smartfile.memory.toFs(
|
|
||||||
plugins.smartjson.stringifyPretty(this.dataObject),
|
|
||||||
this.filePath
|
|
||||||
);
|
|
||||||
}
|
|
||||||
const newStateString = plugins.smartjson.stringify(this.dataObject);
|
|
||||||
|
|
||||||
// change detection
|
|
||||||
if (newStateString !== this.storedStateString) {
|
|
||||||
this.storedStateString = newStateString;
|
|
||||||
this.changeSubject.next(this.dataObject);
|
|
||||||
}
|
|
||||||
},
|
|
||||||
});
|
});
|
||||||
|
syncTask = new Task({
|
||||||
/**
|
buffered: true,
|
||||||
* computes the identity and filePath
|
bufferMax: 2,
|
||||||
*/
|
execDelay: 500,
|
||||||
private initFilePath = () => {
|
taskFunction: async () => {
|
||||||
if (this.type === 'ephemeral') {
|
this.dataObject = plugins.smartlodash.merge(
|
||||||
// No file path is needed for ephemeral type
|
{},
|
||||||
return;
|
plugins.smartfile.fs.toObjectSync(this.filePath),
|
||||||
}
|
this.dataObject
|
||||||
if (this.customPath) {
|
);
|
||||||
// Use custom path if provided
|
for (let key in this.deletedObject) {
|
||||||
const absolutePath = plugins.smartpath.transform.makeAbsolute(this.customPath, paths.cwd);
|
delete this.dataObject[key];
|
||||||
this.filePath = absolutePath;
|
|
||||||
if (plugins.smartfile.fs.isDirectorySync(this.filePath)) {
|
|
||||||
this.filePath = plugins.path.join(this.filePath, this.identity + '.json');
|
|
||||||
}
|
}
|
||||||
plugins.smartfile.fs.ensureFileSync(this.filePath, '{}');
|
this.deletedObject = {};
|
||||||
return;
|
await plugins.smartfile.memory.toFs(JSON.stringify(this.dataObject), this.filePath);
|
||||||
}
|
},
|
||||||
|
name: 'syncTask'
|
||||||
let baseDir: string;
|
});
|
||||||
if (this.type === 'userHomeDir') {
|
type: TKeyValueStore; // the type of the kvStore
|
||||||
baseDir = paths.kvUserHomeDirBase;
|
identity: string; // the identity of the kvStore
|
||||||
} else {
|
filePath: string; // the filePath of the kvStore
|
||||||
throw new Error('kv type not supported');
|
|
||||||
}
|
|
||||||
this.filePath = plugins.path.join(baseDir, this.identity + '.json');
|
|
||||||
plugins.smartfile.fs.ensureDirSync(baseDir);
|
|
||||||
plugins.smartfile.fs.ensureFileSync(this.filePath, '{}');
|
|
||||||
};
|
|
||||||
|
|
||||||
// if no custom path is provided, try to store at home directory
|
|
||||||
public type: TKeyValueStore;
|
|
||||||
public identity: string;
|
|
||||||
public filePath?: string;
|
|
||||||
private customPath?: string; // Optionally allow custom path
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* the constructor of keyvalue store
|
* the constructor of keyvalue store
|
||||||
* @param typeArg
|
* @param typeArg
|
||||||
* @param identityArg
|
* @param customStringArg
|
||||||
* @param customPath Optional custom path for the keyValue store
|
|
||||||
*/
|
*/
|
||||||
constructor(optionsArg: IKvStoreConstructorOptions<T>) {
|
constructor(typeArg: TKeyValueStore, customStringArg: string) {
|
||||||
if (optionsArg.customPath && optionsArg.typeArg !== 'custom') {
|
// set kvStoreType
|
||||||
throw new Error('customPath can only be provided if typeArg is custom');
|
this.type = typeArg;
|
||||||
}
|
this.identity = customStringArg;
|
||||||
if (optionsArg.typeArg === 'custom' && !optionsArg.customPath) {
|
|
||||||
throw new Error('customPath must be provided if typeArg is custom');
|
|
||||||
}
|
|
||||||
this.type = optionsArg.typeArg;
|
|
||||||
this.identity = optionsArg.identityArg;
|
|
||||||
this.customPath = optionsArg.customPath; // Store custom path if provided
|
|
||||||
this.initFilePath();
|
this.initFilePath();
|
||||||
if (optionsArg.mandatoryKeys) {
|
|
||||||
this.setMandatoryKeys(optionsArg.mandatoryKeys);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* reads all keyValue pairs at once and returns them
|
* reads all keyValue pairs at once and returns them
|
||||||
*/
|
*/
|
||||||
public async readAll(): Promise<Partial<T>> {
|
async readAll() {
|
||||||
await this.syncTask.trigger();
|
await this.initialReadTask.trigger();
|
||||||
|
this.syncTask.trigger();
|
||||||
return this.dataObject;
|
return this.dataObject;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* reads a keyValueFile from disk
|
* reads a keyValueFile from disk
|
||||||
*/
|
*/
|
||||||
public async readKey<K extends keyof T>(keyArg: K): Promise<T[K]> {
|
async readKey(keyArg: string) {
|
||||||
await this.syncTask.trigger();
|
let data = await this.readAll();
|
||||||
return this.dataObject[keyArg] as T[K];
|
return data[keyArg];
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* writes a specific key to the keyValueStore
|
* writes a specific key to the keyValueStore
|
||||||
*/
|
*/
|
||||||
public async writeKey<K extends keyof T>(keyArg: K, valueArg: T[K]): Promise<void> {
|
async writeKey(keyArg: string, valueArg: any) {
|
||||||
await this.writeAll({
|
let writeObject: any = {};
|
||||||
[keyArg]: valueArg,
|
writeObject[keyArg] = valueArg;
|
||||||
} as unknown as Partial<T>);
|
this.writeAll(writeObject);
|
||||||
}
|
|
||||||
|
|
||||||
public async deleteKey<K extends keyof T>(keyArg: K): Promise<void> {
|
|
||||||
this.deletedObject[keyArg] = this.dataObject[keyArg];
|
|
||||||
await this.syncTask.trigger();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* writes all keyValue pairs in the object argument
|
* writes all keyValue pairs in the object argument
|
||||||
*/
|
*/
|
||||||
public async writeAll(keyValueObject: Partial<T>): Promise<void> {
|
async writeAll(keyValueObject) {
|
||||||
this.dataObject = { ...this.dataObject, ...keyValueObject };
|
plugins.smartlodash.merge(this.dataObject, keyValueObject);
|
||||||
await this.syncTask.trigger();
|
this.syncTask.trigger();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* wipes a key value store from disk
|
* wipes a key value store from disk
|
||||||
*/
|
*/
|
||||||
public async wipe(): Promise<void> {
|
async wipe() {
|
||||||
this.dataObject = {};
|
for (let key in this.dataObject) {
|
||||||
if (this.type !== 'ephemeral') {
|
this.deletedObject[key] = this.dataObject[key];
|
||||||
await plugins.smartfile.fs.remove(this.filePath);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* resets the KeyValueStore to the initial state by syncing first, deleting all keys, and then triggering a sync again
|
* updates a value
|
||||||
*/
|
*/
|
||||||
public async reset(): Promise<void> {
|
async update(keyObject) {}
|
||||||
await this.syncTask.trigger(); // Sync to get the latest state
|
|
||||||
|
|
||||||
// Delete all keys from the dataObject and add them to deletedObject
|
/**
|
||||||
for (const key of Object.keys(this.dataObject) as Array<keyof T>) {
|
* computes the identity
|
||||||
this.deletedObject[key] = this.dataObject[key];
|
*/
|
||||||
delete this.dataObject[key];
|
private initFilePath() {
|
||||||
|
// determine the right base directory
|
||||||
|
let baseDir: string;
|
||||||
|
if (this.type === 'custom') {
|
||||||
|
baseDir = paths.kvCustomDir;
|
||||||
|
} else if (this.type === 'gitProject') {
|
||||||
|
baseDir = paths.kvGitDir;
|
||||||
|
} else if (this.type === 'path') {
|
||||||
|
baseDir = paths.kvPathDir;
|
||||||
}
|
}
|
||||||
|
this.filePath = plugins.path.join(baseDir, this.identity + '.json');
|
||||||
await this.syncTask.trigger(); // Sync again to reflect the deletion
|
plugins.smartfile.fs.ensureDirSync(paths.kvCustomDir);
|
||||||
|
plugins.smartfile.fs.ensureDirSync(paths.kvGitDir);
|
||||||
|
plugins.smartfile.fs.ensureDirSync(paths.kvPathDir);
|
||||||
|
plugins.smartfile.fs.ensureFileSync(this.filePath, '{}');
|
||||||
}
|
}
|
||||||
|
}
|
||||||
private setMandatoryKeys(keys: Array<keyof T>) {
|
|
||||||
keys.forEach(key => this.mandatoryKeys.add(key));
|
|
||||||
}
|
|
||||||
|
|
||||||
public async getMissingMandatoryKeys(): Promise<Array<keyof T>> {
|
|
||||||
await this.readAll();
|
|
||||||
return Array.from(this.mandatoryKeys).filter(key => !(key in this.dataObject));
|
|
||||||
}
|
|
||||||
|
|
||||||
public async waitForKeysPresent<K extends keyof T>(keysArg: K[]): Promise<void> {
|
|
||||||
const missingKeys = keysArg.filter(keyArg => !this.dataObject[keyArg]);
|
|
||||||
if (missingKeys.length === 0) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
return new Promise<void>((resolve, reject) => {
|
|
||||||
const subscription = this.changeSubject.subscribe(() => {
|
|
||||||
const missingKeys = keysArg.filter(keyArg => !this.dataObject[keyArg]);
|
|
||||||
if (missingKeys.length === 0) {
|
|
||||||
subscription.unsubscribe();
|
|
||||||
resolve();
|
|
||||||
}
|
|
||||||
});
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
public async waitForAndGetKey<K extends keyof T>(keyArg: K): Promise<T[K] | undefined> {
|
|
||||||
await this.waitForKeysPresent([keyArg]);
|
|
||||||
return this.readKey(keyArg);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import * as plugins from './npmextra.plugins.js';
|
import * as plugins from './npmextra.plugins';
|
||||||
import * as paths from './npmextra.paths.js';
|
import * as paths from './npmextra.paths';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Npmextra class allows easy configuration of tools
|
* Npmextra class allows easy configuration of tools
|
||||||
@ -34,10 +34,7 @@ export class Npmextra {
|
|||||||
} else {
|
} else {
|
||||||
npmextraToolOptions = {};
|
npmextraToolOptions = {};
|
||||||
}
|
}
|
||||||
let mergedOptions = {
|
let mergedOptions = plugins.smartlodash.merge({}, defaultOptionsArg, npmextraToolOptions);
|
||||||
...defaultOptionsArg,
|
|
||||||
...npmextraToolOptions,
|
|
||||||
};
|
|
||||||
return mergedOptions;
|
return mergedOptions;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,11 +1,8 @@
|
|||||||
import * as plugins from './npmextra.plugins.js';
|
import * as plugins from './npmextra.plugins';
|
||||||
|
|
||||||
// directories
|
// directories
|
||||||
export let cwd = process.cwd();
|
export let cwd = process.cwd();
|
||||||
export let packageDir = plugins.path.join(
|
export let packageDir = plugins.path.join(__dirname, '../');
|
||||||
plugins.smartpath.get.dirnameFromImportMetaUrl(import.meta.url),
|
|
||||||
'../'
|
|
||||||
);
|
|
||||||
|
|
||||||
// ----------------------
|
// ----------------------
|
||||||
// keyValueStore specific
|
// keyValueStore specific
|
||||||
@ -16,7 +13,22 @@ export let home = plugins.smartpath.get.home();
|
|||||||
/**
|
/**
|
||||||
* keyValue base path
|
* keyValue base path
|
||||||
*/
|
*/
|
||||||
export let kvUserHomeDirBase = plugins.path.join(home, '.npmextra/kv');
|
export let kvBase = plugins.path.join(home, '.npmextra/kv');
|
||||||
|
|
||||||
|
/**
|
||||||
|
* the base directory for custom string based key value store
|
||||||
|
*/
|
||||||
|
export let kvCustomDir = plugins.path.join(kvBase, 'custom');
|
||||||
|
|
||||||
|
/**
|
||||||
|
* the subdir for git based keyValue
|
||||||
|
*/
|
||||||
|
export let kvGitDir = plugins.path.join(kvBase, 'git');
|
||||||
|
|
||||||
|
/**
|
||||||
|
* keyValue for path based keyValue store
|
||||||
|
*/
|
||||||
|
export let kvPathDir = plugins.path.join(kvBase, 'path');
|
||||||
|
|
||||||
// files
|
// files
|
||||||
export let configFile = plugins.path.join(cwd, 'npmextra.json');
|
export let configFile = plugins.path.join(cwd, 'npmextra.json');
|
||||||
|
@ -1,17 +1,9 @@
|
|||||||
import * as tsclass from '@tsclass/tsclass';
|
import * as beautylog from '@pushrocks/smartlog';
|
||||||
|
|
||||||
export {
|
|
||||||
tsclass
|
|
||||||
}
|
|
||||||
|
|
||||||
import * as qenv from '@push.rocks/qenv';
|
|
||||||
import * as smartlog from '@push.rocks/smartlog';
|
|
||||||
import * as path from 'path';
|
import * as path from 'path';
|
||||||
import * as smartfile from '@push.rocks/smartfile';
|
import * as smartfile from '@pushrocks/smartfile';
|
||||||
import * as smartjson from '@push.rocks/smartjson';
|
import smartlodash from 'smartlodash';
|
||||||
import * as smartpath from '@push.rocks/smartpath';
|
import * as smartpath from '@pushrocks/smartpath';
|
||||||
import * as smartpromise from '@push.rocks/smartpromise';
|
import * as smartpromise from '@pushrocks/smartpromise';
|
||||||
import * as smartrx from '@push.rocks/smartrx';
|
import * as taskbuffer from '@pushrocks/taskbuffer';
|
||||||
import * as taskbuffer from '@push.rocks/taskbuffer';
|
|
||||||
|
|
||||||
export { qenv, smartlog, path, smartfile, smartjson, smartpath, smartpromise, smartrx, taskbuffer };
|
export { beautylog, path, smartfile, smartpath, smartpromise, smartlodash, taskbuffer };
|
||||||
|
@ -1,14 +0,0 @@
|
|||||||
{
|
|
||||||
"compilerOptions": {
|
|
||||||
"experimentalDecorators": true,
|
|
||||||
"useDefineForClassFields": false,
|
|
||||||
"target": "ES2022",
|
|
||||||
"module": "NodeNext",
|
|
||||||
"moduleResolution": "NodeNext",
|
|
||||||
"esModuleInterop": true,
|
|
||||||
"verbatimModuleSyntax": true
|
|
||||||
},
|
|
||||||
"exclude": [
|
|
||||||
"dist_*/**/*.d.ts"
|
|
||||||
]
|
|
||||||
}
|
|
3
tslint.json
Normal file
3
tslint.json
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"extends": "tslint-config-standard"
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user