Skip to content

Commit b225c0c

Browse files
committed
^ cleans
1 parent 6e25dd4 commit b225c0c

5 files changed

Lines changed: 123 additions & 82 deletions

File tree

etc/cli/start.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,11 @@ let port = program.port === true ? 9090 : program.port,
4949
pDir = program.source || process.cwd();
5050

5151
let profile = new Profile(profileId);
52-
5352
profile.start();
5453
profile.onComplete(e => process.exit());
55-
process.on('SIGINT', e => profile.stop()); // catch ctrl-c
56-
process.on('SIGTERM', e => profile.stop()); // catch kill
54+
55+
process.on('SIGINT', e => profile.stop().then(e => process.exit())); // catch ctrl-c
56+
process.on('SIGTERM', e => profile.stop().then(e => process.exit())); // catch kill
5757

5858
if ( port ) {
5959
server.use(express.json()); // to support JSON-encoded bodies

etc/wp/webpack.config.comp.js

Lines changed: 35 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -177,18 +177,23 @@ module.exports = [
177177
{
178178
loader : 'postcss-loader',
179179
options: {
180-
plugins: function () {
181-
return [
182-
autoprefixer({
183-
//overrideBrowserslist: [
184-
// '>1%',
185-
// 'last 4 versions',
186-
// 'Firefox ESR',
187-
// 'not ie < 9', //
188-
// React doesn't support
189-
// IE8 // anyway ]
190-
}),
191-
];
180+
postcssOptions: {
181+
plugins: function () {
182+
return [
183+
autoprefixer({
184+
overrideBrowserslist: [
185+
'>1%',
186+
'last 4 versions',
187+
'Firefox ESR',
188+
'not ie < 9', // React
189+
// doesn't
190+
// support
191+
// IE8
192+
// anyway
193+
]
194+
}),
195+
];
196+
}
192197
}
193198
}
194199
},
@@ -208,18 +213,24 @@ module.exports = [
208213
{
209214
loader : 'postcss-loader',
210215
options: {
211-
plugins: function () {
212-
return [
213-
autoprefixer({
214-
//overrideBrowserslist: [
215-
// '>1%',
216-
// 'last 4 versions',
217-
// 'Firefox ESR',
218-
// 'not ie < 9', //
219-
// React doesn't support
220-
// IE8 anyway ]
221-
}),
222-
];
216+
217+
postcssOptions: {
218+
plugins: function () {
219+
return [
220+
autoprefixer({
221+
overrideBrowserslist: [
222+
'>1%',
223+
'last 4 versions',
224+
'Firefox ESR',
225+
'not ie < 9', // React
226+
// doesn't
227+
// support
228+
// IE8
229+
// anyway
230+
]
231+
}),
232+
];
233+
}
223234
}
224235
}
225236
},

etc/wp/webpack.config.static.js

Lines changed: 36 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -191,18 +191,24 @@ module.exports = [
191191
{
192192
loader : 'postcss-loader',
193193
options: {
194-
plugins: function () {
195-
return [
196-
autoprefixer({
197-
//overrideBrowserslist: [
198-
// '>1%',
199-
// 'last 4 versions',
200-
// 'Firefox ESR',
201-
// 'not ie < 9', //
202-
// React doesn't support
203-
// IE8 // anyway ]
204-
}),
205-
];
194+
195+
postcssOptions: {
196+
plugins: function () {
197+
return [
198+
autoprefixer({
199+
overrideBrowserslist: [
200+
'>1%',
201+
'last 4 versions',
202+
'Firefox ESR',
203+
'not ie < 9', // React
204+
// doesn't
205+
// support
206+
// IE8
207+
// anyway
208+
]
209+
}),
210+
];
211+
}
206212
}
207213
}
208214
},
@@ -222,18 +228,24 @@ module.exports = [
222228
{
223229
loader : 'postcss-loader',
224230
options: {
225-
plugins: function () {
226-
return [
227-
autoprefixer({
228-
//overrideBrowserslist: [
229-
// '>1%',
230-
// 'last 4 versions',
231-
// 'Firefox ESR',
232-
// 'not ie < 9', //
233-
// React doesn't support
234-
// IE8 anyway ]
235-
}),
236-
];
231+
232+
postcssOptions: {
233+
plugins: function () {
234+
return [
235+
autoprefixer({
236+
overrideBrowserslist: [
237+
'>1%',
238+
'last 4 versions',
239+
'Firefox ESR',
240+
'not ie < 9', // React
241+
// doesn't
242+
// support
243+
// IE8
244+
// anyway
245+
]
246+
}),
247+
];
248+
}
237249
}
238250
}
239251
},

etc/wp/webpack.config.www.js

Lines changed: 35 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -234,23 +234,26 @@ module.exports = [
234234
{
235235
loader : 'postcss-loader',
236236
options: {
237-
plugins: function () {
238-
return [
239-
autoprefixer({
240-
overrideBrowserslist: [
241-
'>1%',
242-
'last 4 versions',
243-
'Firefox ESR',
244-
'not ie < 9', // React
245-
// doesn't
246-
// support
247-
// IE8
248-
// anyway
249-
]
250-
}),
251-
];
237+
postcssOptions: {
238+
plugins: function () {
239+
return [
240+
autoprefixer({
241+
overrideBrowserslist: [
242+
'>1%',
243+
'last 4 versions',
244+
'Firefox ESR',
245+
'not ie < 9', // React
246+
// doesn't
247+
// support
248+
// IE8
249+
// anyway
250+
]
251+
}),
252+
];
253+
}
252254
}
253255
}
256+
254257
},
255258
{
256259
loader : "sass-loader",
@@ -268,21 +271,23 @@ module.exports = [
268271
{
269272
loader : 'postcss-loader',
270273
options: {
271-
plugins: function () {
272-
return [
273-
autoprefixer({
274-
overrideBrowserslist: [
275-
'>1%',
276-
'last 4 versions',
277-
'Firefox ESR',
278-
'not ie < 9', // React
279-
// doesn't
280-
// support
281-
// IE8
282-
// anyway
283-
]
284-
}),
285-
];
274+
postcssOptions: {
275+
plugins: function () {
276+
return [
277+
autoprefixer({
278+
overrideBrowserslist: [
279+
'>1%',
280+
'last 4 versions',
281+
'Firefox ESR',
282+
'not ie < 9', // React
283+
// doesn't
284+
// support
285+
// IE8
286+
// anyway
287+
]
288+
}),
289+
];
290+
}
286291
}
287292
}
288293
},

package.json

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "lpack-react",
3-
"version": "1.2.0",
3+
"version": "1.2.3",
44
"description": "An inheritable boilerplate with webpack 4, react, sass, hmr, SSR, express, helmet, etc",
55
"license": "MIT",
66
"author": "Nathan Braun <n8tz.js@gmail.com>",
@@ -40,23 +40,36 @@
4040
"file-loader": "^2.0.0",
4141
"fkill": "^6.2.0",
4242
"hard-source-webpack-plugin": "^0.13.1",
43+
"hoist-non-react-methods": "^1.1.0",
44+
"hoist-non-react-statics": "^3.2.1",
4345
"html-webpack-plugin": "^3.2.0",
4446
"http-proxy": "^1.17.0",
4547
"is": "^3.3.0",
4648
"json-loader": "^0.5.7",
4749
"layer-pack": "^1.0.0",
50+
"lodash": "^4.17.11",
4851
"mini-css-extract-plugin": "^0.4.5",
4952
"minimist": "^1.2.0",
53+
"moment": "^2.23.0",
5054
"node-sass": "^4.8.3",
5155
"null-loader": "^0.1.1",
5256
"optimize-css-assets-webpack-plugin": "^5.0.1",
5357
"postcss": "^7.0.6",
58+
"postcss-calc": "^7.0.1",
59+
"postcss-comment": "^2.0.0",
60+
"postcss-custom-properties": "^8.0.9",
61+
"postcss-import": "^12.0.1",
62+
"postcss-loader": "^3.0.0",
63+
"postcss-mixins": "^6.2.0",
64+
"postcss-nested": "^4.1.0",
65+
"postcss-simple-vars": "^5.0.1",
5466
"prop-types": "^15.6.0",
5567
"react": "^16.8.6",
5668
"react-dom": "^16.8.6",
5769
"react-helmet": "^5.2.1",
5870
"react-hot-loader": "^4.6.3",
5971
"sass-loader": "^7.1.0",
72+
"shortid": "^2.2.8",
6073
"source-map-explorer": "^2.0.1",
6174
"source-map-loader": "^0.2.4",
6275
"source-map-support": "^0.5.9",

0 commit comments

Comments
 (0)