IF YOU WOULD LIKE TO GET AN ACCOUNT, please write an email to s dot adaszewski at gmail dot com. User accounts are meant only to report issues and/or generate pull requests. This is a purpose-specific Git hosting for ADARED projects. Thank you for your understanding!
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

68 行
4.1KB

  1. import resolve from 'rollup-plugin-node-resolve'
  2. import buble from 'rollup-plugin-buble';
  3. import copy from 'rollup-plugin-copy';
  4. import includePaths from 'rollup-plugin-includepaths';
  5. import license from 'rollup-plugin-license';
  6. import { uglify } from "rollup-plugin-uglify";
  7. export default {
  8. // dest: 'dist/js/app.js',
  9. input: 'src/js/index.js',
  10. output: {
  11. file: 'dist/js/app.min.js',
  12. name: 'WBADV',
  13. format: 'umd',
  14. sourceMap: true
  15. },
  16. plugins: [
  17. includePaths({
  18. paths: ['src/js', 'src/js/widget', 'src/js/misc', 'src/js/component',
  19. 'src/js/page', 'src/js/dialog', 'src/js/arvados/base',
  20. 'src/js/arvados/collection', 'src/js/arvados/process']
  21. }),
  22. copy({
  23. 'src/html/index.html': 'dist/index.html',
  24. 'src/css/index.css': 'dist/css/index.css',
  25. 'node_modules/bootstrap/dist/css/bootstrap.min.css': 'dist/css/bootstrap.min.css',
  26. 'node_modules/bootstrap/dist/js/bootstrap.min.js': 'dist/js/bootstrap.min.js',
  27. 'node_modules/jquery/dist/jquery.min.js': 'dist/js/jquery.min.js',
  28. 'node_modules/@fortawesome/fontawesome-free/js/fontawesome.min.js': 'dist/js/fontawesome.min.js',
  29. 'node_modules/@fortawesome/fontawesome-free/css/all.min.css': 'dist/css/all.min.css',
  30. 'node_modules/@fortawesome/fontawesome-free/webfonts/fa-regular-400.eot': 'dist/webfonts/fa-regular-400.eot',
  31. 'node_modules/@fortawesome/fontawesome-free/webfonts/fa-regular-400.svg': 'dist/webfonts/fa-regular-400.svg',
  32. 'node_modules/@fortawesome/fontawesome-free/webfonts/fa-regular-400.ttf': 'dist/webfonts/fa-regular-400.ttf',
  33. 'node_modules/@fortawesome/fontawesome-free/webfonts/fa-regular-400.woff': 'dist/webfonts/fa-regular-400.woff',
  34. 'node_modules/@fortawesome/fontawesome-free/webfonts/fa-regular-400.woff2': 'dist/webfonts/fa-regular-400.woff2',
  35. 'node_modules/@fortawesome/fontawesome-free/webfonts/fa-solid-900.eot': 'dist/webfonts/fa-solid-900.eot',
  36. 'node_modules/@fortawesome/fontawesome-free/webfonts/fa-solid-900.svg': 'dist/webfonts/fa-solid-900.svg',
  37. 'node_modules/@fortawesome/fontawesome-free/webfonts/fa-solid-900.ttf': 'dist/webfonts/fa-solid-900.ttf',
  38. 'node_modules/@fortawesome/fontawesome-free/webfonts/fa-solid-900.woff': 'dist/webfonts/fa-solid-900.woff',
  39. 'node_modules/@fortawesome/fontawesome-free/webfonts/fa-solid-900.woff2': 'dist/webfonts/fa-solid-900.woff2',
  40. 'node_modules/@fortawesome/fontawesome-free/webfonts/fa-brands-400.eot': 'dist/webfonts/fa-brands-400.eot',
  41. 'node_modules/@fortawesome/fontawesome-free/webfonts/fa-brands-400.svg': 'dist/webfonts/fa-brands-400.svg',
  42. 'node_modules/@fortawesome/fontawesome-free/webfonts/fa-brands-400.ttf': 'dist/webfonts/fa-brands-400.ttf',
  43. 'node_modules/@fortawesome/fontawesome-free/webfonts/fa-brands-400.woff': 'dist/webfonts/fa-brands-400.woff',
  44. 'node_modules/@fortawesome/fontawesome-free/webfonts/fa-brands-400.woff2': 'dist/webfonts/fa-brands-400.woff2',
  45. 'node_modules/js-uuid/js-uuid.js': 'dist/js/js-uuid.js',
  46. 'node_modules/filesize/lib/filesize.js': 'dist/js/filesize.js',
  47. 'node_modules/crypto-js/core.js': 'dist/js/crypto-js/core.js',
  48. 'node_modules/crypto-js/md5.js': 'dist/js/crypto-js/md5.js',
  49. 'src/js/worker/wb-manifest-worker.js': 'dist/js/wb-manifest-worker.js',
  50. 'node_modules/js-yaml/dist/js-yaml.min.js': 'dist/js/js-yaml.min.js',
  51. 'node_modules/streamsaver/mitm.html': 'dist/mitm.html',
  52. 'node_modules/streamsaver/sw.js': 'dist/sw.js',
  53. 'src/js/thirdparty/StreamSaver.js': 'dist/js/StreamSaver.js',
  54. 'node_modules/web-streams-polyfill/dist/ponyfill.js': 'dist/js/web-streams-polyfill/ponyfill.js',
  55. 'node_modules/papaya-viewer/release/current/standard/papaya.js': 'dist/js/papaya.js',
  56. 'node_modules/papaya-viewer/release/current/standard/papaya.css': 'dist/css/papaya.css',
  57. verbose: true
  58. }),
  59. buble({jsx: 'h', objectAssign: 'Object.assign'}),
  60. resolve({}),
  61. license({
  62. banner: 'Copyright (C) Stanislaw Adaszewski, 2020.\nContact: stanislaw.adaszewski@gmail.com\nAll Rights Reserved.',
  63. }),
  64. // uglify()
  65. ]
  66. }