mirror of
https://github.com/atom/atom.git
synced 2026-01-23 05:48:10 -05:00
Merge pull request #12371 from atom/as-fix-broken-exports
Transpile exports/**/*.js when running script/build
This commit is contained in:
@@ -84,7 +84,6 @@ module.exports = (grunt) ->
|
||||
'src/**/*.coffee'
|
||||
'spec/*.coffee'
|
||||
'!spec/*-spec.coffee'
|
||||
'exports/**/*.coffee'
|
||||
'static/**/*.coffee'
|
||||
]
|
||||
dest: appDir
|
||||
@@ -145,6 +144,13 @@ module.exports = (grunt) ->
|
||||
dest: path.join(appDir, jsFile)
|
||||
})
|
||||
|
||||
for jsFile in glob.sync("exports/**/*.js")
|
||||
if usesBabel(jsFile)
|
||||
babelConfig.dist.files.push({
|
||||
src: [jsFile]
|
||||
dest: path.join(appDir, jsFile)
|
||||
})
|
||||
|
||||
for child in fs.readdirSync('node_modules') when child isnt '.bin'
|
||||
directory = path.join('node_modules', child)
|
||||
metadataPath = path.join(directory, 'package.json')
|
||||
@@ -204,7 +210,6 @@ module.exports = (grunt) ->
|
||||
configFile: 'coffeelint.json'
|
||||
src: [
|
||||
'dot-atom/**/*.coffee'
|
||||
'exports/**/*.coffee'
|
||||
'src/**/*.coffee'
|
||||
]
|
||||
build: [
|
||||
@@ -217,6 +222,7 @@ module.exports = (grunt) ->
|
||||
|
||||
standard:
|
||||
src: [
|
||||
'exports/**/*.js'
|
||||
'src/**/*.js'
|
||||
'static/*.js'
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user