__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

www-data@216.73.216.10: ~ $
const { rollup, watch } = require('rollup');
const rimraf = require('rimraf');
const { argv } = require('yargs');

// Plugins
const babel = require('rollup-plugin-babel');
const babili = require('rollup-plugin-babel-minify');
const watchEnabled = argv.watch;

// Configs
const babelConfig = require('@popperjs/babel-config');
const sourcemap = true;
const external = ['popper.js'];
const globals = { 'popper.js': 'Popper' };

function bundle({ input, file, name, banner, miniBanner }) {
  rimraf.sync('dist');
  const minifyOptions = {
    comments: false,
    banner: miniBanner,
    mangle: { topLevel: true },
  };

  rollup({
    input,
    plugins: [babel(babelConfig.es6)],
    external,
  }).then(bundle => {
    bundle.write({
      format: 'es',
      file: `dist/${file}`,
      sourcemap,
      globals,
      banner,
    });
  });

  rollup({
    input,
    plugins: [babili(minifyOptions), babel(babelConfig.es6)],
    external,
  }).then(bundle => {
    bundle.write({
      format: 'es',
      file: `dist/${file.replace('.js', '.min.js')}`,
      sourcemap,
      globals,
    });
  });

  rollup({
    input,
    plugins: [babel(babelConfig.es5)],
    external,
  }).then(bundle => {
    bundle.write({
      format: 'umd',
      file: `dist/umd/${file}`,
      sourcemap,
      globals,
      name,
      banner,
    });
    bundle.write({
      format: 'es',
      file: `dist/esm/${file}`,
      sourcemap,
      globals,
      banner,
    });
  });

  rollup({
    input,
    plugins: [babili(minifyOptions), babel(babelConfig.es5)],
    external,
  }).then(bundle => {
    bundle.write({
      format: 'umd',
      file: `dist/umd/${file.replace('.js', '.min.js')}`,
      sourcemap,
      globals,
      name,
    });
    bundle.write({
      format: 'es',
      file: `dist/esm/${file.replace('.js', '.min.js')}`,
      sourcemap,
    });
  });
}

function bundleWatch({ input, file, name, banner, miniBanner }) {
  const watcher = watch({
    input,
    plugins: [babel(babelConfig.es5)],
    external,
    output: {
      format: 'umd',
      file: `dist/umd/${file}`,
      sourcemap,
      globals,
      name,
      banner,
    },
  });

  console.log('\x1Bc'); // reset console
  console.log('Rollup is watching for changes...');
  watcher.on('event', event => {
    switch (event.code) {
      case 'START':
        console.info('Rebuilding...');
        break;
      case 'BUNDLE_START':
        console.info('Bundling...');
        break;
      case 'BUNDLE_END':
        console.info('Bundled!');
        break;
      case 'END':
        console.info('Done!');
        break;
      case 'ERROR':
      case 'FATAL':
        console.error('Error!');
      /* eslint-enable no-console */
    }
  });

  process.on('exit', () => {
    watcher.close();
  });
}


module.exports = watchEnabled ? bundleWatch : bundle;

Filemanager

Name Type Size Permission Actions
index.js File 2.78 KB 0644
package.json File 374 B 0644
pkgjs-lock.json File 478 B 0644
Filemanager