@petamoriken/float16
v3.8.0 float16 binary16 FP16 half-precision ieee754 Float16Array TypedArray DataView getFloat16 and 5 more...
build
concurrently "yarn:build:*"
build:browser
rollup -c
build:lib
babel src -d lib --out-file-extension .cjs
clean
rm -rf lib browser docs coverage .nyc_output
coverage
nyc --reporter=lcov mocha test/*.js
docs
mkdir -p docs && cp README.md docs/index.md && yarn run docs:test
docs:test
mkdir -p docs/test && concurrently "yarn:docs:test:*"
docs:test:build
cp test/*.js docs/test && tools/power
docs:test:copy
cp browser/float16.js docs/test/float16.js && cp test/browser/*.html docs/test
docs:test:dependencies
cp node_modules/mocha/mocha.js node_modules/mocha/mocha.css node_modules/power-assert/build/power-assert.js docs/test
lint
concurrently "yarn:lint:*"
lint:eslint
eslint src/**/*.mjs
lint:unused
find-unused-exports --module-glob 'src/**/*.mjs'
prepublishOnly
yarn run lint && yarn test
refresh
yarn run clean && yarn run build && yarn run docs
setup-test-browser
http-server docs/test -p 8000 > /dev/null 2>&1 &
test
mocha test/*.js
test-browser
nightwatch -e chrome,chrome_old,firefox,firefox_old,firefox_esr,edge,edge_old,safari,safari_old
version
NPM_VERSION_SCRIPT=1 yarn run refresh
npm i @petamoriken/[email protected]
Metadata
- MIT
- Whatever
- Kenta Moriuchi
- released 3/26/2023