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