I developed an admin admin that works great.
When I run the command ember build, it basically creates a file vendor.jscontaining my addon and all the dependencies (ember, jquery, etc.), which is about 3 MB
I would like to know if it is possible to export the addon as my own ( my-addon.js) without any dependencies inside, as a provider that I can use?
I am basically trying to make my hadron cli addon a bower component that I can include in another ember project. My addon and all the dependencies make up more than 100 MB of data (including node modules, broccoli, tests ...), so when I install it using npm install my-addon, it is quite large. I really don't need that in my other project the add-on (dist version) itself is about a couple of KB and that all I need ...
Basically, this is the architecture of my projects:
Ember Project:
my-project.git
/my-project
/app
/controllers etc...
/node_modules
/my-addon //My addon lives here for now and contains everything (all node_modules, bower_components, tests... about 100MB to download!)
Brocfile.js etc..
The basic architecture to complement ember-cli:
my-addon.git
/my-addon
/addon
/app
/bower_components
/node_modules
/tests
Brocfile.js etc..
package.json:
{
"name": "my-addon",
"version": "0.0.1",
"directories": {
"doc": "doc",
"test": "tests"
},
"scripts": {
"start": "ember server",
"build": "ember build",
"test": "ember test"
},
"engines": {
"node": ">= 0.10.0"
},
"devDependencies": {
"body-parser": "^1.2.0",
"broccoli-sass": "0.3.2",
"broccoli-asset-rev": "0.3.1",
"broccoli-ember-hbs-template-compiler": "^1.6.1",
"ember-cli": "0.1.2",
"ember-cli-content-security-policy": "0.3.0",
"ember-cli-ic-ajax": "0.1.1",
"ember-cli-inject-live-reload": "^1.3.0",
"ember-cli-qunit": "0.1.0",
"ember-data": "1.0.0-beta.10",
"ember-export-application-global": "^1.0.0",
"express": "^4.8.5",
"glob": "^4.0.5"
}
"keywords": [
"ember-addon"
],
"ember-addon": {
"configPath": "tests/dummy/config"
}
}
thank