Lee SeJin

Update heroku setting

...@@ -119,5 +119,5 @@ dist ...@@ -119,5 +119,5 @@ dist
119 package-lock.json 119 package-lock.json
120 /uploads 120 /uploads
121 /assets 121 /assets
122 -build 122 +/build
123 .vscode 123 .vscode
...\ No newline at end of file ...\ No newline at end of file
......
1 -{
2 - "git.ignoreLimitWarning": true
3 -}
...\ No newline at end of file ...\ No newline at end of file
...@@ -3,8 +3,12 @@ ...@@ -3,8 +3,12 @@
3 "version": "1.0.0", 3 "version": "1.0.0",
4 "description": "2021 OSS Project Using node!", 4 "description": "2021 OSS Project Using node!",
5 "scripts": { 5 "scripts": {
6 + "start": "node build/init.js",
7 + "build": "npm run build:server && npm run build:assets",
8 + "build:server": "babel src -d build",
9 + "build:assets": "webpack --mode=production",
6 "dev:server": "nodemon", 10 "dev:server": "nodemon",
7 - "dev:assets": "webpack" 11 + "dev:assets": "webpack --mode=development -w"
8 }, 12 },
9 "repository": { 13 "repository": {
10 "type": "git", 14 "type": "git",
...@@ -13,9 +17,6 @@ ...@@ -13,9 +17,6 @@
13 "author": "Lee SeJin", 17 "author": "Lee SeJin",
14 "license": "MIT", 18 "license": "MIT",
15 "dependencies": { 19 "dependencies": {
16 - "@babel/core": "^7.14.0",
17 - "@babel/node": "^7.13.13",
18 - "@babel/preset-env": "^7.14.1",
19 "axios": "^0.21.1", 20 "axios": "^0.21.1",
20 "connect-mongo": "^4.4.1", 21 "connect-mongo": "^4.4.1",
21 "dotenv": "^9.0.2", 22 "dotenv": "^9.0.2",
...@@ -28,9 +29,14 @@ ...@@ -28,9 +29,14 @@
28 "nodemon": "^2.0.7", 29 "nodemon": "^2.0.7",
29 "passport": "^0.4.1", 30 "passport": "^0.4.1",
30 "passport-github2": "^0.1.12", 31 "passport-github2": "^0.1.12",
31 - "pug": "^3.0.2" 32 + "pug": "^3.0.2",
33 + "regenerator-runtime": "^0.13.7"
32 }, 34 },
33 "devDependencies": { 35 "devDependencies": {
36 + "@babel/core": "^7.14.0",
37 + "@babel/node": "^7.13.13",
38 + "@babel/preset-env": "^7.14.1",
39 + "@babel/cli": "^7.14.3",
34 "babel-loader": "^8.2.2", 40 "babel-loader": "^8.2.2",
35 "css-loader": "^5.2.6", 41 "css-loader": "^5.2.6",
36 "eslint-config-prettier": "^8.3.0", 42 "eslint-config-prettier": "^8.3.0",
......
1 +import "regenerator-runtime";
1 import "../scss/styles.scss"; 2 import "../scss/styles.scss";
2 3
3 -console.log("main"); 4 +
......
1 +import "regenerator-runtime";
1 import "dotenv/config"; 2 import "dotenv/config";
2 import "./db"; 3 import "./db";
3 import "./models/User"; 4 import "./models/User";
......
...@@ -14,7 +14,7 @@ const app = express(); ...@@ -14,7 +14,7 @@ const app = express();
14 14
15 15
16 app.set("view engine","pug"); 16 app.set("view engine","pug");
17 -app.set("views", path.join(__dirname, "views")); 17 +app.set("views", process.cwd() + "/src/views");
18 app.use(express.static(path.join(__dirname, "static"))); 18 app.use(express.static(path.join(__dirname, "static")));
19 app.use(morgan("dev")); 19 app.use(morgan("dev"));
20 app.use(express.json()); 20 app.use(express.json());
......
...@@ -8,8 +8,6 @@ module.exports = { ...@@ -8,8 +8,6 @@ module.exports = {
8 githubInfo: "./src/client/js/githubInfo.js", 8 githubInfo: "./src/client/js/githubInfo.js",
9 search: "./src/client/js/search.js", 9 search: "./src/client/js/search.js",
10 }, 10 },
11 - mode: "development",
12 - watch: true,
13 plugins: [ 11 plugins: [
14 new MiniCssExtractPlugin({ 12 new MiniCssExtractPlugin({
15 filename: "css/styles.css", 13 filename: "css/styles.css",
......