Skip to content

Commit 3b894e6

Browse files
James LawtonJames Lawton
authored andcommitted
Updated bloxberg connection config
1 parent 204cc4a commit 3b894e6

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+39572
-233185
lines changed

.DS_Store

4 KB
Binary file not shown.

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,6 @@ truffle.js
44
deploymentProd.sh
55
deploymentScript.sh
66
.vscode
7+
dist
78
deploymentDev.sh
9+
config

.idea/workspace.xml

Lines changed: 62 additions & 109 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/test.js

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
require('./check-versions')()
2+
3+
4+
process.env.NODE_ENV = 'testing'
5+
6+
var ora = require('ora')
7+
var rm = require('rimraf')
8+
var path = require('path')
9+
var chalk = require('chalk')
10+
var webpack = require('webpack')
11+
var config = require('../config')
12+
var webpackConfig = require('./webpack.prod.conf')
13+
14+
var spinner = ora('building for QA...')
15+
spinner.start()
16+
17+
rm(path.join(config.build.assetsRoot, config.build.assetsSubDirectory), err => {
18+
if (err) throw err
19+
webpack(webpackConfig, function (err, stats) {
20+
spinner.stop()
21+
if (err) throw err
22+
process.stdout.write(stats.toString({
23+
colors: true,
24+
modules: false,
25+
children: false,
26+
chunks: false,
27+
chunkModules: false
28+
}) + '\n\n')
29+
30+
if (stats.hasErrors()) {
31+
console.log(chalk.red(' Build failed with errors.\n'))
32+
process.exit(1)
33+
}
34+
35+
console.log(chalk.cyan(' Build complete.\n'))
36+
console.log(chalk.yellow(
37+
' Tip: built files are meant to be served over an HTTP server.\n' +
38+
' Opening index.html over file:// won\'t work.\n'
39+
))
40+
41+
})
42+
})
43+

build/webpack.prod.conf.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ var webpackConfig = merge(baseWebpackConfig, {
2121
extract: true
2222
})
2323
},
24+
//optimization: {
25+
// usedExports: true,
26+
// minimize: true,
27+
//},
2428
devtool: config.build.productionSourceMap ? '#source-map' : false,
2529
output: {
2630
path: config.build.assetsRoot,
@@ -52,6 +56,7 @@ var webpackConfig = merge(baseWebpackConfig, {
5256
safe: true
5357
}
5458
}),
59+
5560
// generate dist index.html with correct asset hash for caching.
5661
// you can customize output by editing /index.html
5762
// see https://github.com/ampedandwired/html-webpack-plugin

build/webpack.test.conf.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ var webpackConfig = merge(baseConfig, {
1010
module: {
1111
rules: utils.styleLoaders()
1212
},
13+
optimization: {
14+
usedExports: true,
15+
minimize: true,
16+
},
1317
devtool: '#inline-source-map',
1418
resolveLoader: {
1519
alias: {

config/bloxberg.env.js

Lines changed: 0 additions & 7 deletions
This file was deleted.

config/dev.env.js

Lines changed: 0 additions & 8 deletions
This file was deleted.

config/express.js

Lines changed: 0 additions & 31 deletions
This file was deleted.

config/index.js

Lines changed: 0 additions & 52 deletions
This file was deleted.

0 commit comments

Comments
 (0)