babelCompiledDir = grunt.config.get('was.babelCompiledDir')
babelCompiledSrcDir = path.join(babelCompiledDir, 'wrt', 'src')
wrtSrcDir = path.join(wrtDir, 'src')
- wrt_node_modules = path.resolve('node_modules')
+ wrt_node_modules = '../node_modules'
console.log "shellAppDir #{shellAppDir}"
console.log "buildDir #{buildDir}"
cp wrtSrcDir, path.join(appDir, 'src'), filter: /.+\.(cson|coffee)$/
if grunt.file.exists babelCompiledSrcDir
cp babelCompiledSrcDir, path.join(appDir, 'src'), filter: /.+\.(cson|coffee)$/
- # cp 'static', path.join(appDir, 'static')
+ console.log('wrtDir : ' + wrtDir)
+ console.log('buildDir : ' + buildDir)
+ cp path.join(wrtDir, 'static'), path.join(appDir, 'static')
+ cp path.join(wrtDir, 'wrt_support'), path.join(buildDir, 'resources/wrt_support')
+ cp path.join(wrtDir, 'node_modules'), path.join(appDir, 'node_modules')
# cp path.join('apm', 'node_modules', 'atom-package-manager'), path.resolve(appDir, '..', 'new-app', 'apm'), filter: filterNodeModule
# if process.platform isnt 'win32'