Skip to content

Commit

Permalink
[UPDATE] dev packages
Browse files Browse the repository at this point in the history
  • Loading branch information
mathix420 committed Aug 7, 2023
1 parent 0cb5ef4 commit 3079d33
Show file tree
Hide file tree
Showing 10 changed files with 7,381 additions and 21,904 deletions.
29,230 changes: 7,352 additions & 21,878 deletions package-lock.json

Large diffs are not rendered by default.

22 changes: 11 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,17 @@
"npm": ">=7.x"
},
"devDependencies": {
"@types/jest": "^26.0.24",
"@typescript-eslint/eslint-plugin": "^4.28.3",
"@typescript-eslint/parser": "^4.28.3",
"eslint": "^7.30.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-prettier": "^3.4.0",
"jest": "^26.6.3",
"prettier": "^2.3.2",
"ts-jest": "^26.5.6",
"typescript": "^4.3.5",
"lerna": "^6.4.1"
"@types/jest": "^29.5.3",
"@typescript-eslint/eslint-plugin": "^6.2.1",
"@typescript-eslint/parser": "^6.2.1",
"eslint": "^8.46.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-prettier": "^5.0.0",
"jest": "^29.6.2",
"prettier": "^3.0.1",
"ts-jest": "^29.1.1",
"typescript": "^5.1.6",
"lerna": "^7.1.4"
},
"scripts": {
"build": "lerna run build",
Expand Down
16 changes: 8 additions & 8 deletions packages/vuito/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
"test:ci": "jest --coverage",
"lint:fix": "eslint --fix . --ext \".ts\"",
"lint": "eslint . --ext \".ts\"",
"build": "rollup -c",
"dev": "rollup -cw"
"build": "rollup -c --bundleConfigAsCjs",
"dev": "rollup -cw --bundleConfigAsCjs"
},
"repository": {
"type": "git",
Expand All @@ -39,14 +39,14 @@
},
"homepage": "https://github.com/mathix420/vuito#readme",
"devDependencies": {
"@rollup/plugin-commonjs": "^17.1.0",
"@rollup/plugin-node-resolve": "^11.2.0",
"rollup": "^2.42.1",
"@rollup/plugin-commonjs": "^25.0.3",
"@rollup/plugin-node-resolve": "^15.1.0",
"@rollup/plugin-terser": "^0.4.3",
"rollup": "^2.79.1",
"rollup-plugin-cleanup": "^3.2.1",
"rollup-plugin-peer-deps-external": "^2.2.4",
"rollup-plugin-rename-node-modules": "^1.1.0",
"rollup-plugin-terser": "^7.0.2",
"rollup-plugin-typescript2": "^0.30.0"
"rollup-plugin-rename-node-modules": "^1.3.1",
"rollup-plugin-typescript2": "^0.35.0"
},
"jest": {
"preset": "ts-jest"
Expand Down
5 changes: 4 additions & 1 deletion packages/vuito/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import peerDepsExternal from 'rollup-plugin-peer-deps-external';
import typescript from 'rollup-plugin-typescript2';
import resolve from '@rollup/plugin-node-resolve';
import commonjs from '@rollup/plugin-commonjs';
import { terser } from 'rollup-plugin-terser';
import cleanup from 'rollup-plugin-cleanup';
import terser from '@rollup/plugin-terser';
import path from 'path';

// eslint-disable-next-line @typescript-eslint/no-var-requires
Expand All @@ -21,6 +21,9 @@ function extractChunks(id) {
return path.parse(id).name;
}

/**
* @type {import('rollup').RollupOptions}
*/
export default {
input: 'src/vuito.ts',
output: [
Expand Down
2 changes: 1 addition & 1 deletion packages/vuito/src/template.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { VTemplateRow, VInputTemplate, VTemplate, VRow, VKeys } from './types';
import type { VTemplateRow, VInputTemplate, VTemplate, VRow, VKeys } from './types';


function getCheckRowFct(tests: VRow[]): VTemplateRow['check'] {
Expand Down
2 changes: 1 addition & 1 deletion packages/vuito/src/validators/maxLength.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { VLengthy, VRow } from '../types';
import type { VLengthy, VRow } from '../types';

export default function (max: number): VRow['test'] {
return (value: VLengthy) => !value || value.length <= max;
Expand Down
2 changes: 1 addition & 1 deletion packages/vuito/src/validators/maxValue.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { VRow } from '../types';
import type { VRow } from '../types';

export default function (min: number): VRow['test'] {
return (value: string) => parseInt(value, 10) <= min;
Expand Down
2 changes: 1 addition & 1 deletion packages/vuito/src/validators/minLength.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { VLengthy, VRow } from '../types';
import type { VLengthy, VRow } from '../types';

export default function (min: number): VRow['test'] {
return (value: VLengthy) => !value || min <= value.length;
Expand Down
2 changes: 1 addition & 1 deletion packages/vuito/src/validators/minValue.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { VRow } from '../types';
import type { VRow } from '../types';

export default function (min: number): VRow['test'] {
return (value: string) => min <= parseInt(value, 10);
Expand Down
2 changes: 1 addition & 1 deletion packages/vuito/src/validators/regex.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { VRow } from '../types';
import type { VRow } from '../types';

export default function (pattern: string | RegExp): VRow['test'] {
return (value: string) => new RegExp(pattern).test((value || '').trim());
Expand Down

1 comment on commit 3079d33

@vercel
Copy link

@vercel vercel bot commented on 3079d33 Aug 7, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

vuito – ./

vuito.vercel.app
vuito-git-master-mathix420.vercel.app
vuito-mathix420.vercel.app

Please sign in to comment.