i18next-http-backend
v2.6.2 i18next i18next-backend i18next-http-backend
lint
eslint .
compile:esm
rm -rf esm && mkdir esm && BABEL_ENV=esm babel lib -d esm && cp index.d.mts esm/index.d.mts && cp index.d.ts esm/index.d.ts && cp lib/getFetch.cjs esm/getFetch.cjs && rm -f esm/getFetch.js && node -e "fs.writeFileSync('esm/getFetch.cjs', fs.readFileSync('esm/getFetch.cjs').toString().replace('/* eslint-disable no-var, no-undef */\n', ''))"
compile:cjs
rm -rf cjs && mkdir cjs && BABEL_ENV=cjs babel lib -d cjs && cp index.d.ts cjs/index.d.ts && echo '{"type":"commonjs"}' > cjs/package.json && cp lib/getFetch.cjs cjs/getFetch.js && node -e "fs.writeFileSync('cjs/getFetch.js', fs.readFileSync('cjs/getFetch.js').toString().replace('/* eslint-disable no-var, no-undef */\n', ''))" && node -e "fs.writeFileSync('cjs/request.js', fs.readFileSync('cjs/request.js').toString().replace('getFetch.cjs', 'getFetch.js'))"
compile
npm run compile:esm && npm run compile:cjs
browser
browserify --ignore cross-fetch --standalone i18nextHttpBackend cjs/index.js -o i18nextHttpBackend.js && uglifyjs i18nextHttpBackend.js --compress --mangle -o i18nextHttpBackend.min.js
build
npm run compile && npm run browser
test:xmlhttpreq
mocha test -R spec --require test/fixtures/xmlHttpRequest.cjs --experimental-modules
test:fetch
mocha test -R spec --experimental-modules
test
npm run lint && npm run build && npm run test:fetch && npm run test:xmlhttpreq && npm run test:typescript
test:typescript
tslint --project tsconfig.json && tsd
test:deno
deno test --allow-net test/deno/*.js
preversion
npm run test && npm run build && git push
postversion
git push && git push --tags