Toggle navigation
Toggle navigation
This project
Loading...
Sign in
2021_dev-profile
/
dev-profile
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
Lee SeJin
2021-06-08 00:36:44 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
aa9572a1a3b6930919076ef0206d63a45998a1c7
aa9572a1
1 parent
bd5da55a
Update heroku setting
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
16 additions
and
13 deletions
.gitignore
.vscode/settings.json
package.json
src/client/js/main.js
src/init.js
src/server.js
webpack.config.js
.gitignore
View file @
aa9572a
...
...
@@ -119,5 +119,5 @@ dist
package-lock.json
/uploads
/assets
build
/
build
.vscode
\ No newline at end of file
...
...
.vscode/settings.json
deleted
100644 → 0
View file @
bd5da55
{
"git.ignoreLimitWarning"
:
true
}
\ No newline at end of file
package.json
View file @
aa9572a
...
...
@@ -3,8 +3,12 @@
"version"
:
"1.0.0"
,
"description"
:
"2021 OSS Project Using node!"
,
"scripts"
:
{
"start"
:
"node build/init.js"
,
"build"
:
"npm run build:server && npm run build:assets"
,
"build:server"
:
"babel src -d build"
,
"build:assets"
:
"webpack --mode=production"
,
"dev:server"
:
"nodemon"
,
"dev:assets"
:
"webpack"
"dev:assets"
:
"webpack
--mode=development -w
"
},
"repository"
:
{
"type"
:
"git"
,
...
...
@@ -13,9 +17,6 @@
"author"
:
"Lee SeJin"
,
"license"
:
"MIT"
,
"dependencies"
:
{
"@babel/core"
:
"^7.14.0"
,
"@babel/node"
:
"^7.13.13"
,
"@babel/preset-env"
:
"^7.14.1"
,
"axios"
:
"^0.21.1"
,
"connect-mongo"
:
"^4.4.1"
,
"dotenv"
:
"^9.0.2"
,
...
...
@@ -28,9 +29,14 @@
"nodemon"
:
"^2.0.7"
,
"passport"
:
"^0.4.1"
,
"passport-github2"
:
"^0.1.12"
,
"pug"
:
"^3.0.2"
"pug"
:
"^3.0.2"
,
"regenerator-runtime"
:
"^0.13.7"
},
"devDependencies"
:
{
"@babel/core"
:
"^7.14.0"
,
"@babel/node"
:
"^7.13.13"
,
"@babel/preset-env"
:
"^7.14.1"
,
"@babel/cli"
:
"^7.14.3"
,
"babel-loader"
:
"^8.2.2"
,
"css-loader"
:
"^5.2.6"
,
"eslint-config-prettier"
:
"^8.3.0"
,
...
...
src/client/js/main.js
View file @
aa9572a
import
"regenerator-runtime"
;
import
"../scss/styles.scss"
;
console
.
log
(
"main"
);
...
...
src/init.js
View file @
aa9572a
import
"regenerator-runtime"
;
import
"dotenv/config"
;
import
"./db"
;
import
"./models/User"
;
...
...
src/server.js
View file @
aa9572a
...
...
@@ -14,7 +14,7 @@ const app = express();
app
.
set
(
"view engine"
,
"pug"
);
app
.
set
(
"views"
,
p
ath
.
join
(
__dirname
,
"views"
)
);
app
.
set
(
"views"
,
p
rocess
.
cwd
()
+
"/src/views"
);
app
.
use
(
express
.
static
(
path
.
join
(
__dirname
,
"static"
)));
app
.
use
(
morgan
(
"dev"
));
app
.
use
(
express
.
json
());
...
...
webpack.config.js
View file @
aa9572a
...
...
@@ -8,8 +8,6 @@ module.exports = {
githubInfo
:
"./src/client/js/githubInfo.js"
,
search
:
"./src/client/js/search.js"
,
},
mode
:
"development"
,
watch
:
true
,
plugins
:
[
new
MiniCssExtractPlugin
({
filename
:
"css/styles.css"
,
...
...
Please
register
or
login
to post a comment