@swagger-api/apidom-core

v1.0.0-alpha.9
Tools for manipulating ApiDOM structures.

build

npm run clean && run-p --max-parallel ${CPU_CORES:-2} typescript:declaration build:es build:cjs build:umd:browser

build:es

cross-env BABEL_ENV=es babel src --out-dir es --extensions '.ts' --out-file-extension '.mjs' --root-mode 'upward'

build:cjs

cross-env BABEL_ENV=cjs babel src --out-dir cjs --extensions '.ts' --out-file-extension '.cjs' --root-mode 'upward'

build:umd:browser

cross-env BABEL_ENV=browser webpack --config config/webpack/browser.config.js --progress

lint

eslint ./

lint:fix

eslint ./ --fix

clean

rimraf ./es ./cjs ./dist ./types

typescript:check-types

tsc -p check-types.tsconfig.json --noEmit

typescript:declaration

tsc -p declaration.tsconfig.json && rollup -c config/rollup/types.dist.js && copyfiles -u 2 ../@types/minim.d.ts ./types && node ../../scripts/file-replace-bof.js './types/dist.d.ts' '/// <reference path="./minim.d.ts" /> import * as minim from "minim";'

test

cross-env NODE_ENV=test BABEL_ENV=cjs mocha

test:update-snapshots

cross-env UPDATE_SNAPSHOT=1 NODE_ENV=test BABEL_ENV=cjs mocha

prepack

copyfiles -u 3 ../../LICENSES/* LICENSES && copyfiles -u 2 ../../NOTICE .

postpack

rimraf NOTICE LICENSES
npm i @swagger-api/apidom-core

Metadata

Downloads

Maintainers