1

依存関係が縮小されるのを防ぐために、依存関係を自動的に注入するためにgrunt-ng-annotateを使用しています。以下のタスクを使用しました。

ngAnnotate: {
        app:{
                files: [{
                expand: true,
                src: ['**/*.js', '!**/*.annotated.js'],
                ext: '.annotated.js',
                extDot: 'last'
              }]
            }
    }

しかし、私の単調なタスクはファイルを取得できません:

「ngAnnotate:dist」(ngAnnotate) タスクの実行

No files provided to the ngAnnotate task.

Done, without errors.


Execution Time (2016-02-24 16:14:31 UTC)
loading tasks    234ms  ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 96%
ngAnnotate:dist    8ms  ▇▇▇ 3%
Total 243ms

新しい yeoman ジェネレーターを使用してプロジェクトを生成し、コントローラーの 1 つの上に /* @ngInject */ を追加しました

以下は私のフォルダ構造です ここに画像の説明を入力

4

0 に答える 0