Software: Apache. PHP/5.6.40 uname -a: Linux cpanel06wh.bkk1.cloud.z.com 2.6.32-954.3.5.lve1.4.80.el6.x86_64 #1 SMP Thu Sep 24 uid=851(cp949260) gid=853(cp949260) groups=853(cp949260) Safe-mode: OFF (not secure) /home/cp949260/public_html/phbcoop.com/phb_admin/bower_components/popper.js/packages/bundle/ drwxr-xr-x |
Viewing file: Select action/file-type: 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; |
:: Command execute :: | |
--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by KaizenLouie | C99Shell Github | Generation time: 0.0194 ]-- |