Skip to content

Commit

Permalink
build: rm uglify
Browse files Browse the repository at this point in the history
  • Loading branch information
antongolub committed Dec 18, 2023
1 parent 7d80d4c commit f1f51da
Show file tree
Hide file tree
Showing 17 changed files with 24 additions and 22 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ jobs:
- name: Build
run: yarn build

- name: Coverage
run: yarn cov
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# - name: Coverage
# run: yarn cov
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

# - name: Codeclimate
# if: github.ref == 'refs/heads/master'
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"lint": "tslint -p tsconfig.test.json src/**/*.ts",
"lint:fix": "yarn lint --fix",
"clean": "rimraf target typings buildcache",
"build": "yarn build:es5 && yarn build:es6 && yarn build:ts && yarn docs && yarn uglify",
"build": "yarn build:es5 && yarn build:es6 && yarn build:ts && yarn docs",
"build:es5": "mkdir -p target/es5 && tsc -p tsconfig.es5.json",
"build:es6": "mkdir -p target/es6 && tsc -p tsconfig.es6.json",
"build:ts": "cp -r src/main/ts/ target/ts/",
Expand Down
2 changes: 1 addition & 1 deletion packages/common/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"lint": "tslint -p tsconfig.test.json src/**/*.ts",
"lint:fix": "yarn lint --fix",
"clean": "rimraf target typings buildcache",
"build": "yarn build:es5 && yarn build:es6 && yarn build:ts && yarn docs && yarn uglify",
"build": "yarn build:es5 && yarn build:es6 && yarn build:ts && yarn docs",
"build:es5": "mkdir -p target/es5 && tsc -p tsconfig.es5.json",
"build:es6": "mkdir -p target/es6 && tsc -p tsconfig.es6.json",
"build:ts": "cp -r src/main/ts/ target/ts/",
Expand Down
2 changes: 1 addition & 1 deletion packages/debug/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"lint": "tslint -p tsconfig.test.json src/**/*.ts",
"lint:fix": "yarn lint --fix",
"clean": "rimraf target typings buildcache",
"build": "yarn build:es5 && yarn build:es6 && yarn build:ts && yarn docs && yarn uglify",
"build": "yarn build:es5 && yarn build:es6 && yarn build:ts && yarn docs",
"build:es5": "mkdir -p target/es5 && tsc -p tsconfig.es5.json",
"build:es6": "mkdir -p target/es6 && tsc -p tsconfig.es6.json",
"build:ts": "cp -r src/main/ts/ target/ts/",
Expand Down
2 changes: 1 addition & 1 deletion packages/facade/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"lint": "tslint -p tsconfig.test.json src/**/*.ts",
"lint:fix": "yarn lint --fix",
"clean": "rimraf target typings buildcache",
"build": "yarn build:es5 && yarn build:es6 && yarn build:ts && yarn docs && yarn uglify",
"build": "yarn build:es5 && yarn build:es6 && yarn build:ts && yarn docs",
"build:es5": "mkdir -p target/es5 && tsc -p tsconfig.es5.json",
"build:es6": "mkdir -p target/es6 && tsc -p tsconfig.es6.json",
"build:ts": "cp -r src/main/ts/ target/ts/",
Expand Down
2 changes: 1 addition & 1 deletion packages/json/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"lint": "tslint -p tsconfig.test.json src/**/*.ts",
"lint:fix": "yarn lint --fix",
"clean": "rimraf target typings buildcache",
"build": "yarn build:es5 && yarn build:es6 && yarn build:ts && yarn docs && yarn uglify",
"build": "yarn build:es5 && yarn build:es6 && yarn build:ts && yarn docs",
"build:es5": "mkdir -p target/es5 && tsc -p tsconfig.es5.json",
"build:es6": "mkdir -p target/es6 && tsc -p tsconfig.es6.json",
"build:ts": "cp -r src/main/ts/ target/ts/",
Expand Down
2 changes: 1 addition & 1 deletion packages/limiter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"lint": "tslint -p tsconfig.test.json src/**/*.ts",
"lint:fix": "yarn lint --fix",
"clean": "rimraf target typings buildcache",
"build": "yarn build:es5 && yarn build:es6 && yarn build:ts && yarn docs && yarn uglify",
"build": "yarn build:es5 && yarn build:es6 && yarn build:ts && yarn docs",
"build:es5": "mkdir -p target/es5 && tsc -p tsconfig.es5.json",
"build:es6": "mkdir -p target/es6 && tsc -p tsconfig.es6.json",
"build:ts": "cp -r src/main/ts/ target/ts/",
Expand Down
4 changes: 3 additions & 1 deletion packages/limiter/src/test/ts/readme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@ import {createMasker, createPipe} from '@qiwi/masker-common'
import {pipe as split} from '@qiwi/masker-split'
import {pipe as limiter} from '../../main/ts'

const registry = new Map()
.set(split.name, split)

describe('limiter', () => {
describe('works as written in readme', () => {
it('example #1', () => {
const registry = []
const echo = createPipe('echo', ({value}: any) => ({value}))
const masker = createMasker({
registry,
Expand Down
2 changes: 1 addition & 1 deletion packages/pan/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"lint": "tslint -p tsconfig.test.json src/**/*.ts",
"lint:fix": "yarn lint --fix",
"clean": "rimraf target typings buildcache",
"build": "yarn build:es5 && yarn build:es6 && yarn build:ts && yarn docs && yarn uglify",
"build": "yarn build:es5 && yarn build:es6 && yarn build:ts && yarn docs",
"build:es5": "mkdir -p target/es5 && tsc -p tsconfig.es5.json",
"build:es6": "mkdir -p target/es6 && tsc -p tsconfig.es6.json",
"build:ts": "cp -r src/main/ts/ target/ts/",
Expand Down
2 changes: 1 addition & 1 deletion packages/plain/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"lint": "tslint -p tsconfig.test.json src/**/*.ts",
"lint:fix": "yarn lint --fix",
"clean": "rimraf target typings buildcache",
"build": "yarn build:es5 && yarn build:es6 && yarn build:ts && yarn docs && yarn uglify",
"build": "yarn build:es5 && yarn build:es6 && yarn build:ts && yarn docs",
"build:es5": "mkdir -p target/es5 && tsc -p tsconfig.es5.json",
"build:es6": "mkdir -p target/es6 && tsc -p tsconfig.es6.json",
"build:ts": "cp -r src/main/ts/ target/ts/",
Expand Down
2 changes: 1 addition & 1 deletion packages/schema/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"lint": "tslint -p tsconfig.test.json src/**/*.ts",
"lint:fix": "yarn lint --fix",
"clean": "rimraf target typings buildcache",
"build": "yarn build:es5 && yarn build:es6 && yarn build:ts && yarn docs && yarn uglify",
"build": "yarn build:es5 && yarn build:es6 && yarn build:ts && yarn docs",
"build:es5": "mkdir -p target/es5 && tsc -p tsconfig.es5.json",
"build:es6": "mkdir -p target/es6 && tsc -p tsconfig.es6.json",
"build:ts": "cp -r src/main/ts/ target/ts/",
Expand Down
6 changes: 3 additions & 3 deletions packages/schema/src/main/ts/generate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const compactItemsSchema = (properties: Record<any, any>) => {
: properties
}

export const extractSchemaFromResult = (type: string, after: IMaskerPipeOutput): IMaskerSchema => {
export const extractSchemaFromResult = (type: string, after: IMaskerPipeOutput & {schema?: IMaskerSchema}): IMaskerSchema => {
if (after.schema) {
return {
...after.schema,
Expand All @@ -38,13 +38,13 @@ export const extractSchemaFromResult = (type: string, after: IMaskerPipeOutput):
const isArray = Array.isArray(after.value)

if (values) {
const properties = Object.keys(origin).reduce((m, v: string, i: number) => {
const properties = Object.keys(origin).reduce<Record<string, any>>((m, v: string, i: number) => {
const maskKey = keys[i]?.schema?.maskValue
const schema = values[i].schema
m[v] = maskKey ? {...schema, maskKey} : schema

return m
}, isArray ? [] : {} as Record<string, any>)
}, isArray ? [] : {})

return isArray
? {type, items: compactItemsSchema(properties)}
Expand Down
2 changes: 1 addition & 1 deletion packages/secret-key/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"lint": "tslint -p tsconfig.test.json src/**/*.ts",
"lint:fix": "yarn lint --fix",
"clean": "rimraf target typings buildcache",
"build": "yarn build:es5 && yarn build:es6 && yarn build:ts && yarn docs && yarn uglify",
"build": "yarn build:es5 && yarn build:es6 && yarn build:ts && yarn docs",
"build:es5": "mkdir -p target/es5 && tsc -p tsconfig.es5.json",
"build:es6": "mkdir -p target/es6 && tsc -p tsconfig.es6.json",
"build:ts": "cp -r src/main/ts/ target/ts/",
Expand Down
2 changes: 1 addition & 1 deletion packages/secret-value/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"lint": "tslint -p tsconfig.test.json src/**/*.ts",
"lint:fix": "yarn lint --fix",
"clean": "rimraf target typings buildcache",
"build": "yarn build:es5 && yarn build:es6 && yarn build:ts && yarn docs && yarn uglify",
"build": "yarn build:es5 && yarn build:es6 && yarn build:ts && yarn docs",
"build:es5": "mkdir -p target/es5 && tsc -p tsconfig.es5.json",
"build:es6": "mkdir -p target/es6 && tsc -p tsconfig.es6.json",
"build:ts": "cp -r src/main/ts/ target/ts/",
Expand Down
2 changes: 1 addition & 1 deletion packages/split/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"lint": "tslint -p tsconfig.test.json src/**/*.ts",
"lint:fix": "yarn lint --fix",
"clean": "rimraf target typings buildcache",
"build": "yarn build:es5 && yarn build:es6 && yarn build:ts && yarn docs && yarn uglify",
"build": "yarn build:es5 && yarn build:es6 && yarn build:ts && yarn docs",
"build:es5": "mkdir -p target/es5 && tsc -p tsconfig.es5.json",
"build:es6": "mkdir -p target/es6 && tsc -p tsconfig.es6.json",
"build:ts": "cp -r src/main/ts/ target/ts/",
Expand Down
2 changes: 1 addition & 1 deletion packages/strike/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"lint": "tslint -p tsconfig.test.json src/**/*.ts",
"lint:fix": "yarn lint --fix",
"clean": "rimraf target typings buildcache",
"build": "yarn build:es5 && yarn build:es6 && yarn build:ts && yarn docs && yarn uglify",
"build": "yarn build:es5 && yarn build:es6 && yarn build:ts && yarn docs",
"build:es5": "mkdir -p target/es5 && tsc -p tsconfig.es5.json",
"build:es6": "mkdir -p target/es6 && tsc -p tsconfig.es6.json",
"build:ts": "cp -r src/main/ts/ target/ts/",
Expand Down
2 changes: 1 addition & 1 deletion packages/trycatch/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"lint": "tslint -p tsconfig.test.json src/**/*.ts",
"lint:fix": "yarn lint --fix",
"clean": "rimraf target typings buildcache",
"build": "yarn build:es5 && yarn build:es6 && yarn build:ts && yarn docs && yarn uglify",
"build": "yarn build:es5 && yarn build:es6 && yarn build:ts && yarn docs",
"build:es5": "mkdir -p target/es5 && tsc -p tsconfig.es5.json",
"build:es6": "mkdir -p target/es6 && tsc -p tsconfig.es6.json",
"build:ts": "cp -r src/main/ts/ target/ts/",
Expand Down

0 comments on commit f1f51da

Please sign in to comment.