Skip to content

Commit f3b63a9

Browse files
committed
Refactored for observable objects.
Uses the observe-js polymer library. #6
1 parent 40d2abb commit f3b63a9

File tree

30 files changed

+2547
-431
lines changed

30 files changed

+2547
-431
lines changed

Gruntfile.js

+18-1
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,23 @@ module.exports = function (grunt) {
6565
dist: {
6666
files: {
6767
'dist/angular-data.js': ['src/index.js']
68+
},
69+
// TODO: There's got to be a better way to consume observe-js without it polluting the global space
70+
options: {
71+
alias: [
72+
'node_modules/observe-js/src/observe.js:observejs',
73+
'src/datastore/store/index.js:store',
74+
'src/datastore/services/index.js:services',
75+
'src/errors/index.js:errors',
76+
'src/utils/index.js:utils'
77+
],
78+
postBundleCB: function (err, src, next) {
79+
if (err) {
80+
next(err);
81+
}
82+
src = src.replace('(typeof global !== \'undefined\' && global ? global : window)', '((exports.Number = { isNaN: window.isNaN }) ? exports : exports)');
83+
next(err, src);
84+
}
6885
}
6986
}
7087
// },
@@ -215,7 +232,7 @@ module.exports = function (grunt) {
215232
});
216233

217234
grunt.registerTask('doc', ['clean:doc', 'docular', 'concat', 'copy', 'clean:afterDoc', 'uglify:scripts']);
218-
grunt.registerTask('build', ['clean:dist', 'jshint', 'browserify', 'uglify:main', 'doc']);
235+
grunt.registerTask('build', ['clean:dist', 'jshint', 'browserify', 'uglify:main']);
219236
grunt.registerTask('default', ['build']);
220237

221238
// Used by the CLI build servers

0 commit comments

Comments
 (0)