File: build

package info (click to toggle)
node-i18next-http-backend 1.0.21%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 232 kB
  • sloc: javascript: 531; makefile: 2
file content (6 lines) | stat: -rw-r--r-- 450 bytes parent folder | download
1
2
3
4
5
6
babeljs lib -d cjs --presets=@babel/preset-env --plugins=add-module-exports
echo '{"type":"commonjs"}' > cjs/package.json
cp lib/getFetch.cjs cjs/getFetch.js
node -e "fs.writeFileSync('cjs/request.js', fs.readFileSync('cjs/request.js').toString().replace('getFetch.cjs', 'getFetch.js'))"
browserify-lite ./cjs/index.js --outfile i18nextHttpBackend.js --standalone i18nextHttpBackend
uglifyjs.terser i18nextHttpBackend.js -o i18nextHttpBackend.min.js