Skip to content
This repository has been archived by the owner on May 9, 2024. It is now read-only.

Commit

Permalink
v1.12.0-beta.3
Browse files Browse the repository at this point in the history
  • Loading branch information
Oleksii Rudenko committed May 6, 2015
1 parent fac5437 commit 71c7b16
Show file tree
Hide file tree
Showing 6 changed files with 89 additions and 64 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ FEATURES
});
```

- Uses [Ember Computed Decorators](https://github.com/rwjblue/ember-computed-decorators)
- [Disabled at the moment due to bugs in the dependencies.] Uses [Ember Computed Decorators](https://github.com/rwjblue/ember-computed-decorators)

```javascript
var MyComponent = Ember.Component.extend({
Expand All @@ -46,7 +46,7 @@ FEATURES
Packages Info
=============

Ember version: 1.12.0-beta.1
Ember version: 1.12.0-beta.3

JSPM: 0.15.3

Expand Down
11 changes: 7 additions & 4 deletions app/components/my-component.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,14 @@ var MyComponent = Ember.Component.extend({

key: 'my-key',

@computed('key')
test(key) {
return `${key} + computed`;
}
// @computed('key')
// test(key) {
// return `${key} + computed`;
// }

test: Ember.computed('key', function() {
return `${this.get('key')} + computed`;
})
});

Ember.Handlebars.helper('my-component', MyComponent);
28 changes: 14 additions & 14 deletions app/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,36 +15,36 @@ System.config({

System.config({
"map": {
"babel": "npm:babel-core@5.1.13",
"babel-runtime": "npm:babel-runtime@5.1.13",
"core-js": "npm:[email protected].4",
"ember": "github:components/[email protected].1",
"babel": "npm:babel-core@5.2.15",
"babel-runtime": "npm:babel-runtime@5.2.15",
"core-js": "npm:[email protected].6",
"ember": "github:components/[email protected].3",
"ember-computed-decorators": "github:rwjblue/ember-computed-decorators@master",
"hbs": "github:n-fuse/[email protected].1",
"ihbs": "github:n-fuse/[email protected].1",
"hbs": "github:n-fuse/[email protected].3",
"ihbs": "github:n-fuse/[email protected].3",
"jquery": "github:components/[email protected]",
"n-fuse/pajax": "github:n-fuse/[email protected]",
"pajax": "github:n-fuse/[email protected]",
"github:components/[email protected].1": {
"github:components/[email protected].3": {
"jquery": "github:components/[email protected]"
},
"github:jspm/[email protected]": {
"process": "npm:[email protected]"
},
"github:n-fuse/[email protected].1": {
"ember-template-compiler": "github:n-fuse/[email protected].1"
"github:n-fuse/[email protected].3": {
"ember-template-compiler": "github:n-fuse/[email protected].3"
},
"github:n-fuse/[email protected].1": {
"ember-template-compiler": "github:n-fuse/[email protected].1"
"github:n-fuse/[email protected].3": {
"ember-template-compiler": "github:n-fuse/[email protected].3"
},
"github:rwjblue/ember-computed-decorators@master": {
"ember": "github:components/[email protected].1",
"ember": "github:components/[email protected].3",
"ember-new-computed": "github:rwjblue/ember-new-computed@master"
},
"github:rwjblue/ember-new-computed@master": {
"ember": "github:components/[email protected].1"
"ember": "github:components/[email protected].3"
},
"npm:[email protected].4": {
"npm:[email protected].6": {
"process": "github:jspm/[email protected]"
}
}
Expand Down
58 changes: 22 additions & 36 deletions dist/app.js

Large diffs are not rendered by default.

31 changes: 29 additions & 2 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,37 @@ gulp.task('watch', function() {
});

gulp.task('jspm', function() {
return jspm.bundleSFX('app', 'dist/app.js', { sourceMaps: false, minify: true, mangle: false });
var builder = new jspm.Builder();
var System = require('systemjs');

function customExtensionName(System) {
System._extensions.push(customExtensionName);
var systemNormalize = System.normalize;

System.normalize = function(name, parentName) {
if (name === 'ember') {
name = 'ember/ember.prod';
}

return systemNormalize.call(this, name, parentName);
}
}

customExtensionName(System);

builder.reset(System);

return builder.loadConfig('./app/config.js')
.then(function() {
builder.config({
baseURL: 'app',
lib: 'app'
});
return builder.buildSFX('app', 'dist/app.js', { sourceMaps: false, minify: true, mangle: false});
});
});

gulp.task('watch-dist', ['jspm'], function () {
gulp.task('watch-dist', ['jspm'], function() {
var browserSync = require('browser-sync');
browserSync({
online: false,
Expand Down
21 changes: 15 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
"devDependencies": {
"browser-sync": "^1.6.3",
"gulp": "^3.8.11",
"jspm": "^0.15.4"
"jspm": "^0.15.4",
"systemjs": "^0.16.11"
},
"scripts": {
"postinstall": "jspm install"
Expand All @@ -21,10 +22,10 @@
"lib": "app"
},
"dependencies": {
"ember": "github:components/[email protected].1",
"ember": "github:components/[email protected].3",
"ember-computed-decorators": "github:rwjblue/ember-computed-decorators@master",
"hbs": "github:n-fuse/[email protected].1",
"ihbs": "github:n-fuse/[email protected].1",
"hbs": "github:n-fuse/[email protected].3",
"ihbs": "github:n-fuse/[email protected].3",
"jquery": "github:components/jquery@^2.0.3",
"n-fuse/pajax": "github:n-fuse/pajax@^0.1.0",
"pajax": "github:n-fuse/pajax@^0.1.0"
Expand All @@ -35,10 +36,12 @@
"core-js": "npm:core-js@^0.9.4"
},
"overrides": {
"github:components/[email protected].1": {
"github:components/[email protected].3": {
"main": "ember.debug",
"format": "global",
"files": [
"ember.debug.js"
"ember.debug.js",
"ember.prod.js"
],
"dependencies": {
"jquery": "github:components/jquery@^2.0.3"
Expand All @@ -49,6 +52,12 @@
"jquery"
],
"exports": "Ember"
},
"ember.prod": {
"deps": [
"jquery"
],
"exports": "Ember"
}
}
},
Expand Down

0 comments on commit 71c7b16

Please sign in to comment.