Merge pull request #697 from metamaps/feature/random-updates
import fixes + random config updates
This commit is contained in:
commit
e5e8a3dcbb
4 changed files with 12 additions and 7 deletions
|
@ -5,11 +5,13 @@ engines:
|
||||||
bundler-audit:
|
bundler-audit:
|
||||||
enabled: true
|
enabled: true
|
||||||
duplication:
|
duplication:
|
||||||
enabled: false
|
enabled: true
|
||||||
config:
|
config:
|
||||||
languages:
|
languages:
|
||||||
- ruby
|
ruby:
|
||||||
- javascript
|
mass_threshold: 36 # default: 18
|
||||||
|
javascript:
|
||||||
|
mass_threshold: 80 # default: 40
|
||||||
eslint:
|
eslint:
|
||||||
enabled: true
|
enabled: true
|
||||||
channel: "eslint-3"
|
channel: "eslint-3"
|
||||||
|
|
|
@ -54,13 +54,13 @@ const Import = {
|
||||||
|
|
||||||
const topicsPromise = $.Deferred()
|
const topicsPromise = $.Deferred()
|
||||||
parse(topicsText, csv_parser_options, (err, data) => {
|
parse(topicsText, csv_parser_options, (err, data) => {
|
||||||
if (err) topicsPromise.reject(err)
|
if (err) return topicsPromise.reject(err)
|
||||||
topicsPromise.resolve(data.map(row => self.lowercaseKeys(row)))
|
topicsPromise.resolve(data.map(row => self.lowercaseKeys(row)))
|
||||||
})
|
})
|
||||||
|
|
||||||
const synapsesPromise = $.Deferred()
|
const synapsesPromise = $.Deferred()
|
||||||
parse(synapsesText, csv_parser_options, (err, data) => {
|
parse(synapsesText, csv_parser_options, (err, data) => {
|
||||||
if (err) synapsesPromise.reject(err)
|
if (err) return synapsesPromise.reject(err)
|
||||||
synapsesPromise.resolve(data.map(row => self.lowercaseKeys(row)))
|
synapsesPromise.resolve(data.map(row => self.lowercaseKeys(row)))
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
|
@ -63,7 +63,8 @@ const PasteInput = {
|
||||||
Import.handleJSON(text)
|
Import.handleJSON(text)
|
||||||
} else if (text.match(/\t/)) {
|
} else if (text.match(/\t/)) {
|
||||||
Import.handleTSV(text)
|
Import.handleTSV(text)
|
||||||
} else if (text.match(/","/)) {
|
} else {
|
||||||
|
// just try to see if CSV works
|
||||||
Import.handleCSV(text)
|
Import.handleCSV(text)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
const path = require('path')
|
|
||||||
const webpack = require('webpack')
|
const webpack = require('webpack')
|
||||||
|
|
||||||
const NODE_ENV = process.env.NODE_ENV || 'development'
|
const NODE_ENV = process.env.NODE_ENV || 'development'
|
||||||
|
@ -15,9 +14,12 @@ if (NODE_ENV === 'production') {
|
||||||
}))
|
}))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const devtool = NODE_ENV === 'production' ? undefined : 'cheap-module-eval-source-map'
|
||||||
|
|
||||||
const config = module.exports = {
|
const config = module.exports = {
|
||||||
context: __dirname,
|
context: __dirname,
|
||||||
plugins,
|
plugins,
|
||||||
|
devtool,
|
||||||
module: {
|
module: {
|
||||||
loaders: [
|
loaders: [
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue