-
Notifications
You must be signed in to change notification settings - Fork 17
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
9 changed files
with
1,310 additions
and
195 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
PORT=4000 | ||
SECRET_KEY='chnirt1803' | ||
SECRET_KEY='chnirt1803' |
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,6 @@ | ||
# compiled output | ||
/dist | ||
/documentation | ||
/node_modules | ||
|
||
# Logs | ||
|
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,12 +1,7 @@ | ||
import { Module } from '@nestjs/common' | ||
import { TypeOrmModule } from '@nestjs/typeorm' | ||
import { User } from '../../modules/user/user.entity' | ||
import { GraphqlService } from './graphql.service' | ||
import { UserService } from '../../modules/user/user.service' | ||
import { UserModule } from '../../modules/user/user.module' | ||
|
||
@Module({ | ||
// imports: [TypeOrmModule.forFeature([User]), UserModule], | ||
providers: [GraphqlService] | ||
}) | ||
export class GraphqlModule {} |
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,49 +1,61 @@ | ||
const webpack = require('webpack'); | ||
const path = require('path'); | ||
const nodeExternals = require('webpack-node-externals'); | ||
const chalk = require('chalk'); | ||
const ProgressBarPlugin = require('progress-bar-webpack-plugin'); | ||
const webpack = require('webpack') | ||
const path = require('path') | ||
const nodeExternals = require('webpack-node-externals') | ||
const chalk = require('chalk') | ||
const ProgressBarPlugin = require('progress-bar-webpack-plugin') | ||
const BundleAnalyzerPlugin = require('webpack-bundle-analyzer') | ||
.BundleAnalyzerPlugin | ||
const HtmlWebpackPlugin = require('html-webpack-plugin') | ||
|
||
module.exports = { | ||
entry: ['webpack/hot/poll?100', './src/main.ts'], | ||
watch: true, | ||
target: 'node', | ||
externals: [ | ||
nodeExternals({ | ||
whitelist: ['webpack/hot/poll?100'], | ||
}), | ||
], | ||
module: { | ||
rules: [ | ||
{ | ||
test: /.tsx?$/, | ||
use: 'ts-loader', | ||
exclude: /node_modules/, | ||
}, | ||
], | ||
}, | ||
mode: 'development', | ||
resolve: { | ||
extensions: ['.tsx', '.ts', '.js'], | ||
}, | ||
plugins: [ | ||
new webpack.HotModuleReplacementPlugin(), | ||
new ProgressBarPlugin({ | ||
format: | ||
chalk.hex('#6c5ce7')('build ') + | ||
chalk.hex('#0984e3')('▯:bar▯ ') + | ||
// chalk.red('▯ :bar ▯ ') + | ||
chalk.hex('#00b894')('(:percent) ') + | ||
// chalk.green(':percent ') + | ||
chalk.hex('#ffeaa7')(':msg'), | ||
// chalk.blue('( :elapsed s )') | ||
complete: '▰', | ||
incomplete: '▱', | ||
clear: false, | ||
}), | ||
], | ||
output: { | ||
path: path.join(__dirname, 'dist'), | ||
filename: 'server.js', | ||
}, | ||
}; | ||
entry: ['webpack/hot/poll?100', './src/main.ts'], | ||
watch: true, | ||
target: 'node', | ||
externals: [ | ||
nodeExternals({ | ||
whitelist: ['webpack/hot/poll?100'] | ||
}) | ||
], | ||
module: { | ||
rules: [ | ||
{ | ||
test: /.tsx?$/, | ||
use: 'ts-loader', | ||
exclude: /node_modules/ | ||
} | ||
] | ||
}, | ||
mode: 'development', | ||
resolve: { | ||
extensions: ['.tsx', '.ts', '.js'] | ||
}, | ||
plugins: [ | ||
new webpack.HotModuleReplacementPlugin(), | ||
new ProgressBarPlugin({ | ||
format: | ||
chalk.hex('#6c5ce7')('build ') + | ||
chalk.hex('#0984e3')('▯:bar▯ ') + | ||
// chalk.red('▯ :bar ▯ ') + | ||
chalk.hex('#00b894')('(:percent) ') + | ||
// chalk.green(':percent ') + | ||
chalk.hex('#ffeaa7')(':msg'), | ||
// chalk.blue('( :elapsed s )') | ||
complete: '▰', | ||
incomplete: '▱', | ||
clear: false | ||
}), | ||
new BundleAnalyzerPlugin({ | ||
analyzerMode: 'static', | ||
analyzerHost: '127.0.0.1', | ||
analyzerPort: '8888', | ||
reportFilename: 'report.html', | ||
openAnalyzer: true, | ||
generateStatsFile: true, | ||
statsFilename: 'stats.json' | ||
}) | ||
], | ||
output: { | ||
path: path.join(__dirname, 'dist'), | ||
filename: 'server.js' | ||
} | ||
} |
Oops, something went wrong.