Closed panzerdp closed 7 years ago
Voca library needs a custom build tool to generate configured builds.
Rough the command npm run build should implement the following settings:
npm run build
--functions sprintf,camelCase,insert,latinise
--categories escape,format
--exclude-functions insert,latinise
cjs
umd
iife
es
--format cjs
--minify
--fp
--output dist/voca.cust.build.js
For instance the following command creates a fp build exported as CommonJS of sprintf() and latinise() functions:
sprintf()
latinise()
npm run build --functions sprintf,latinise --format cjs --fp
Decided for now to delay the implementation. May be reopened in case of necessity.
Voca library needs a custom build tool to generate configured builds.
Rough the command
npm run build
should implement the following settings:--functions sprintf,camelCase,insert,latinise
--categories escape,format
--exclude-functions insert,latinise
cjs
(CommonJS),umd
(Universal Module Definition),iife
,es
, e.g.--format cjs
--minify
--fp
--output dist/voca.cust.build.js
For instance the following command creates a fp build exported as CommonJS of
sprintf()
andlatinise()
functions: