Skip to content

Commit f827ee5

Browse files
committed
Rename directory built to build
1 parent 869d5fd commit f827ee5

File tree

8 files changed

+25
-25
lines changed

8 files changed

+25
-25
lines changed

.gitignore

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
.idea
2-
node_modules
3-
npm-debug.log
1+
/.idea
2+
/node_modules
3+
/build
4+
/npm-debug.log
5+
/package-lock.json
46
.DS_Store
5-
built
6-
package-lock.json

app/backend.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ const {
33
__PROD__,
44
__DEV__,
55
proxyPort,
6-
backendBuiltPath,
6+
backendBuildPath,
77
apiEndpoint,
88
} = require('../environment');
99

@@ -31,16 +31,16 @@ if (__DEV__) {
3131

3232
try {
3333
if (httpServer) httpServer.close();
34-
delete require.cache[require.resolve(backendBuiltPath)];
35-
const app = require(backendBuiltPath).default;
34+
delete require.cache[require.resolve(backendBuildPath)];
35+
const app = require(backendBuildPath).default;
3636
httpServer = app.listen(proxyPort);
3737
} catch (e) {
3838
console.error(e);
3939
}
4040
}
4141
});
4242
} else {
43-
const app = require(backendBuiltPath).default;
43+
const app = require(backendBuildPath).default;
4444
app.listen(proxyPort);
4545
}
4646

app/frontend.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const {
66
frontendSrcPath,
77
algorithmApiSrcPath,
88
wikiApiSrcPath,
9-
frontendBuiltPath,
9+
frontendBuildPath,
1010
apiEndpoint,
1111
} = require('../environment');
1212

@@ -32,5 +32,5 @@ if (__DEV__) {
3232

3333
module.exports = app;
3434
} else {
35-
module.exports = express.static(frontendBuiltPath);
35+
module.exports = express.static(frontendBuildPath);
3636
}

environment.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ const githubBotAuth = {
2929
const githubOrg = GITHUB_ORG;
3030
const githubRepo = GITHUB_REPO;
3131

32-
const builtPath = path.resolve(__dirname, 'built');
33-
const frontendBuiltPath = path.resolve(builtPath, 'frontend');
34-
const backendBuiltPath = path.resolve(builtPath, 'backend');
32+
const buildPath = path.resolve(__dirname, 'build');
33+
const frontendBuildPath = path.resolve(buildPath, 'frontend');
34+
const backendBuildPath = path.resolve(buildPath, 'backend');
3535

3636
const srcPath = path.resolve(__dirname, 'src');
3737
const frontendSrcPath = path.resolve(srcPath, 'frontend');
@@ -49,8 +49,8 @@ module.exports = {
4949
githubBotAuth,
5050
githubOrg,
5151
githubRepo,
52-
frontendBuiltPath,
53-
backendBuiltPath,
52+
frontendBuildPath,
53+
backendBuildPath,
5454
frontendSrcPath,
5555
backendSrcPath,
5656
apiEndpoint,

src/backend/controllers/compiler.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import path from 'path';
44
const router = express.Router();
55

66
const getJsWorker = (req, res, next) => {
7-
res.sendFile(path.resolve(__dirname, '..', 'tracers', 'languages', 'js', 'built', 'index.js'));
7+
res.sendFile(path.resolve(__dirname, '..', 'tracers', 'languages', 'js', 'build', 'index.js'));
88
};
99

1010
const compileJava = (req, res, next) => {

src/backend/tracers

webpack.backend.config.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const fs = require('fs');
55

66
const {
77
__DEV__,
8-
backendBuiltPath: builtPath,
8+
backendBuildPath: buildPath,
99
backendSrcPath: srcPath,
1010
} = require('./environment');
1111

@@ -29,7 +29,7 @@ module.exports = {
2929
alias,
3030
},
3131
output: {
32-
path: builtPath,
32+
path: buildPath,
3333
filename: 'index.js',
3434
libraryTarget: 'umd',
3535
},
@@ -39,7 +39,7 @@ module.exports = {
3939
],
4040
},
4141
plugins: [
42-
new CleanWebpackPlugin([builtPath]),
42+
new CleanWebpackPlugin([buildPath]),
4343
],
4444
mode: __DEV__ ? 'development' : 'production',
4545
};

webpack.frontend.config.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const fs = require('fs');
1111
const {
1212
__PROD__,
1313
__DEV__,
14-
frontendBuiltPath: builtPath,
14+
frontendBuildPath: buildPath,
1515
frontendSrcPath: srcPath,
1616
} = require('./environment');
1717

@@ -39,7 +39,7 @@ module.exports = {
3939
},
4040
output: {
4141
filename: __DEV__ ? '[name].js' : '[name].[chunkhash].js',
42-
path: builtPath,
42+
path: buildPath,
4343
publicPath: '/',
4444
},
4545
module: {
@@ -67,8 +67,8 @@ module.exports = {
6767
],
6868
},
6969
plugins: filter([
70-
new CleanWebpackPlugin([builtPath]),
71-
new CopyWebpackPlugin([{ from: path.resolve(srcPath, 'static'), to: builtPath }]),
70+
new CleanWebpackPlugin([buildPath]),
71+
new CopyWebpackPlugin([{ from: path.resolve(srcPath, 'static'), to: buildPath }]),
7272
new HtmlWebpackPlugin({
7373
template: path.resolve(srcPath, 'template.html'),
7474
hash: false,

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy