@fluidframework/core-utils

v2.3.1
Not intended for use outside the Fluid client repo.

api

fluid-build . --task api

tsc

fluid-tsc commonjs --project ./tsconfig.cjs.json && copyfiles -f ../../../common/build/build-common/src/cjs/package.json ./dist

lint

fluid-build . --task lint

test

npm run test:mocha

bench

mocha --recursive "lib/test/**/*.spec.*js" --timeout 999999 --perfMode --parentProcess --fgrep @Benchmark --reporter @fluid-tools/benchmark/dist/MochaReporter.js

build

fluid-build . --task build

clean

rimraf --glob dist lib "*.d.ts" "**/*.tsbuildinfo" "**/*.build.log" _api-extractor-temp nyc

eslint

eslint --format stylish src

format

npm run format:biome

lint:fix

fluid-build . --task eslint:fix --task format

build:docs

api-extractor run --local

build:test

npm run build:test:esm && npm run build:test:cjs

eslint:fix

eslint --format stylish src --fix --fix-type problem,suggestion,layout

test:mocha

npm run test:mocha:esm && echo skipping cjs to avoid overhead - npm run test:mocha:cjs

check:biome

biome check .

build:esnext

tsc --project ./tsconfig.json

check:format

npm run check:biome

format:biome

biome check . --write

bench:profile

mocha --recursive "lib/test/**/*.spec.*js" --v8-prof --v8-logfile=profile.log --v8-no-logfile-per-isolate --timeout 999999 --perfMode --fgrep @Benchmark --reporter @fluid-tools/benchmark/dist/MochaReporter.js && node --prof-process profile.log > profile.txt && rimraf profile.log && echo See results in profile.txt

build:compile

fluid-build . --task compile

check:exports

concurrently "npm:check:exports:*"

ci:build:docs

api-extractor run

test:coverage

c8 npm test

typetests:gen

flub generate typetests --dir . -v

build:commonjs

fluid-build . --task commonjs

build:test:cjs

fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json

build:test:esm

tsc --project ./src/test/tsconfig.json

check:prettier

prettier --check . --cache --ignore-path ../../../.prettierignore

test:mocha:cjs

mocha --recursive "dist/test/**/*.spec.*js" --exit

test:mocha:esm

mocha --recursive "lib/test/**/*.spec.*js" --exit

format:prettier

prettier --write . --cache --ignore-path ../../../.prettierignore

build:api-reports

concurrently "npm:build:api-reports:*"

typetests:prepare

flub typetests --dir . --reset --previous --normalize

test:mocha:verbose

cross-env FLUID_TEST_VERBOSE=1 npm run test:mocha

api-extractor:esnext

flub generate entrypoints --outDir ./lib --node10TypeCompat

ci:build:api-reports

concurrently "npm:ci:build:api-reports:*"

test:benchmark:report

mocha --recursive "lib/test/**/*.spec.*js" --node-option unhandled-rejections=strict,expose-gc --exit --perfMode --fgrep @Benchmark --reporter @fluid-tools/benchmark/dist/MochaReporter.js --timeout 60000

api-extractor:commonjs

flub generate entrypoints --outDir ./dist

build:api-reports:legacy

api-extractor run --local --config api-extractor/api-extractor.legacy.json

check:exports:cjs:legacy

api-extractor run --config api-extractor/api-extractor-lint-legacy.cjs.json

check:exports:cjs:public

api-extractor run --config api-extractor/api-extractor-lint-public.cjs.json

check:exports:esm:legacy

api-extractor run --config api-extractor/api-extractor-lint-legacy.esm.json

check:exports:esm:public

api-extractor run --config api-extractor/api-extractor-lint-public.esm.json

build:api-reports:current

api-extractor run --local --config api-extractor/api-extractor.current.json

check:are-the-types-wrong

attw --pack .

ci:build:api-reports:legacy

api-extractor run --config api-extractor/api-extractor.legacy.json

ci:build:api-reports:current

api-extractor run --config api-extractor/api-extractor.current.json

check:exports:bundle-release-tags

api-extractor run --config api-extractor/api-extractor-lint-bundle.json
npm i @fluidframework/[email protected]

Metadata

  • MIT
  • Whatever
  • Microsoft and contributors
  • released 10/1/2024

Downloads

Maintainers