fix(size): Remove src/pro from build

This commit is contained in:
Evan Morikawa 2016-09-01 11:03:54 -07:00
parent 08c9bc19ea
commit 3e41be103f
2 changed files with 5 additions and 0 deletions

View file

@ -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',

View file

@ -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')