uninstall.html 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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>bower uninstall amber-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>bower uninstall amber-contrib-web amber-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>As the last step, make sure the dependency tree is in a correct state
  32. by recreating it: first delete your <code>bower_components</code> folder,
  33. then run <code>bower install</code> from your CLI.</li>
  34. </ul>
  35. </body>
  36. </html>