uninstall.html 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>{%= title %}</title>
  5. <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  6. <meta name="author" content="{%= author_name %}" />
  7. </head>
  8. <body>
  9. <p>Once you start developing your own app / lib, you should
  10. remove all unnecessary parts left from the sample app.</p>
  11. <ul style="width: 40ex">
  12. <li>In <code>index.html</code>
  13. <code>&lt;body&gt;</code> tag,
  14. everything should be removed, except
  15. the <code>&lt;script&gt;</code> tag
  16. that initializes Amber and starts your app;
  17. then you can add elements specific to your own app
  18. to the page.</li>
  19. <li>If you aren't going to use <code>Web</code>
  20. package from <code>amber-contrib-web</code> module,
  21. but want to retain the jQuery wrapper,
  22. you should run <code>npm uninstall @ambers/contrib-web --save</code>
  23. from your CLI.</li>
  24. <li>If you aren't going to use the <code>Web</code>
  25. package from the <code>amber-contrib-web</code> module,
  26. nor the jQuery wrapper from <code>amber-contrib-jquery</code>,
  27. you should run <code>npm uninstall @ambers/contrib-web @ambers/contrib-jquery --save</code>
  28. from your CLI.</li>
  29. <li>You cannot remove just the jQuery wrapper and retain the Web package,
  30. as it depends on the jQuery wrapper.</li>
  31. <li>If you aren't going to use <code>Silk</code>
  32. package from <code>silk</code> module,
  33. but want to retain <code>DOMite</code> DOM wrapper,
  34. you should run <code>npm uninstall silk --save</code>
  35. from your CLI.</li>
  36. <li>If you aren't going to use the <code>Silk</code>
  37. package from the <code>silk</code> module,
  38. nor the DOM wrapper from <code>domite</code>,
  39. you should run <code>npm uninstall silk domite --save</code>
  40. from your CLI.</li>
  41. <li>You cannot remove just the <code>DOMite</code> DOM wrapper
  42. and retain the Silk package, as it depends on <code>domite</code>.</li>
  43. <li>Your <code>Gruntfile.js</code> may contain references
  44. to <code>Web</code> and/or <code>Silk</code> in <code>libraries</code>
  45. field(s). Fix those fields to not contain non-existing libraries (optionally
  46. add other needed ones, like <code>domite</code> or <code>Wrappers-JQuery</code>).</li>
  47. </ul>
  48. <p>If you are sure your app will only be run in modern browser / node.js
  49. with Promise present, you can <code>npm uninstall es6-promise --save</code>,
  50. then remove <code>es6-promise.amd.json</code> file.</p>
  51. <p>As the last step, make sure the dependency tree is in a correct state
  52. by recreating it: run <code>npm run reset</code> from your CLI.</p>
  53. </body>
  54. </html>