Skip to content

Commit 3aec110

Browse files
committed
Merge branch 'develop'
2 parents aa891b0 + 37346e0 commit 3aec110

File tree

6 files changed

+85
-12
lines changed

6 files changed

+85
-12
lines changed

client/config/webpack.config.common.js

+6-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
const path = require('path');
21
const HtmlWebpackPlugin = require('html-webpack-plugin');
3-
const glob = require('glob');
42
const webpack = require('webpack');
3+
const glob = require('glob');
4+
const path = require('path');
55

66
const TARGET = process.env.npm_lifecycle_event;
77
const PATHS = {
@@ -15,6 +15,7 @@ const PATHS = {
1515
process.env.BABEL_ENV = TARGET;
1616

1717
const common = {
18+
context: PATHS.app,
1819
entry: {
1920
app: [PATHS.app]
2021
},
@@ -27,7 +28,8 @@ const common = {
2728
},
2829
output: {
2930
path: PATHS.build,
30-
filename: '[name].js'
31+
filename: '[name].js',
32+
publicPath: '/'
3133
},
3234
module: {
3335
rules: [
@@ -56,6 +58,7 @@ const common = {
5658
new HtmlWebpackPlugin({
5759
template: '../node_modules/html-webpack-template/index.ejs',
5860
title: 'UruIT React Seed',
61+
favicon: 'favicon.ico',
5962
appMountId: 'app',
6063
inject: false,
6164
minify: {

client/config/webpack.config.prod.js

+12-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1-
const { common, PATHS } = require('./webpack.config.common');
2-
const merge = require('webpack-merge');
3-
const webpack = require('webpack');
41
const CleanPlugin = require('clean-webpack-plugin');
2+
const CopyWebpackPlugin = require('copy-webpack-plugin');
53
const ExtractTextPlugin = require('extract-text-webpack-plugin');
4+
const merge = require('webpack-merge');
5+
const webpack = require('webpack');
6+
const path = require('path');
7+
const { common, PATHS } = require('./webpack.config.common');
68

79
module.exports = merge(common, {
810
output: {
@@ -62,6 +64,12 @@ module.exports = merge(common, {
6264
compress: {
6365
warnings: false
6466
}
65-
})
67+
}),
68+
new CopyWebpackPlugin([
69+
{
70+
from: path.join(PATHS.app, 'favicon.ico'),
71+
to: path.join(PATHS.build, 'favicon.ico')
72+
}
73+
])
6674
]
6775
});

client/favicon.ico

894 Bytes
Binary file not shown.

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@
5858
"babel-preset-react": "^6.24.1",
5959
"babel-preset-survivejs-kanban": "^0.3.3",
6060
"clean-webpack-plugin": "^0.1.16",
61+
"copy-webpack-plugin": "^4.0.1",
6162
"coveralls": "^2.13.1",
6263
"css-loader": "^0.28.5",
6364
"eslint": "^4.5.0",

server/config/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ const commonConfig = {
22
database: {
33
connectionString: process.env.DATABASE_URL || 'postgres://pg:pg@localhost:5432/reactseeddb'
44
},
5-
port: 3000,
5+
port: 4000,
66
sslPort: 4443
77
// Add here settings shared by all the environments
88
};

yarn.lock

+65-4
Original file line numberDiff line numberDiff line change
@@ -915,6 +915,10 @@ block-stream@*:
915915
dependencies:
916916
inherits "~2.0.0"
917917

918+
bluebird@^2.10.2:
919+
version "2.11.0"
920+
resolved "https://registry.yarnpkg.com/bluebird/-/bluebird-2.11.0.tgz#534b9033c022c9579c56ba3b3e5a5caafbb650e1"
921+
918922
bluebird@^3.4.7:
919923
version "3.5.0"
920924
resolved "https://registry.yarnpkg.com/bluebird/-/bluebird-3.5.0.tgz#791420d7f551eea2897453a8a77653f96606d67c"
@@ -1403,6 +1407,19 @@ convert-source-map@^1.1.1, convert-source-map@^1.5.0:
14031407
version "1.5.0"
14041408
resolved "https://registry.yarnpkg.com/convert-source-map/-/convert-source-map-1.5.0.tgz#9acd70851c6d5dfdd93d9282e5edf94a03ff46b5"
14051409

1410+
copy-webpack-plugin@^4.0.1:
1411+
version "4.0.1"
1412+
resolved "https://registry.yarnpkg.com/copy-webpack-plugin/-/copy-webpack-plugin-4.0.1.tgz#9728e383b94316050d0c7463958f2b85c0aa8200"
1413+
dependencies:
1414+
bluebird "^2.10.2"
1415+
fs-extra "^0.26.4"
1416+
glob "^6.0.4"
1417+
is-glob "^3.1.0"
1418+
loader-utils "^0.2.15"
1419+
lodash "^4.3.0"
1420+
minimatch "^3.0.0"
1421+
node-dir "^0.1.10"
1422+
14061423
core-js@^1.0.0:
14071424
version "1.2.7"
14081425
resolved "https://registry.yarnpkg.com/core-js/-/core-js-1.2.7.tgz#652294c14651db28fa93bd2d5ff2983a4f08c636"
@@ -2366,6 +2383,16 @@ fs-exists-sync@^0.1.0:
23662383
version "0.1.0"
23672384
resolved "https://registry.yarnpkg.com/fs-exists-sync/-/fs-exists-sync-0.1.0.tgz#982d6893af918e72d08dec9e8673ff2b5a8d6add"
23682385

2386+
fs-extra@^0.26.4:
2387+
version "0.26.7"
2388+
resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-0.26.7.tgz#9ae1fdd94897798edab76d0918cf42d0c3184fa9"
2389+
dependencies:
2390+
graceful-fs "^4.1.2"
2391+
jsonfile "^2.1.0"
2392+
klaw "^1.0.0"
2393+
path-is-absolute "^1.0.0"
2394+
rimraf "^2.2.8"
2395+
23692396
fs.realpath@^1.0.0:
23702397
version "1.0.0"
23712398
resolved "https://registry.yarnpkg.com/fs.realpath/-/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f"
@@ -2466,6 +2493,16 @@ glob-parent@^2.0.0:
24662493
dependencies:
24672494
is-glob "^2.0.0"
24682495

2496+
glob@^6.0.4:
2497+
version "6.0.4"
2498+
resolved "https://registry.yarnpkg.com/glob/-/glob-6.0.4.tgz#0f08860f6a155127b2fadd4f9ce24b1aab6e4d22"
2499+
dependencies:
2500+
inflight "^1.0.4"
2501+
inherits "2"
2502+
minimatch "2 || 3"
2503+
once "^1.3.0"
2504+
path-is-absolute "^1.0.0"
2505+
24692506
glob@^7.0.0, glob@^7.0.3, glob@^7.0.5, glob@^7.1.2, glob@~7.1.1:
24702507
version "7.1.2"
24712508
resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.2.tgz#c19c9df9a028702d678612384a6552404c636d15"
@@ -2546,7 +2583,7 @@ got@^6.7.1:
25462583
unzip-response "^2.0.1"
25472584
url-parse-lax "^1.0.0"
25482585

2549-
graceful-fs@^4.1.11, graceful-fs@^4.1.2:
2586+
graceful-fs@^4.1.11, graceful-fs@^4.1.2, graceful-fs@^4.1.6, graceful-fs@^4.1.9:
25502587
version "4.1.11"
25512588
resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.1.11.tgz#0e8bdfe4d1ddb8854d64e04ea7c00e2a026e5658"
25522589

@@ -2945,7 +2982,7 @@ is-extglob@^1.0.0:
29452982
version "1.0.0"
29462983
resolved "https://registry.yarnpkg.com/is-extglob/-/is-extglob-1.0.0.tgz#ac468177c4943405a092fc8f29760c6ffc6206c0"
29472984

2948-
is-extglob@^2.1.1:
2985+
is-extglob@^2.1.0, is-extglob@^2.1.1:
29492986
version "2.1.1"
29502987
resolved "https://registry.yarnpkg.com/is-extglob/-/is-extglob-2.1.1.tgz#a88c02535791f02ed37c76a1b9ea9773c833f8c2"
29512988

@@ -2971,6 +3008,12 @@ is-glob@^2.0.0, is-glob@^2.0.1:
29713008
dependencies:
29723009
is-extglob "^1.0.0"
29733010

3011+
is-glob@^3.1.0:
3012+
version "3.1.0"
3013+
resolved "https://registry.yarnpkg.com/is-glob/-/is-glob-3.1.0.tgz#7ba5ae24217804ac70707b96922567486cc3e84a"
3014+
dependencies:
3015+
is-extglob "^2.1.0"
3016+
29743017
is-glob@^4.0.0:
29753018
version "4.0.0"
29763019
resolved "https://registry.yarnpkg.com/is-glob/-/is-glob-4.0.0.tgz#9521c76845cc2610a85203ddf080a958c2ffabc0"
@@ -3264,6 +3307,12 @@ json5@^0.5.0, json5@^0.5.1:
32643307
version "0.5.1"
32653308
resolved "https://registry.yarnpkg.com/json5/-/json5-0.5.1.tgz#1eade7acc012034ad84e2396767ead9fa5495821"
32663309

3310+
jsonfile@^2.1.0:
3311+
version "2.4.0"
3312+
resolved "https://registry.yarnpkg.com/jsonfile/-/jsonfile-2.4.0.tgz#3736a2b428b87bbda0cc83b53fa3d633a35c2ae8"
3313+
optionalDependencies:
3314+
graceful-fs "^4.1.6"
3315+
32673316
jsonify@~0.0.0:
32683317
version "0.0.0"
32693318
resolved "https://registry.yarnpkg.com/jsonify/-/jsonify-0.0.0.tgz#2c74b6ee41d93ca51b7b5aaee8f503631d252a73"
@@ -3305,6 +3354,12 @@ kind-of@^4.0.0:
33053354
dependencies:
33063355
is-buffer "^1.1.5"
33073356

3357+
klaw@^1.0.0:
3358+
version "1.3.1"
3359+
resolved "https://registry.yarnpkg.com/klaw/-/klaw-1.3.1.tgz#4088433b46b3b1ba259d78785d8e96f73ba02439"
3360+
optionalDependencies:
3361+
graceful-fs "^4.1.9"
3362+
33083363
latest-version@^3.0.0:
33093364
version "3.1.0"
33103365
resolved "https://registry.yarnpkg.com/latest-version/-/latest-version-3.1.0.tgz#a205383fea322b33b5ae3b18abee0dc2f356ee15"
@@ -3450,7 +3505,7 @@ loader-runner@^2.3.0:
34503505
version "2.3.0"
34513506
resolved "https://registry.yarnpkg.com/loader-runner/-/loader-runner-2.3.0.tgz#f482aea82d543e07921700d5a46ef26fdac6b8a2"
34523507

3453-
loader-utils@^0.2.16:
3508+
loader-utils@^0.2.15, loader-utils@^0.2.16:
34543509
version "0.2.17"
34553510
resolved "https://registry.yarnpkg.com/loader-utils/-/loader-utils-0.2.17.tgz#f86e6374d43205a6e6c60e9196f17c0299bfb348"
34563511
dependencies:
@@ -3765,7 +3820,7 @@ minimalistic-crypto-utils@^1.0.0, minimalistic-crypto-utils@^1.0.1:
37653820
version "1.0.1"
37663821
resolved "https://registry.yarnpkg.com/minimalistic-crypto-utils/-/minimalistic-crypto-utils-1.0.1.tgz#f6c00c1c0b082246e5c4d99dfb8c7c083b2b582a"
37673822

3768-
minimatch@^3.0.0, minimatch@^3.0.2, minimatch@^3.0.4, minimatch@~3.0.2:
3823+
"minimatch@2 || 3", minimatch@^3.0.0, minimatch@^3.0.2, minimatch@^3.0.4, minimatch@~3.0.2:
37693824
version "3.0.4"
37703825
resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.0.4.tgz#5166e286457f03306064be5497e8dbb0c3d32083"
37713826
dependencies:
@@ -3828,6 +3883,12 @@ no-case@^2.2.0:
38283883
dependencies:
38293884
lower-case "^1.1.1"
38303885

3886+
node-dir@^0.1.10:
3887+
version "0.1.17"
3888+
resolved "https://registry.yarnpkg.com/node-dir/-/node-dir-0.1.17.tgz#5f5665d93351335caabef8f1c554516cf5f1e4e5"
3889+
dependencies:
3890+
minimatch "^3.0.2"
3891+
38313892
node-fetch@^1.0.1:
38323893
version "1.7.2"
38333894
resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-1.7.2.tgz#c54e9aac57e432875233525f3c891c4159ffefd7"

0 commit comments

Comments
 (0)