-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #19 from ozkeisar/add-clone-endpoint
Add clone endpoint
- Loading branch information
Showing
24 changed files
with
1,084 additions
and
245 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 |
---|---|---|
@@ -0,0 +1,75 @@ | ||
/** | ||
* Webpack config for production electron main process | ||
*/ | ||
|
||
import path from 'path'; | ||
import webpack from 'webpack'; | ||
import { merge } from 'webpack-merge'; | ||
import TerserPlugin from 'terser-webpack-plugin'; | ||
import baseConfig from './webpack.config.base'; | ||
import webpackPaths from './webpack.paths'; | ||
// import checkNodeEnv from '../scripts/check-node-env'; | ||
|
||
// checkNodeEnv('production'); | ||
|
||
const configuration: webpack.Configuration = { | ||
target: 'node', | ||
|
||
mode: 'production', | ||
|
||
entry: { | ||
main: path.join(webpackPaths.srcBackendPath, 'run.ts'), | ||
}, | ||
|
||
output: { | ||
path: webpackPaths.distBackendPath, | ||
filename: '[name].js', | ||
library: { | ||
type: 'umd', | ||
}, | ||
}, | ||
|
||
optimization: { | ||
minimizer: [ | ||
new TerserPlugin({ | ||
parallel: true, | ||
}), | ||
], | ||
}, | ||
|
||
plugins: [ | ||
// new BundleAnalyzerPlugin({ | ||
// analyzerMode: process.env.ANALYZE === 'true' ? 'server' : 'disabled', | ||
// analyzerPort: 8888, | ||
// }), | ||
// /** | ||
// * Create global constants which can be configured at compile time. | ||
// * | ||
// * Useful for allowing different behaviour between development builds and | ||
// * release builds | ||
// * | ||
// * NODE_ENV should be production so that modules do not perform certain | ||
// * development checks | ||
// */ | ||
// new webpack.EnvironmentPlugin({ | ||
// NODE_ENV: 'production', | ||
// DEBUG_PROD: false, | ||
// START_MINIMIZED: false, | ||
// }), | ||
// new webpack.DefinePlugin({ | ||
// 'process.type': '"browser"', | ||
// }), | ||
], | ||
|
||
/** | ||
* Disables webpack processing of __dirname and __filename. | ||
* If you run the bundle in node.js it falls back to these values of node.js. | ||
* https://github.com/webpack/webpack/issues/2010 | ||
*/ | ||
node: { | ||
__dirname: false, | ||
__filename: false, | ||
}, | ||
}; | ||
|
||
export default merge(baseConfig, configuration); |
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 |
---|---|---|
|
@@ -29,3 +29,5 @@ npm-debug.log.* | |
*.scss.d.ts | ||
|
||
mock-data-test | ||
docker/* | ||
!.package.json |
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
FROM timbru31/node-alpine-git | ||
|
||
COPY docker/* . | ||
|
||
EXPOSE 1512 3000-3050 | ||
|
||
CMD [ "npm", "start" ] |
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"name": "dist", | ||
"version": "1.0.0", | ||
"description": "", | ||
"main": "main.js", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1", | ||
"start": "node main.js" | ||
}, | ||
"author": "", | ||
"license": "ISC" | ||
} |
Oops, something went wrong.