javascript - Gruntfile.js not updating to the directory files -


i keep getting error:

get http://localhost:9000/scripts/controllers/about.js  localhost/:80 http://localhost:9000/scripts/controllers/main.js  localhost/:79 http://localhost:9000/scripts/controllers/ayat.js   

when renamed controllers main.controller.js , whatever.controller.js

for reason, index.html file not being updated other files, when rename without dot in middle.

my gruntfile:

// generated on 2014-11-15 using generator-angular 0.10.0 'use strict';  // # globbing // performance reasons we're matching 1 level down: // 'test/spec/{,*/}*.js' // use if want recursively match subfolders: // 'test/spec/**/*.js'  module.exports = function (grunt) {    // load grunt tasks automatically   require('load-grunt-tasks')(grunt);    // time how long tasks take. can when optimizing build times   require('time-grunt')(grunt);    // configurable paths application   var appconfig = {     app: require('./bower.json').apppath || 'app',     dist: 'dist'   };    grunt.loadnpmtasks('grunt-html2js');   grunt.loadnpmtasks('grunt-browserify');   // define configuration tasks   grunt.initconfig({      // project settings     yeoman: appconfig,      // watches files changes , runs tasks based on changed files     watch: {       bower: {         files: ['bower.json'],         tasks: ['wiredep']       },       js: {         files: ['<%= yeoman.app %>/scripts/{,*/}*.js', '<%= yeoman.app %>/scripts/**', '<%= yeoman.app %>/scripts/{,*/}*.js'],         tasks: ['newer:jshint:all'],         options: {           livereload: '<%= connect.options.livereload %>'         }       },       jstest: {         files: ['test/spec/{,*/}*.js'],         tasks: ['newer:jshint:test', 'karma']       },       compass: {         files: ['<%= yeoman.app %>/styles/{,*/}*.{scss,sass}'],         tasks: ['compass:server', 'autoprefixer']       },       gruntfile: {         files: ['gruntfile.js']       },       livereload: {         options: {           livereload: '<%= connect.options.livereload %>'         },         files: [           '<%= yeoman.app %>/{,*/}*.html',           '.tmp/styles/{,*/}*.css',           '<%= yeoman.app %>/images/{,*/}*.{png,jpg,jpeg,gif,webp,svg}'         ]       }     },      // actual grunt server settings     connect: {       options: {         port: 9000,         // change '0.0.0.0' access server outside.         hostname: 'localhost',         livereload: 35729       },       livereload: {         options: {           open: true,           middleware: function (connect) {             return [               connect.static('.tmp'),               connect().use(                 '/bower_components',                 connect.static('./bower_components')               ),               connect.static(appconfig.app)             ];           }         }       },       test: {         options: {           port: 9001,           middleware: function (connect) {             return [               connect.static('.tmp'),               connect.static('test'),               connect().use(                 '/bower_components',                 connect.static('./bower_components')               ),               connect.static(appconfig.app)             ];           }         }       },       dist: {         options: {           open: true,           base: '<%= yeoman.dist %>'         }       }     },      // make sure code styles par , there no obvious mistakes     jshint: {       options: {         jshintrc: '.jshintrc',         reporter: require('jshint-stylish')       },       all: {         src: [           'gruntfile.js',           '<%= yeoman.app %>/scripts/{,*/}*.js'         ]       },       test: {         options: {           jshintrc: 'test/.jshintrc'         },         src: ['test/spec/{,*/}*.js']       }     },      // empties folders start fresh     clean: {       dist: {         files: [{           dot: true,           src: [             '.tmp',             '<%= yeoman.dist %>/{,*/}*',             '!<%= yeoman.dist %>/.git{,*/}*'           ]         }]       },       server: '.tmp'     },      // add vendor prefixed styles     autoprefixer: {       options: {         browsers: ['last 1 version']       },       dist: {         files: [{           expand: true,           cwd: '.tmp/styles/',           src: '{,*/}*.css',           dest: '.tmp/styles/'         }]       }     },      // automatically inject bower components app     wiredep: {       app: {         src: ['<%= yeoman.app %>/index.html'],         ignorepath:  /\.\.\//       },       sass: {         src: ['<%= yeoman.app %>/styles/{,*/}*.{scss,sass}'],         ignorepath: /(\.\.\/){1,2}bower_components\//       }     },      // compiles sass css , generates necessary files if requested     compass: {       options: {         sassdir: '<%= yeoman.app %>/styles',         cssdir: '.tmp/styles',         generatedimagesdir: '.tmp/images/generated',         imagesdir: '<%= yeoman.app %>/images',         javascriptsdir: '<%= yeoman.app %>/scripts',         fontsdir: '<%= yeoman.app %>/styles/fonts',         importpath: './bower_components',         httpimagespath: '/images',         httpgeneratedimagespath: '/images/generated',         httpfontspath: '/styles/fonts',         relativeassets: false,         assetcachebuster: false,         raw: 'sass::script::number.precision = 10\n'       },       dist: {         options: {           generatedimagesdir: '<%= yeoman.dist %>/images/generated'         }       },       server: {         options: {           debuginfo: true         }       }     },      // renames files browser caching purposes     filerev: {       dist: {         src: [           '<%= yeoman.dist %>/scripts/{,*/}*.js',           '<%= yeoman.dist %>/styles/{,*/}*.css',           '<%= yeoman.dist %>/images/{,*/}*.{png,jpg,jpeg,gif,webp,svg}',           '<%= yeoman.dist %>/styles/fonts/*'         ]       }     },      // reads html usemin blocks enable smart builds automatically     // concat, minify , revision files. creates configurations in memory     // additional tasks can operate on them     useminprepare: {       html: '<%= yeoman.app %>/index.html',       options: {         dest: '<%= yeoman.dist %>',         flow: {           html: {             steps: {               js: ['concat', 'uglifyjs'],               css: ['cssmin']             },             post: {}           }         }       }     },      // performs rewrites based on filerev , useminprepare configuration     usemin: {       html: ['<%= yeoman.dist %>/{,*/}*.html'],       css: ['<%= yeoman.dist %>/styles/{,*/}*.css'],       options: {         assetsdirs: ['<%= yeoman.dist %>','<%= yeoman.dist %>/images']       }     },      // following *-min tasks produce minified files in dist folder     // default, `index.html`'s <!-- usemin block --> take care of     // minification. these next options pre-configured if not wish     // use usemin blocks.     // cssmin: {     //   dist: {     //     files: {     //       '<%= yeoman.dist %>/styles/main.css': [     //         '.tmp/styles/{,*/}*.css'     //       ]     //     }     //   }     // },     // uglify: {     //   dist: {     //     files: {     //       '<%= yeoman.dist %>/scripts/scripts.js': [     //         '<%= yeoman.dist %>/scripts/scripts.js'     //       ]     //     }     //   }     // },     // concat: {     //   dist: {}     // },      imagemin: {       dist: {         files: [{           expand: true,           cwd: '<%= yeoman.app %>/images',           src: '{,*/}*.{png,jpg,jpeg,gif}',           dest: '<%= yeoman.dist %>/images'         }]       }     },      svgmin: {       dist: {         files: [{           expand: true,           cwd: '<%= yeoman.app %>/images',           src: '{,*/}*.svg',           dest: '<%= yeoman.dist %>/images'         }]       }     },      htmlmin: {       dist: {         options: {           collapsewhitespace: true,           conservativecollapse: true,           collapsebooleanattributes: true,           removecommentsfromcdata: true,           removeoptionaltags: true         },         files: [{           expand: true,           cwd: '<%= yeoman.dist %>',           src: ['*.html', 'views/{,*/}*.html'],           dest: '<%= yeoman.dist %>'         }]       }     },      // ng-annotate tries make code safe minification automatically     // using angular long form dependency injection.     ngannotate: {       dist: {         files: [{           expand: true,           cwd: '.tmp/concat/scripts',           src: ['*.js', '!oldieshim.js'],           dest: '.tmp/concat/scripts'         }]       }     },      // replace google cdn references     cdnify: {       dist: {         html: ['<%= yeoman.dist %>/*.html']       }     },      // copies remaining files places other tasks can use     copy: {       dist: {         files: [{           expand: true,           dot: true,           cwd: '<%= yeoman.app %>',           dest: '<%= yeoman.dist %>',           src: [             '*.{ico,png,txt}',             '.htaccess',             '*.html',             'views/{,*/}*.html',             'images/{,*/}*.{webp}',             'fonts/{,*/}*.*'           ]         }, {           expand: true,           cwd: '.tmp/images',           dest: '<%= yeoman.dist %>/images',           src: ['generated/*']         }, {           expand: true,           cwd: '.',           src: 'bower_components/bootstrap-sass-official/assets/fonts/bootstrap/*',           dest: '<%= yeoman.dist %>'         }]       },       styles: {         expand: true,         cwd: '<%= yeoman.app %>/styles',         dest: '.tmp/styles/',         src: '{,*/}*.css'       }     },      // run tasks in parallel speed build process     concurrent: {       server: [         'compass:server'       ],       test: [         'compass'       ],       dist: [         'compass:dist',         'imagemin',         'svgmin'       ]     },      // test settings     karma: {       unit: {         configfile: 'test/karma.conf.js',         singlerun: true       }     }   });     grunt.registertask('serve', 'compile start connect web server', function (target) {     if (target === 'dist') {       return grunt.task.run(['build', 'connect:dist:keepalive']);     }      grunt.task.run([       'clean:server',       'wiredep',       'concurrent:server',       'autoprefixer',       'connect:livereload',       'watch',       'html2js',       'browserify'     ]);   });    grunt.registertask('server', 'deprecated task. use "serve" task instead', function (target) {     grunt.log.warn('the `server` task has been deprecated. use `grunt serve` start server.');     grunt.task.run(['serve:' + target]);   });    grunt.registertask('test', [     'clean:server',     'concurrent:test',     'autoprefixer',     'connect:test',     'karma'   ]);    grunt.registertask('build', [     'clean:dist',     'wiredep',     'useminprepare',     'concurrent:dist',     'autoprefixer',     'concat',     'ngannotate',     'copy:dist',     'cdnify',     'cssmin',     'uglify',     'filerev',     'usemin',     'htmlmin'   ]);    grunt.registertask('default', [     // 'newer:jshint',     'test',     'build'   ]);  }; 

how can rid of problem? want grunt detect scripts within scripts/ , add index


Comments

Popular posts from this blog

java - Oracle EBS .ClassNotFoundException: oracle.apps.fnd.formsClient.FormsLauncher.class ERROR -

c# - how to use buttonedit in devexpress gridcontrol -

nvd3.js - angularjs-nvd3-directives setting color in legend as well as in chart elements -