ulidx
v2.4.0 ulid uuid id generator guid
test
npm run build && npm run test:specs && npm run test:format
bench
npm run build && node test/benchmark.js
build
run-s clean build:node:cjs build:node:esm build:browser:cjs build:browser:esm build:types
clean
rimraf dist
format
prettier --write "{{source,test}/**/*.{js,ts},rollup.config.js}"
prepare
simple-git-hooks
pre:commit
lint-staged
test:specs
run-s test:node:esm test:node:cjs test:browser:cjs
build:types
tsc -p tsconfig.dec.json --emitDeclarationOnly && find ./dist -name '*.d.ts' -exec sh -c 'cp {} $(dirname {})/$(basename -s .d.ts {}).d.cts' \;
test:format
prettier --check "{{source,test}/**/*.{js,ts},rollup.config.js}"
test:node:cjs
c8 --src ./dist/node/index.cjs --check-coverage --lines 60 --functions 60 --branches 65 --statements 60 mocha -t 10000 'test/node-cjs/**/*.spec.cjs'
test:node:esm
c8 --src ./dist/node/index.js --check-coverage --lines 60 --functions 60 --branches 65 --statements 60 mocha -t 10000 'test/node-esm/**/*.spec.js'
build:node:cjs
FMT=cjs ENV=node rollup -c
build:node:esm
FMT=esm ENV=node rollup -c
prepublishOnly
npm run build
test:browser:cjs
mochify ./test/browser-cjs/*.spec.cjs
build:browser:cjs
FMT=cjs ENV=browser rollup -c --name ulidx
build:browser:esm
FMT=esm ENV=browser rollup -c --name ulidx