15 Commits

Author SHA1 Message Date
49aa80aca8 2.0.9 2022-07-24 15:30:20 +02:00
b382256cc7 fix(core): update 2022-07-24 15:30:19 +02:00
97400fa501 2.0.8 2019-09-10 18:14:36 +02:00
914a8eafce fix(core): update 2019-09-10 18:14:36 +02:00
7299b3a9c6 2.0.7 2019-09-10 18:03:24 +02:00
cfd257d359 fix(core): update 2019-09-10 18:03:24 +02:00
203ea05f67 2.0.6 2019-09-10 18:02:43 +02:00
f00a11bf9b fix(core): update 2019-09-10 18:02:42 +02:00
7b0f2ab8d6 2.0.5 2019-09-10 18:02:23 +02:00
3ef9388979 2.0.4 2019-09-10 17:58:32 +02:00
1d35da50cd update 2019-09-10 17:58:14 +02:00
f5b86154db 2.0.3 2019-02-17 17:02:35 +01:00
7474d208e4 fix(documentation): update 2019-02-17 17:02:35 +01:00
74f4026c74 2.0.2 2019-02-17 17:00:29 +01:00
3808e4168f fix(security): add snyk 2019-02-17 17:00:28 +01:00
23 changed files with 13808 additions and 1056 deletions

20
.gitignore vendored
View File

@ -1,6 +1,20 @@
node_modules/ .nogit/
# artifacts
coverage/ coverage/
public/ public/
pages/ pages/
test/testresult/
.nogit/ # installs
node_modules/
# caches
.yarn/
.cache/
.rpt2_cache
# builds
dist/
dist_*/
# custom

View File

@ -1,126 +1,122 @@
# gitzone standard # gitzone ci_default
image: hosttoday/ht-docker-node:npmci image: registry.gitlab.com/hosttoday/ht-docker-node:npmci
cache: cache:
paths: paths:
- .npmci_cache/ - .npmci_cache/
key: "$CI_BUILD_STAGE" key: '$CI_BUILD_STAGE'
stages: stages:
- security - security
- test - test
- release - release
- metadata - metadata
before_script:
- npm install -g @shipzone/npmci
# ==================== # ====================
# security stage # security stage
# ==================== # ====================
mirror: auditProductionDependencies:
image: registry.gitlab.com/hosttoday/ht-docker-node:npmci
stage: security stage: security
script: script:
- npmci git mirror - npmci npm prepare
- npmci command npm install --production --ignore-scripts
- npmci command npm config set registry https://registry.npmjs.org
- npmci command npm audit --audit-level=high --only=prod --production
tags: tags:
- docker - docker
- notpriv allow_failure: true
snyk: auditDevDependencies:
image: registry.gitlab.com/hosttoday/ht-docker-node:npmci
stage: security stage: security
script: script:
- npmci command npm install -g snyk - npmci npm prepare
- npmci command npm install --ignore-scripts - npmci command npm install --ignore-scripts
- npmci command snyk test - npmci command npm config set registry https://registry.npmjs.org
- npmci command npm audit --audit-level=high --only=dev
tags: tags:
- docker - docker
- notpriv allow_failure: true
# ==================== # ====================
# test stage # 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: testStable:
stage: test stage: test
script: script:
- npmci node install lts - npmci npm prepare
- npmci npm install - npmci node install stable
- npmci npm test - npmci npm install
- npmci npm test
coverage: /\d+.?\d+?\%\s*coverage/ coverage: /\d+.?\d+?\%\s*coverage/
tags: tags:
- docker - docker
- notpriv
testSTABLE: testBuild:
stage: test stage: test
script: script:
- npmci node install stable - npmci npm prepare
- npmci npm install - npmci node install stable
- npmci npm test - npmci npm install
- npmci command npm run build
coverage: /\d+.?\d+?\%\s*coverage/ coverage: /\d+.?\d+?\%\s*coverage/
tags: tags:
- docker - docker
- notpriv
release: release:
stage: release stage: release
script: script:
- npmci node install stable - npmci node install stable
- npmci npm publish - npmci npm publish
only: only:
- tags - tags
tags: tags:
- docker - lossless
- notpriv - docker
- notpriv
# ==================== # ====================
# metadata stage # metadata stage
# ==================== # ====================
codequality: codequality:
stage: metadata stage: metadata
image: docker:stable
allow_failure: true allow_failure: true
services: only:
- docker:stable-dind - tags
script: script:
- export SP_VERSION=$(echo "$CI_SERVER_VERSION" | sed 's/^\([0-9]*\)\.\([0-9]*\).*/\1-\2-stable/') - npmci command npm install -g typescript
- docker run - npmci npm prepare
--env SOURCE_CODE="$PWD" - npmci npm install
--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: tags:
- docker - lossless
- priv - docker
- priv
trigger: trigger:
stage: metadata stage: metadata
script: script:
- npmci trigger - npmci trigger
only: only:
- tags - tags
tags: tags:
- docker - lossless
- notpriv - docker
- notpriv
pages: pages:
image: hosttoday/ht-docker-node:npmci
stage: metadata stage: metadata
script: script:
- npmci command npm install -g typedoc typescript - npmci node install stable
- npmci npm prepare
- npmci npm install - npmci npm install
- npmci command typedoc --module "commonjs" --target "ES2016" --out public/ ts/ - npmci command npm run buildDocs
tags: tags:
- lossless
- docker - docker
- notpriv - notpriv
only: only:
@ -128,15 +124,5 @@ pages:
artifacts: artifacts:
expire_in: 1 week expire_in: 1 week
paths: paths:
- public - 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 allow_failure: true

11
.vscode/launch.json vendored Normal file
View File

@ -0,0 +1,11 @@
{
"version": "0.2.0",
"configurations": [
{
"command": "npm test",
"name": "Run npm test",
"request": "launch",
"type": "node-terminal"
}
]
}

26
.vscode/settings.json vendored Normal file
View File

@ -0,0 +1,26 @@
{
"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"]
}
}
}
}
}
}
]
}

View File

@ -1,47 +0,0 @@
# smarthbs
handlebars with better fs support
## Availabililty
[![npm](https://pushrocks.gitlab.io/assets/repo-button-npm.svg)](https://www.npmjs.com/package/smarthbs)
[![git](https://pushrocks.gitlab.io/assets/repo-button-git.svg)](https://GitLab.com/pushrocks/smarthbs)
[![git](https://pushrocks.gitlab.io/assets/repo-button-mirror.svg)](https://github.com/pushrocks/smarthbs)
[![docs](https://pushrocks.gitlab.io/assets/repo-button-docs.svg)](https://pushrocks.gitlab.io/smarthbs/)
## Status for master
[![build status](https://GitLab.com/pushrocks/smarthbs/badges/master/build.svg)](https://GitLab.com/pushrocks/smarthbs/commits/master)
[![coverage report](https://GitLab.com/pushrocks/smarthbs/badges/master/coverage.svg)](https://GitLab.com/pushrocks/smarthbs/commits/master)
[![npm downloads per month](https://img.shields.io/npm/dm/smarthbs.svg)](https://www.npmjs.com/package/smarthbs)
[![Dependency Status](https://david-dm.org/pushrocks/smarthbs.svg)](https://david-dm.org/pushrocks/smarthbs)
[![bitHound Dependencies](https://www.bithound.io/github/pushrocks/smarthbs/badges/dependencies.svg)](https://www.bithound.io/github/pushrocks/smarthbs/master/dependencies/npm)
[![bitHound Code](https://www.bithound.io/github/pushrocks/smarthbs/badges/code.svg)](https://www.bithound.io/github/pushrocks/smarthbs)
[![TypeScript](https://img.shields.io/badge/TypeScript-2.x-blue.svg)](https://nodejs.org/dist/latest-v6.x/docs/api/)
[![node](https://img.shields.io/badge/node->=%206.x.x-blue.svg)](https://nodejs.org/dist/latest-v6.x/docs/api/)
[![JavaScript Style Guide](https://img.shields.io/badge/code%20style-standard-brightgreen.svg)](http://standardjs.com/)
## Usage
Use TypeScript for best in class instellisense.
For further information read the linked docs at the top of this README.
> Note: Why did we decide against a class based architecture?
> Easy: handlebars.js is already pretty determined how things are handled internally, namely a global partial template registry
> It doesn't make sense to then introduce a scoped partial template approach.
```javascript
import * as smarthbs from 'smarthbs';
// read all .hbs files in a directory and any child directories and use relative path as partial string identifier
smarthbs.registerPartialDir(testPartialDir);
// read all .hbs files in a particular directory and level, output them to a destination and specify a .json file to read any referenced data
smarthbs.compileDirectory(testHbsDir, testResultDir, 'data.json');
```
> MIT licensed | **©** [Lossless GmbH](https://lossless.gmbh)
> | By using this npm module you agree to our [privacy policy](https://lossless.gmbH/privacy.html)
[![repo-footer](https://pushrocks.gitlab.io/assets/repo-footer.svg)](https://push.rocks)

View File

@ -1,47 +0,0 @@
# smarthbs
handlebars with better fs support
## Availabililty
[![npm](https://pushrocks.gitlab.io/assets/repo-button-npm.svg)](https://www.npmjs.com/package/smarthbs)
[![git](https://pushrocks.gitlab.io/assets/repo-button-git.svg)](https://GitLab.com/pushrocks/smarthbs)
[![git](https://pushrocks.gitlab.io/assets/repo-button-mirror.svg)](https://github.com/pushrocks/smarthbs)
[![docs](https://pushrocks.gitlab.io/assets/repo-button-docs.svg)](https://pushrocks.gitlab.io/smarthbs/)
## Status for master
[![build status](https://GitLab.com/pushrocks/smarthbs/badges/master/build.svg)](https://GitLab.com/pushrocks/smarthbs/commits/master)
[![coverage report](https://GitLab.com/pushrocks/smarthbs/badges/master/coverage.svg)](https://GitLab.com/pushrocks/smarthbs/commits/master)
[![npm downloads per month](https://img.shields.io/npm/dm/smarthbs.svg)](https://www.npmjs.com/package/smarthbs)
[![Dependency Status](https://david-dm.org/pushrocks/smarthbs.svg)](https://david-dm.org/pushrocks/smarthbs)
[![bitHound Dependencies](https://www.bithound.io/github/pushrocks/smarthbs/badges/dependencies.svg)](https://www.bithound.io/github/pushrocks/smarthbs/master/dependencies/npm)
[![bitHound Code](https://www.bithound.io/github/pushrocks/smarthbs/badges/code.svg)](https://www.bithound.io/github/pushrocks/smarthbs)
[![TypeScript](https://img.shields.io/badge/TypeScript-2.x-blue.svg)](https://nodejs.org/dist/latest-v6.x/docs/api/)
[![node](https://img.shields.io/badge/node->=%206.x.x-blue.svg)](https://nodejs.org/dist/latest-v6.x/docs/api/)
[![JavaScript Style Guide](https://img.shields.io/badge/code%20style-standard-brightgreen.svg)](http://standardjs.com/)
## Usage
Use TypeScript for best in class instellisense.
For further information read the linked docs at the top of this README.
> Note: Why did we decide against a class based architecture?
> Easy: handlebars.js is already pretty determined how things are handled internally, namely a global partial template registry
> It doesn't make sense to then introduce a scoped partial template approach.
```javascript
import * as smarthbs from 'smarthbs';
// read all .hbs files in a directory and any child directories and use relative path as partial string identifier
smarthbs.registerPartialDir(testPartialDir);
// read all .hbs files in a particular directory and level, output them to a destination and specify a .json file to read any referenced data
smarthbs.compileDirectory(testHbsDir, testResultDir, 'data.json');
```
> MIT licensed | **©** [Lossless GmbH](https://lossless.gmbh)
> | By using this npm module you agree to our [privacy policy](https://lossless.gmbH/privacy.html)
[![repo-footer](https://pushrocks.gitlab.io/assets/repo-footer.svg)](https://push.rocks)

View File

@ -2,5 +2,16 @@
"npmci": { "npmci": {
"npmGlobalTools": [], "npmGlobalTools": [],
"npmAccessLevel": "public" "npmAccessLevel": "public"
},
"gitzone": {
"projectType": "npm",
"module": {
"githost": "gitlab.com",
"gitscope": "pushrocks",
"gitrepo": "smarthbs",
"description": "handlebars with better fs support",
"npmPackagename": "@pushrocks/smarthbs",
"license": "MIT"
}
} }
} }

14417
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -1,13 +1,14 @@
{ {
"name": "@pushrocks/smarthbs", "name": "@pushrocks/smarthbs",
"version": "2.0.1", "version": "2.0.9",
"private": false, "private": false,
"description": "handlebars with better fs support", "description": "handlebars with better fs support",
"main": "dist/index.js", "main": "dist_ts/index.js",
"typings": "dist/index.d.ts", "typings": "dist_ts/index.d.ts",
"type": "module",
"scripts": { "scripts": {
"test": "(tstest test/)", "test": "(tstest test/)",
"build": "(tsbuild)" "build": "(tsbuild --allowimplicitany)"
}, },
"repository": { "repository": {
"type": "git", "type": "git",
@ -23,17 +24,33 @@
}, },
"homepage": "https://gitlab.com/pkunz/smarthbs#README", "homepage": "https://gitlab.com/pkunz/smarthbs#README",
"dependencies": { "dependencies": {
"@pushrocks/smartfile": "^6.0.12", "@pushrocks/smartfile": "^10.0.2",
"@pushrocks/smartpromise": "^2.0.5", "@pushrocks/smartpath": "^5.0.5",
"@types/lodash": "^4.14.121", "@pushrocks/smartpromise": "^3.1.7",
"handlebars": "^4.1.0", "@types/lodash.uniq": "^4.5.7",
"lodash": "^4.17.11" "handlebars": "^4.7.7",
"lodash.uniq": "^4.5.0"
}, },
"devDependencies": { "devDependencies": {
"@gitzone/tsbuild": "^2.1.8", "@gitzone/tsbuild": "^2.1.63",
"@gitzone/tsrun": "^1.1.17", "@gitzone/tsrun": "^1.2.37",
"@gitzone/tstest": "^1.0.18", "@gitzone/tstest": "^1.0.72",
"@pushrocks/tapbundle": "^3.0.7", "@pushrocks/tapbundle": "^5.0.4",
"@types/node": "^11.9.4" "@types/node": "^18.0.6"
} },
"files": [
"ts/**/*",
"ts_web/**/*",
"dist/**/*",
"dist_*/**/*",
"dist_ts/**/*",
"dist_ts_web/**/*",
"assets/**/*",
"cli.js",
"npmextra.json",
"readme.md"
],
"browserslist": [
"last 1 chrome versions"
]
} }

View File

@ -1,10 +1,14 @@
import { expect, tap } from '@pushrocks/tapbundle'; import { expect, tap } from '@pushrocks/tapbundle';
import * as smarthbs from '../ts/index'; import * as smarthbs from '../ts/index.js';
import * as smartpath from '@pushrocks/smartpath';
import * as path from 'path'; import * as path from 'path';
let testHbsDir = path.join(__dirname, 'hbs_testfiles'); const dirname = smartpath.get.dirnameFromImportMetaUrl(import.meta.url);
let testHbsDir = path.join(dirname, 'hbs_testfiles');
let testPartialDir = path.join(testHbsDir, 'partials'); let testPartialDir = path.join(testHbsDir, 'partials');
let testResultDir = path.join(__dirname, 'testresult'); let testResultDir = path.join(dirname, 'testresult');
tap.test('smarthbs -> should create partials', async () => { tap.test('smarthbs -> should create partials', async () => {
await smarthbs.registerPartialDir(testPartialDir); await smarthbs.registerPartialDir(testPartialDir);
@ -17,8 +21,8 @@ tap.test('smarthbs -> should compile a directory', async () => {
tap.test('', async () => { tap.test('', async () => {
let templateString = '{{{firstVar}}} {{secondVar}}'; let templateString = '{{{firstVar}}} {{secondVar}}';
let templateVars = await smarthbs.findVarsInHbsString(templateString); let templateVars = await smarthbs.findVarsInHbsString(templateString);
expect(templateVars).to.include('firstVar'); expect(templateVars).toContain('firstVar');
expect(templateVars).to.include('secondVar'); expect(templateVars).toContain('secondVar');
}); });
tap.test('', async () => { tap.test('', async () => {
@ -29,12 +33,14 @@ tap.test('', async () => {
secondVar: 'hello', secondVar: 'hello',
fourthVar: { fourthVar: {
otherKey: { otherKey: {
nextKey: 'wow' nextKey: 'wow',
} },
} },
}); });
expect(missingVars).to.contain('thirdVar', 'fourthVar.someKey'); expect(missingVars).toContain('thirdVar');
expect(missingVars).to.not.contain('secondVar', 'fourthVar.otherKey.nextKey'); expect(missingVars).toContain('fourthVar.someKey');
expect(missingVars).not.toContain('secondVar');
expect(missingVars).not.toContain('fourthVar.otherKey.nextKey');
}); });
tap.start(); tap.start();

View File

@ -0,0 +1 @@
<head></head>analyzed

View File

@ -0,0 +1 @@
A second hbs file!

8
ts/00_commitinfo_data.ts Normal file
View File

@ -0,0 +1,8 @@
/**
* autocreated commitinfo by @pushrocks/commitinfo
*/
export const commitinfo = {
name: '@pushrocks/smarthbs',
version: '2.0.9',
description: 'handlebars with better fs support'
}

View File

@ -1,10 +1,10 @@
import * as plugins from './smarthbs.plugins'; import * as plugins from './smarthbs.plugins.js';
export type TTemplateStringType = 'filePath' | 'code'; export type TTemplateStringType = 'filePath' | 'code';
export let handlebars = plugins.handlebars; export let handlebars = plugins.handlebars;
export * from './smarthbs.compile'; export * from './smarthbs.compile.js';
import './smarthbs.helpers'; import './smarthbs.helpers.js';
export * from './smarthbs.partials'; export * from './smarthbs.partials.js';
export * from './smarthbs.template'; export * from './smarthbs.template.js';
export * from './smarthbs.variables'; export * from './smarthbs.variables.js';
export * from './smarthbs.postprocess'; export * from './smarthbs.postprocess.js';

View File

@ -1,4 +1,4 @@
import * as plugins from './smarthbs.plugins'; import * as plugins from './smarthbs.plugins.js';
/** /**
* compiles a directory and outputs it * compiles a directory and outputs it

View File

@ -1,10 +1,10 @@
import * as plugins from './smarthbs.plugins'; import * as plugins from './smarthbs.plugins.js';
/** /**
* Helper: * Helper:
* Allows you to analyze a context * Allows you to analyze a context
*/ */
plugins.handlebars.registerHelper('__analyze', analyzeContext => { plugins.handlebars.registerHelper('__analyze', (analyzeContext) => {
if (typeof analyzeContext === 'string') { if (typeof analyzeContext === 'string') {
if (plugins.handlebars.partials[analyzeContext]) { if (plugins.handlebars.partials[analyzeContext]) {
console.log(`The analyzed partial ${analyzeContext} looks like this`); console.log(`The analyzed partial ${analyzeContext} looks like this`);
@ -20,7 +20,7 @@ plugins.handlebars.registerHelper('__analyze', analyzeContext => {
* Helper: * Helper:
* logs all registered partials to console * logs all registered partials to console
*/ */
plugins.handlebars.registerHelper('__allPartialsLog', analyzeContext => { plugins.handlebars.registerHelper('__allPartialsLog', (analyzeContext) => {
console.log(plugins.handlebars.partials); console.log(plugins.handlebars.partials);
return 'analyzed'; return 'analyzed';
}); });

View File

@ -1,11 +1,11 @@
import * as plugins from './smarthbs.plugins'; import * as plugins from './smarthbs.plugins.js';
/** /**
* registers a directory of partials to make them available within handlebars compilation * registers a directory of partials to make them available within handlebars compilation
*/ */
export let registerPartialDir = (dirPathArg: string): Promise<any> => { export let registerPartialDir = (dirPathArg: string): Promise<any> => {
let done = plugins.smartpromise.defer(); let done = plugins.smartpromise.defer();
plugins.smartfile.fs.listFileTree(dirPathArg, '**/*.hbs').then(hbsFileArrayArg => { plugins.smartfile.fs.listFileTree(dirPathArg, '**/*.hbs').then((hbsFileArrayArg) => {
for (let hbsFilePath of hbsFileArrayArg) { for (let hbsFilePath of hbsFileArrayArg) {
let parsedPath = plugins.path.parse(hbsFilePath); let parsedPath = plugins.path.parse(hbsFilePath);
let hbsFileString = plugins.smartfile.fs.toStringSync( let hbsFileString = plugins.smartfile.fs.toStringSync(

View File

@ -1,7 +1,8 @@
import * as handlebars from 'handlebars'; import handlebars from 'handlebars';
import * as lodash from 'lodash'; import lodashUniq from 'lodash.uniq';
import * as smartpath from '@pushrocks/smartpath';
import * as path from 'path'; import * as path from 'path';
import * as smartfile from '@pushrocks/smartfile'; import * as smartfile from '@pushrocks/smartfile';
import * as smartpromise from '@pushrocks/smartpromise'; import * as smartpromise from '@pushrocks/smartpromise';
export { handlebars, lodash, path, smartfile, smartpromise }; export { handlebars, lodashUniq, path, smartfile, smartpromise };

View File

@ -1,4 +1,4 @@
import * as plugins from './smarthbs.plugins'; import * as plugins from './smarthbs.plugins.js';
let safeSyntaxBeginRegex = /{-{/g; let safeSyntaxBeginRegex = /{-{/g;
let safeSyntaxEndRegex = /}-}/g; let safeSyntaxEndRegex = /}-}/g;

View File

@ -1,4 +1,4 @@
import * as plugins from './smarthbs.plugins'; import * as plugins from './smarthbs.plugins.js';
/** /**
* get a template for a file on disk * get a template for a file on disk

View File

@ -1,7 +1,7 @@
// This file contains code that makes it easy to search handlebar templates for variables. // This file contains code that makes it easy to search handlebar templates for variables.
// Why? To get a clue if you are missing some. // Why? To get a clue if you are missing some.
import * as plugins from './smarthbs.plugins'; import * as plugins from './smarthbs.plugins.js';
// the curly regex objects // the curly regex objects
let tripleCurlyRegex = /{{{\s*[\w\.]+\s*}}}/g; let tripleCurlyRegex = /{{{\s*[\w\.]+\s*}}}/g;
@ -18,20 +18,20 @@ export let findVarsInHbsString = async (hbsStringArg: string) => {
let tripleCurlyMatches = hbsString.match(tripleCurlyRegex); let tripleCurlyMatches = hbsString.match(tripleCurlyRegex);
if (tripleCurlyMatches) { if (tripleCurlyMatches) {
hbsString = hbsString.replace(tripleCurlyRegex, '[[[replaced]]]'); hbsString = hbsString.replace(tripleCurlyRegex, '[[[replaced]]]');
varNameArray = plugins.lodash.concat(varNameArray, tripleCurlyMatches); varNameArray = varNameArray.concat(tripleCurlyMatches);
} }
let doubleCurlyMatches = hbsString.match(doubleCurlyRegex); let doubleCurlyMatches = hbsString.match(doubleCurlyRegex);
if (doubleCurlyMatches) { if (doubleCurlyMatches) {
varNameArray = plugins.lodash.concat(varNameArray, doubleCurlyMatches); varNameArray = varNameArray.concat(doubleCurlyMatches);
} }
// make sure we are clean from curly brackets // make sure we are clean from curly brackets
varNameArray = varNameArray.map(x => { varNameArray = varNameArray.map((x) => {
return x.match(nameInCurlsRegex)[0]; return x.match(nameInCurlsRegex)[0];
}); });
// make sure are uniq // make sure are uniq
varNameArray = plugins.lodash.uniq(varNameArray); varNameArray = plugins.lodashUniq(varNameArray);
return varNameArray; return varNameArray;
}; };

10
tsconfig.json Normal file
View File

@ -0,0 +1,10 @@
{
"compilerOptions": {
"experimentalDecorators": true,
"useDefineForClassFields": false,
"target": "ES2022",
"module": "ES2022",
"moduleResolution": "nodenext",
"esModuleInterop": true
}
}

View File

@ -1,3 +0,0 @@
{
"extends": "tslint-config-standard"
}