Once you start developing your own app / lib, you should remove all unnecessary parts left from the sample app.
index.html
<body>
tag,
everything should be removed, except
the <script>
tag
that initializes Amber and starts your app;
then you can add elements specific to your own app
to the page.Web
package from amber-contrib-web
module,
but want to retain the jQuery wrapper,
you should run bower uninstall amber-contrib-web --save
from your CLI.Web
package from the amber-contrib-web
module,
nor the jQuery wrapper from amber-contrib-jquery
,
you should run bower uninstall amber-contrib-web amber-contrib-jquery --save
from your CLI.Silk
package from silk
module,
but want to retain DOMite
DOM wrapper,
you should run bower uninstall silk --save
from your CLI.Silk
package from the silk
module,
nor the DOM wrapper from domite
,
you should run bower uninstall silk domite --save
from your CLI.DOMite
DOM wrapper
and retain the Silk package, as it depends on domite
.Gruntfile.js
may contain references
to Web
and/or Silk
in libraries
field(s). Fix those fields to not contain non-existing libraries (optionally
add other needed ones, like domite
or Wrappers-JQuery
).If you are sure your app will only be run in modern browser / node.js
with Promise present, you can npm uninstall es6-promise --save
,
then remove es6-promise.amd.json
file.
As the last step, make sure the dependency tree is in a correct state
by recreating it: first delete your bower_components
folder,
then run bower install
from your CLI.
Similarly, delete your node_modules
then run npm install
from your CLI.
Finally, rerun grunt devel
.