qiwi/cyclone

View on GitHub
package.json

Summary

Maintainability
Test Coverage
{
  "name": "@qiwi/cyclone",
  "version": "3.0.3",
  "description": "\"State machine\" for basic purposes",
  "main": "target/es5/index.js",
  "types": "typings/index.d.ts",
  "scripts": {
    "jest": "jest --config=jest.config.json",
    "lint": "eslint src/**/*.{ts,js}",
    "lint:fix": "yarn lint -- --fix",
    "test": "yarn lint && yarn jest && yarn test:depcheck && yarn test:depaudit",
    "test:deps": "npm-run-all -p -l test:depcheck test:depauditfix",
    "test:depcheck": "npm_config_yes=true npx depcheck --ignores tsc-esm-fix,tslib,@types/jest,@types/jest-json-schema,typedoc,@qiwi/esm,tsm",
    "test:depaudit": "yarn audit --level=moderate --groups=dependencies; [[ $? -ge 4 ]] && exit 1 || exit 0",
    "test:depauditfix": "npm_config_yes=true npx yarn-audit-fix --audit-level=moderate",
    "clean": "rm -rf target typings",
    "build": "npm-run-all -p -l build:es5 build:es6 build:esnext build:ts build:libdef build:bundle docs && yarn build:esmfix",
    "build:es5": "mkdir -p target/es5 && tsc -p tsconfig.es5.json",
    "build:es6": "mkdir -p target/es6 && tsc -p tsconfig.es6.json",
    "build:esnext": "mkdirp target/esnext && tsc -p tsconfig.esnext.json",
    "build:ts": "mkdir -p target/ts && cp -r src/main/ target/ts/",
    "build:bundle": "microbundle --tsconfig tsconfig.es5.json build src/main/ts/index.ts -o target/bundle",
    "build:libdef": "libdefkit --tsconfig=tsconfig.es5.json --tsconfig=tsconfig.es6.json --tsconfig=tsconfig.esnext.json",
    "build:esmfix": "yarn tsc-esm-fix --target=target/es6 --target=target/esnext --dirnameVar=false",
    "test:report": "yarn test && yarn coveralls:push",
    "coveralls:push": "cat ./coverage/lcov.info | coveralls",
    "docs": "typedoc src/main --ignoreCompilerErrors || exit 0",
    "postupdate": "yarn && yarn build && yarn test"
  },
  "files": [
    "README.md",
    "CHANGELOG.md",
    "target",
    "typings",
    "flow-typed"
  ],
  "repository": {
    "type": "git",
    "url": "https://github.com/qiwi/cyclone.git"
  },
  "keywords": [
    "state machine",
    "finite-state machine",
    "FSM",
    "FSA",
    "automata"
  ],
  "author": "Anton Golub <a.golub@qiwi.com>",
  "license": "MIT",
  "dependencies": {
    "tslib": "^2.4.0"
  },
  "devDependencies": {
    "@qiwi/esm": "^1.1.8",
    "@qiwi/libdefkit": "^4.0.8",
    "@qiwi/npm-run-all": "^4.1.7",
    "@types/jest": "^29.2.0",
    "@types/jest-json-schema": "^6.1.1",
    "coveralls": "^3.1.1",
    "eslint": "^8.26.0",
    "eslint-config-prettier": "^8.5.0",
    "eslint-config-qiwi": "^1.17.8",
    "jest": "^29.2.2",
    "microbundle": "^0.15.1",
    "ts-jest": "29.0.3",
    "tsc-esm-fix": "^2.20.5",
    "typedoc": "^0.23.18",
    "typescript": "^4.8.4"
  }
}