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!
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

пре 4 година
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. import resolve from 'rollup-plugin-node-resolve'
  2. import buble from 'rollup-plugin-buble';
  3. import minify from 'rollup-plugin-minify';
  4. import copy from 'rollup-plugin-copy';
  5. import includePaths from 'rollup-plugin-includepaths';
  6. import license from 'rollup-plugin-license';
  7. export default {
  8. //dest: 'dist/app.min.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', 'src/js/page', 'src/js/dialog']
  19. }),
  20. copy({
  21. 'src/html/index.html': 'dist/index.html',
  22. 'src/css/index.css': 'dist/css/index.css',
  23. 'node_modules/bootstrap/dist/css/bootstrap.min.css': 'dist/css/bootstrap.min.css',
  24. 'node_modules/bootstrap/dist/js/bootstrap.min.js': 'dist/js/bootstrap.min.js',
  25. 'node_modules/jquery/dist/jquery.min.js': 'dist/js/jquery.min.js',
  26. 'node_modules/@fortawesome/fontawesome-free/js/fontawesome.min.js': 'dist/js/fontawesome.min.js',
  27. 'node_modules/@fortawesome/fontawesome-free/css/all.min.css': 'dist/css/all.min.css',
  28. 'node_modules/@fortawesome/fontawesome-free/webfonts/fa-regular-400.eot': 'dist/webfonts/fa-regular-400.eot',
  29. 'node_modules/@fortawesome/fontawesome-free/webfonts/fa-regular-400.svg': 'dist/webfonts/fa-regular-400.svg',
  30. 'node_modules/@fortawesome/fontawesome-free/webfonts/fa-regular-400.ttf': 'dist/webfonts/fa-regular-400.ttf',
  31. 'node_modules/@fortawesome/fontawesome-free/webfonts/fa-regular-400.woff': 'dist/webfonts/fa-regular-400.woff',
  32. 'node_modules/@fortawesome/fontawesome-free/webfonts/fa-regular-400.woff2': 'dist/webfonts/fa-regular-400.woff2',
  33. 'node_modules/@fortawesome/fontawesome-free/webfonts/fa-solid-900.eot': 'dist/webfonts/fa-solid-900.eot',
  34. 'node_modules/@fortawesome/fontawesome-free/webfonts/fa-solid-900.svg': 'dist/webfonts/fa-solid-900.svg',
  35. 'node_modules/@fortawesome/fontawesome-free/webfonts/fa-solid-900.ttf': 'dist/webfonts/fa-solid-900.ttf',
  36. 'node_modules/@fortawesome/fontawesome-free/webfonts/fa-solid-900.woff': 'dist/webfonts/fa-solid-900.woff',
  37. 'node_modules/@fortawesome/fontawesome-free/webfonts/fa-solid-900.woff2': 'dist/webfonts/fa-solid-900.woff2',
  38. 'node_modules/@fortawesome/fontawesome-free/webfonts/fa-brands-400.eot': 'dist/webfonts/fa-brands-400.eot',
  39. 'node_modules/@fortawesome/fontawesome-free/webfonts/fa-brands-400.svg': 'dist/webfonts/fa-brands-400.svg',
  40. 'node_modules/@fortawesome/fontawesome-free/webfonts/fa-brands-400.ttf': 'dist/webfonts/fa-brands-400.ttf',
  41. 'node_modules/@fortawesome/fontawesome-free/webfonts/fa-brands-400.woff': 'dist/webfonts/fa-brands-400.woff',
  42. 'node_modules/@fortawesome/fontawesome-free/webfonts/fa-brands-400.woff2': 'dist/webfonts/fa-brands-400.woff2',
  43. 'node_modules/js-uuid/js-uuid.js': 'dist/js/js-uuid.js',
  44. 'node_modules/filesize/lib/filesize.js': 'dist/js/filesize.js',
  45. 'node_modules/crypto-js/core.js': 'dist/js/crypto-js/core.js',
  46. 'node_modules/crypto-js/md5.js': 'dist/js/crypto-js/md5.js',
  47. 'src/js/misc/wb-manifest-worker.js': 'dist/js/wb-manifest-worker.js',
  48. 'node_modules/js-yaml/dist/js-yaml.min.js': 'dist/js/js-yaml.min.js',
  49. verbose: true
  50. }),
  51. buble({jsx: 'h'}),
  52. resolve({}),
  53. license({
  54. banner: 'Copyright (C) F. Hoffmann-La Roche AG, 2020.\nAuthor: stanislaw.adaszewski@roche.com\nAll Rights Reserved.',
  55. }) /* ,
  56. minify({
  57. iife: 'dist/app.min.js'
  58. }) */
  59. ]
  60. }