Skip to content

Commit

Permalink
adsf
Browse files Browse the repository at this point in the history
  • Loading branch information
HyunMo Ahn committed Apr 17, 2019
1 parent 068d9ad commit 66db8c3
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
5 changes: 0 additions & 5 deletions config/babel.register.js

This file was deleted.

2 changes: 1 addition & 1 deletion config/babel.config.js → config/babel/babel.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const { APP_PATH } = require('./path');
const { APP_PATH } = require('../path');

module.exports = {
presets: ['@babel/env', '@babel/react'],
Expand Down
5 changes: 5 additions & 0 deletions config/babel/babel.register.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
const { CONFIG_PATH } = require('../path');

require('@babel/register')({
configFile: `${CONFIG_PATH}/babel/babel.config.js`,
});
2 changes: 1 addition & 1 deletion config/webpack/webpack.basic.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ module.exports = {
{
loader: 'babel-loader',
options: {
configFile: path.join(CONFIG_PATH, 'babel.config.js'),
configFile: path.join(CONFIG_PATH, 'babel/babel.config.js'),
},
},
'eslint-loader',
Expand Down
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@
"scripts": {
"start": "yarn start:renderer",
"start-devtools": "cross-env IS_DEVTOOLS=true yarn start",
"start:main": "cross-env NODE_ENV=development electron -r ./config/babel.register.js ./app/main.js",
"start:renderer": "cross-env NODE_ENV=development node -r ./config/babel.register.js ./node_modules/webpack-dev-server/bin/webpack-dev-server --config config/webpack/webpack.dev.config.js --hot --inline --watch",
"start:main": "cross-env NODE_ENV=development electron -r ./config/babel/babel.register.js ./app/main.js",
"start:renderer": "cross-env NODE_ENV=development node -r ./config/babel/babel.register.js ./node_modules/webpack-dev-server/bin/webpack-dev-server --config config/webpack/webpack.dev.config.js --hot --inline --watch",
"watch:main": "nodemon --exec \"yarn start:main\" --ext js --ignore build/ --ignore dist/ --ignore coverage/",
"build": "concurrently \"yarn build:app\" \"yarn build:webview\"",
"build:app": "cross-env NODE_ENV=production webpack --config config/webpack/webpack.prod.config.js",
"build:webview": "cross-env NODE_ENV=production webpack --config config/webpack/webpack.webview.js",
"build:app:watch": "cross-env NODE_ENV=production webpack --watch --config config/webpack/webpack.prod.config.js",
"build:app": "cross-env NODE_ENV=production webpack --config ./config/webpack/webpack.prod.config.js",
"build:webview": "cross-env NODE_ENV=production webpack --config ./config/webpack/webpack.webview.js",
"build:app:watch": "cross-env NODE_ENV=production webpack --watch --config ./config/webpack/webpack.prod.config.js",
"package": "yarn build && build -c electron-builder.yml -mw",
"package:mac": "yarn build && build -c electron-builder.yml -m",
"package:win": "yarn build && build -c electron-builder.yml -w",
Expand Down

0 comments on commit 66db8c3

Please sign in to comment.