diff --git a/build/Gruntfile.coffee b/build/Gruntfile.coffee index 3c2ebf8d2..6ce5d0127 100644 --- a/build/Gruntfile.coffee +++ b/build/Gruntfile.coffee @@ -369,6 +369,9 @@ module.exports = (grunt) -> grunt.registerTask('docs', ['build-docs', 'render-docs']) + # NOTE: add-nylas-build-resources task has already run during + # script/bootstrap + # buildTasks = [ 'copy-files-for-build', 'compile', diff --git a/build/tasks/copy-files-for-build-task.coffee b/build/tasks/copy-files-for-build-task.coffee index 9ff353e54..a9f005dcf 100644 --- a/build/tasks/copy-files-for-build-task.coffee +++ b/build/tasks/copy-files-for-build-task.coffee @@ -1,5 +1,6 @@ fs = require 'fs' path = require 'path' +rimraf = require 'rimraf' _ = require 'underscore' module.exports = (grunt) -> @@ -169,6 +170,7 @@ module.exports = (grunt) -> cp 'spec', path.join(appDir, 'spec') cp 'src', path.join(appDir, 'src'), filter: /.+\.(cson|coffee|cjsx|jsx)$/ + rimraf.sync(path.join(appDir, 'src', 'pro')) cp 'static', path.join(appDir, 'static') cp 'keymaps', path.join(appDir, 'keymaps') cp 'menus', path.join(appDir, 'menus')