// This module exports a function that copies all the static assets into the
// appropriate location in the build output directory.

'use strict'

const path = require('path')
const fs = require('fs-extra')
const CONFIG = require('../config')
const glob = require('glob')

module.exports = function () {
  console.log('Copying assets...');
  const srcPaths = [
    path.join(CONFIG.repositoryRootPath, 'dot-atom'),
    path.join(CONFIG.repositoryRootPath, 'exports'),
    path.join(CONFIG.repositoryRootPath, 'keymaps'),
    path.join(CONFIG.repositoryRootPath, 'menus'),
    path.join(CONFIG.repositoryRootPath, 'node_modules'),
    path.join(CONFIG.repositoryRootPath, 'static'),
    path.join(CONFIG.repositoryRootPath, 'src'),
    path.join(CONFIG.repositoryRootPath, 'vendor')
  ]
  srcPaths.concat(glob.sync(path.join(CONFIG.repositoryRootPath, 'spec', '*.*'), {ignore: path.join('**', '*-spec.*')}))
  for (let srcPath of srcPaths) {
    fs.copySync(srcPath, computeDestinationPath(srcPath))
  }
}

function computeDestinationPath (srcPath) {
  let relativePath = path.relative(CONFIG.repositoryRootPath, srcPath)
  return path.join(CONFIG.electronAppPath, relativePath)
}

@@ -335,20 +335,18 @@
 ..');%0A  
-cons
+le
 t srcPat
@@ -778,16 +778,27 @@
 ')%0A  %5D%0A 
+ srcPaths =
  srcPath

Fix concat