Skip to content
This repository has been archived by the owner on Aug 30, 2022. It is now read-only.

Commit

Permalink
Merge pull request #113 from latitudegames/server-build-update
Browse files Browse the repository at this point in the history
Server build update
  • Loading branch information
parzival418 authored Oct 6, 2021
2 parents f2a361e + 80c5830 commit a3301ee
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 12 deletions.
2 changes: 0 additions & 2 deletions client/webpack.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ const webpack = require('webpack')

const prod = process.env.NODE_ENV === 'production'

console.log('WEBPACK ENV', process.env.NODE_ENV)

const babelOptions = {
presets: [
'@babel/env',
Expand Down
16 changes: 16 additions & 0 deletions core/server.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import { getComponents, components } from './src/components/components'
import { initSharedEngine } from './src/engine'
import { Task } from './src/plugins/taskPlugin/task'
import { ThothComponent } from './src/thoth-component'

export { getComponents } from './src/components/components'
export type { EngineContext } from './src/engine'
export { Task } from './src/plugins/taskPlugin/task'

export default {
components,
getComponents,
initSharedEngine,
Task,
ThothComponent,
}
7 changes: 5 additions & 2 deletions core/webpack.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,13 @@ const TerserPlugin = require('terser-webpack-plugin')

module.exports = () => {
const config = {
entry: './index.ts',
entry: {
index: './index.ts',
server: './server.ts',
},
output: {
path: path.join(__dirname, 'dist'),
filename: 'index.js',
filename: '[name].js',
library: {
name: 'thothCore',
type: 'umd',
Expand Down
8 changes: 0 additions & 8 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -12235,14 +12235,6 @@ rete-react-render-plugin@^0.2.1:
resolved "https://registry.yarnpkg.com/rete-react-render-plugin/-/rete-react-render-plugin-0.2.1.tgz#71a6d73f18f850b85262563f678b40080a7b0e32"
integrity sha512-2ZMXUP0v+EiejHVMqdrOmUwyDBHC2UDOJ/pFkElaZL1Kn/E40JZA5yzdBXi6ajYZI2DCzoW5ZBcA2Ihjtur8MQ==

"rete@git+https://github.com/latitudegames/rete.git#master":
version "1.4.5"
uid "24565a81a2bbcdd4cd73b0a725977550cc8ff988"
resolved "git+https://github.com/latitudegames/rete.git#24565a81a2bbcdd4cd73b0a725977550cc8ff988"
dependencies:
lodash "^4.17.21"
watch "^1.0.2"

"rete@https://github.com/latitudegames/rete.git#master":
version "1.4.5"
resolved "https://github.com/latitudegames/rete.git#24565a81a2bbcdd4cd73b0a725977550cc8ff988"
Expand Down

0 comments on commit a3301ee

Please sign in to comment.