Spaces:
Paused
Paused
Download node_modules/@plotly/mapbox-gl/build/test/build-tape.js from Leon4gr45/UserSyncFrontend: direct link, hf CLI and curl.
- Browser
- Download file 724 Bytes
-
https://huggingface.co/spaces/Leon4gr45/UserSyncFrontend/resolve/main/node_modules/%40plotly/mapbox-gl/build/test/build-tape.js
- Command line
-
hf download hf://spaces/Leon4gr45/UserSyncFrontend/node_modules/@plotly/mapbox-gl/build/test/build-tape.js
-
curl -L -o build-tape.js https://huggingface.co/spaces/Leon4gr45/UserSyncFrontend/resolve/main/node_modules/%40plotly/mapbox-gl/build/test/build-tape.js
724 Bytes
| /* eslint-disable import/no-commonjs */ | |
| /* eslint-disable flowtype/require-valid-file-annotation */ | |
| const browserify = require('browserify'); | |
| const fs = require('fs'); | |
| module.exports = function() { | |
| return new Promise((resolve, reject) => { | |
| browserify(require.resolve('../../test/util/tape_config.js'), { standalone: 'tape' }) | |
| .transform("babelify", {presets: ["@babel/preset-env"], global: true}) | |
| .bundle((err, buff) => { | |
| if (err) { throw err; } | |
| fs.writeFile('test/integration/dist/tape.js', buff, { encoding: 'utf8'}, (err) => { | |
| if (err) { reject(err); } | |
| resolve(); | |
| }); | |
| }); | |
| }); | |
| }; | |