Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ember

Package Overview
Dependencies
Maintainers
8
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ember - npm Package Compare versions

Comparing version 1.0.0-pre.m2 to 1.0.0

index.js

28

package.json
{
"name": "ember",
"summary": "Ember - JavaScript Application Framework",
"description": "Ember - JavaScript Application Framework",
"homepage": "http://github.com/emberjs/ember.js",
"author": "Charles Jolley",
"version": "v1.0.0-pre.m2",
"dependencies": {
"handlebars": "~> 1.0.0-beta.6",
"window": "git://github.com/charlesjolley/node-window.git#master",
"jquery": "~> 1.7.0",
"convoy": "~0.3"
"version": "1.0.0",
"description": "<p align=\"center\"> <a href=\"http://emberjs.com\"><img width=\"300\" src=\"http://emberjs.com/images/brand/ember_Ember-Light.png\"></a> </p>",
"main": "index.js",
"scripts": {
"postinstall": "node ./index.js"
},
"main": "./ember.js",
"repository": {
"type": "git",
"url": "git://github.com/charlesjolley/node-ember.git"
}
}
"url": "git+https://github.com/emberjs/ember.git"
},
"author": "",
"license": "MIT",
"bugs": {
"url": "https://github.com/emberjs/ember/issues"
},
"homepage": "https://github.com/emberjs/ember#readme"
}

@@ -1,88 +0,18 @@

# Ember for Node
<p align="center">
<a href="http://emberjs.com"><img width="300" src="http://emberjs.com/images/brand/ember_Ember-Light.png"></a><br>
http://emberjs.com/
</p>
Ember.js is a framework for building ambitious client-side applications on the
web. Now you can use the same Ember tools in node code and in node-based asset
pipelines like [Convoy](http://github.com/charlesjolley/convoy).
# Using This Package
## Get Started
Just add ember as a requirement to your package.json:
```javascript
"dependencies": {
...
"ember": "~0.9"
}
```
In your code, you can load the entire Ember stack by just requiring the package.
This will add Ember to the global namespace in your application.
```javascript
require('ember');
MyApp = Ember.Application.create({
hi: function() { console.log('Hi! I'm an app!'); }
});
npm install -g ember-cli
```
If you don't want to use the entire Ember stack, you can just require the
specific module that you want. For example, a lot of server side code just
needs States for statecharting:
```javascript
require('ember/states');
## Node Modules:
MyState = Ember.State.create({
});
```
# Using Ember with Convoy
Building an Ember application in the browser is very easy when using Convoy.
Just require ember in your main application file.
```javascript
// In some JS module included by convoy:
require('ember'); // <- convoy will automatically pull in all of Ember.
UserView = Ember.View.extend({
template: Ember.Handlebars.compile('{{firstName}} {{lastName}}')
});
```
If you want to store your Handlebars templates in a separate file, Ember for
Node has a HandlebarsCompiler that will precompile the templates for you.
Here is an example Convoy pipeline configuration:
```javascript
pipeline = convoy({
'app.js': {
packager: 'javascript',
compilers: {
'.hbr': require('ember/packager').HandlebarsCompiler
}
}
});
app = express.createServer();
app.use(pipeline.middleware());
```
This will now make `.hbr` files available as modules. In your app code, you
can load the template via a normal require:
```javascript
// user_view.js
require('ember/views');
UserView = Ember.View.extend({
template: require('./user_template') // template in user_template.hbr
});
```
For a fully functioning example of an application, check out the
[examples](https://github.com/charlesjolley/node-ember/tree/master/examples)
folder.
* [ember-source](https://www.npmjs.com/package/ember-source) – The Framework: [website](http://emberjs.com) | [github](https://github.com/emberjs/ember.js)
* [ember-data](https://www.npmjs.com/package/ember-data) – The data library: [website](http://emberjs.com/api/data/) | [github](https://github.com/emberjs/data)
* [ember-cli](https://www.npmjs.com/package/ember-cli) – The commandline tool: [website](http://ember-cli.com) | [github](https://github.com/ember-cli/ember-cli)
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc