Evan You 12 лет назад
Родитель
Сommit
60bd928b56
3 измененных файлов с 5 добавлено и 3 удалено
  1. 3 2
      Gruntfile.js
  2. 1 1
      TODO.md
  3. 1 0
      component.json

+ 3 - 2
Gruntfile.js

@@ -1,5 +1,7 @@
 module.exports = function( grunt ) {
 
+    var fs = require('fs')
+
     grunt.initConfig({
 
         component_build: {
@@ -69,10 +71,9 @@ module.exports = function( grunt ) {
     grunt.loadNpmTasks( 'grunt-component-build' )
     grunt.loadNpmTasks( 'grunt-mocha' )
     grunt.registerTask( 'test', ['mocha'] )
-    grunt.registerTask( 'default', ['jshint', 'component_build:build'] )
+    grunt.registerTask( 'default', ['jshint', 'component_build:build', 'uglify'] )
 
     grunt.registerTask( 'version', function (version) {
-        var fs = require('fs')
         ;['package', 'bower', 'component'].forEach(function (file) {
             file = './' + file + '.json'
             var json = fs.readFileSync(file, 'utf-8')

+ 1 - 1
TODO.md

@@ -1,4 +1,4 @@
-- consult https://github.com/RubyLouvre/avalon/issues/11 to allow simple expressions in directives.
+- put child VMs to be compiled AFTER the parent is compiled, so that all parent bindings are available to the child...
 - $watch / $unwatch (now much easier)
 - tests
 - docs

+ 1 - 0
component.json

@@ -11,6 +11,7 @@
         "src/binding.js",
         "src/observer.js",
         "src/directive-parser.js",
+        "src/exp-parser.js",
         "src/text-parser.js",
         "src/deps-parser.js",
         "src/filters.js",