Просмотр исходного кода

fix(build): changed from postinstall script to regular grunt task for the copying of npm dependencies into public dir, fixes #4003

Torkel Ödegaard 10 лет назад
Родитель
Сommit
f797b19825
3 измененных файлов с 3 добавлено и 2 удалено
  1. 1 2
      package.json
  2. 1 0
      tasks/build_task.js
  3. 1 0
      tasks/default_task.js

+ 1 - 2
package.json

@@ -59,8 +59,7 @@
   },
   "scripts": {
     "test": "grunt test",
-    "coveralls": "grunt karma:coveralls && rm -rf ./coverage",
-    "postinstall": "./node_modules/.bin/grunt copy:node_modules"
+    "coveralls": "grunt karma:coveralls && rm -rf ./coverage"
   },
   "license": "Apache-2.0",
   "dependencies": {

+ 1 - 0
tasks/build_task.js

@@ -8,6 +8,7 @@ module.exports = function(grunt) {
     'jscs',
     'tslint',
     'clean:release',
+    'copy:node_modules',
     'copy:public_to_gen',
     'typescript:build',
     'karma:test',

+ 1 - 0
tasks/default_task.js

@@ -8,6 +8,7 @@ module.exports = function(grunt) {
     'jshint',
     'tslint',
     'clean:gen',
+    'copy:node_modules',
     'copy:public_to_gen',
     'phantomjs',
     'css',