Skip to content

Commit

Permalink
feat: dependabot
Browse files Browse the repository at this point in the history
  • Loading branch information
denchiklut committed Dec 22, 2022
1 parent 94670da commit 9bdbc27
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 4 deletions.
1 change: 0 additions & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ root = true
charset = utf-8
end_of_line = lf
tab_width = 4
indent_size = 4
indent_style = tab
max_line_length = 100
insert_final_newline = true
Expand Down
8 changes: 8 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
version: 2
updates:
- package-ecosystem: 'npm'
directory: '/'
schedule:
interval: 'monthly'
open-pull-requests-limit: 0

1 change: 0 additions & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"semi": false,
"tabWidth": 4,
"useTabs": true,
"singleQuote": true,
"jsxSingleQuote": true,
Expand Down
1 change: 1 addition & 0 deletions @types/app/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
interface Window {
IS_SERVER: boolean
IS_DEV: boolean
IS_PROD: boolean
}

namespace Express {
Expand Down
1 change: 1 addition & 0 deletions @types/env/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
declare const IS_DEV: boolean
declare const IS_PROD: boolean
declare const IS_SERVER: boolean
declare const IS_SPA: boolean
6 changes: 4 additions & 2 deletions webpack/plugins/define.plugin.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import dotenv from 'dotenv'
import { DefinePlugin } from 'webpack'
import { IS_DEV } from '../env'
import { IS_DEV, IS_PROD } from '../env'

interface Props {
server?: boolean
Expand All @@ -11,10 +11,12 @@ dotenv.config()
const config = (isServer: boolean, spa: boolean) => ({
IS_SERVER: isServer,
IS_DEV,
IS_PROD,
IS_SPA: spa,
'process.env': {
DEBUG: JSON.stringify(process.env.DEBUG)
}
})

export const definePlugin = ({ server = false, spa = false }: Props = {}) => new DefinePlugin(config(server, spa))
export const definePlugin = ({ server = false, spa = false }: Props = {}) =>
new DefinePlugin(config(server, spa))

0 comments on commit 9bdbc27

Please sign in to comment.