-
-
Notifications
You must be signed in to change notification settings - Fork 232
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
28 changed files
with
457 additions
and
463 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import fs from 'fs' | ||
import path from 'path' | ||
|
||
export const getNextronConfig = () => { | ||
const nextronConfigPath = path.join(process.cwd(), 'nextron.config.js') | ||
if (fs.existsSync(nextronConfigPath)) { | ||
return require(nextronConfigPath) | ||
} else { | ||
return {} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import fs from 'fs' | ||
import path from 'path' | ||
|
||
const cwd = process.cwd() | ||
|
||
export const getBabelConfig = (): string | undefined => { | ||
if (fs.existsSync(path.join(cwd, '.babelrc'))) | ||
return path.join(cwd, '.babelrc') | ||
if (fs.existsSync(path.join(cwd, '.babelrc.js'))) | ||
return path.join(cwd, '.babelrc.js') | ||
if (fs.existsSync(path.join(cwd, 'babel.config.js'))) | ||
return path.join(cwd, 'babel.config.js') | ||
return path.join(__dirname, '../babel.js') | ||
} |
14 changes: 3 additions & 11 deletions
14
lib/webpack/helpers.ts → ...pers/getWebpackConfig/getWebpackConfig.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export * from './getWebpackConfig' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export * from './getWebpackConfig' | ||
export * from './getNextronConfig' | ||
export * from './log' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
import chalk from 'chalk' | ||
|
||
export default function log(text: string) { | ||
export const log = (text: string) => { | ||
console.log(chalk`{cyan [nextron]} ${text}`) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "nextron", | ||
"version": "8.9.0", | ||
"version": "8.10.0", | ||
"description": "⚡ NEXT.js + Electron ⚡", | ||
"repository": "[email protected]:saltyshiomix/nextron.git", | ||
"author": "Shiono Yoshihide <[email protected]>", | ||
|
@@ -39,20 +39,20 @@ | |
"prepare": "husky install" | ||
}, | ||
"dependencies": { | ||
"@babel/core": "7.22.20", | ||
"@babel/core": "7.23.0", | ||
"@babel/plugin-transform-class-properties": "7.22.5", | ||
"@babel/plugin-transform-object-rest-spread": "7.22.15", | ||
"@babel/plugin-transform-optional-chaining": "7.22.15", | ||
"@babel/plugin-transform-optional-chaining": "7.23.0", | ||
"@babel/plugin-transform-runtime": "7.22.15", | ||
"@babel/preset-env": "7.22.20", | ||
"@babel/preset-typescript": "7.22.15", | ||
"@babel/runtime": "7.22.15", | ||
"@babel/runtime-corejs3": "7.22.15", | ||
"@babel/preset-typescript": "7.23.0", | ||
"@babel/runtime": "7.23.1", | ||
"@babel/runtime-corejs3": "7.23.1", | ||
"arg": "5.0.2", | ||
"babel-loader": "9.1.3", | ||
"chalk": "4.1.2", | ||
"execa": "5.1.1", | ||
"fs-extra": "11.1.0", | ||
"fs-extra": "11.1.1", | ||
"webpack": "5.88.2", | ||
"webpack-merge": "5.9.0" | ||
}, | ||
|
Oops, something went wrong.