Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
baas-ide
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
guxukai
baas-ide
Commits
4d877996
Commit
4d877996
authored
Aug 23, 2021
by
ioedeveloper
Committed by
yann300
Aug 25, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Run production build if variable is set
parent
f47357fc
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
35 additions
and
26 deletions
+35
-26
config.yml
.circleci/config.yml
+4
-4
webpack.config.js
apps/debugger/webpack.config.js
+15
-11
webpack.config.js
apps/remix-ide/webpack.config.js
+15
-11
package.json
package.json
+1
-0
No files found.
.circleci/config.yml
View file @
4d877996
...
@@ -239,7 +239,7 @@ jobs:
...
@@ -239,7 +239,7 @@ jobs:
-
checkout
-
checkout
-
run
:
npm install
-
run
:
npm install
-
run
:
npm run downloadsolc_assets
-
run
:
npm run downloadsolc_assets
-
run
:
np
x nx build remix-ide --with-deps
-
run
:
np
m run build:production
-
run
:
-
run
:
name
:
Deploy
name
:
Deploy
command
:
|
command
:
|
...
@@ -268,7 +268,7 @@ jobs:
...
@@ -268,7 +268,7 @@ jobs:
-
setup_remote_docker
-
setup_remote_docker
-
run
:
npm install
-
run
:
npm install
-
run
:
npm run downloadsolc_assets
-
run
:
npm run downloadsolc_assets
-
run
:
np
x nx build remix-ide --with-deps
-
run
:
np
m run build:production
-
run
:
./apps/remix-ide/ci/copy_resources.sh
-
run
:
./apps/remix-ide/ci/copy_resources.sh
-
run
:
./apps/remix-ide/ci/publishIpfs
-
run
:
./apps/remix-ide/ci/publishIpfs
-
run
:
./apps/remix-ide/ci/build_and_publish_docker_images.sh
-
run
:
./apps/remix-ide/ci/build_and_publish_docker_images.sh
...
@@ -293,7 +293,7 @@ jobs:
...
@@ -293,7 +293,7 @@ jobs:
-
checkout
-
checkout
-
run
:
npm install
-
run
:
npm install
-
run
:
npm run downloadsolc_assets
-
run
:
npm run downloadsolc_assets
-
run
:
np
x nx build remix-ide --with-deps
-
run
:
np
m run build:production
-
run
:
-
run
:
name
:
Deploy
name
:
Deploy
command
:
|
command
:
|
...
@@ -322,7 +322,7 @@ jobs:
...
@@ -322,7 +322,7 @@ jobs:
-
run
:
npm install
-
run
:
npm install
-
run
:
npm run build:libs
-
run
:
npm run build:libs
-
run
:
npm run downloadsolc_assets
-
run
:
npm run downloadsolc_assets
-
run
:
npm run build
-
run
:
npm run build
:production
-
run
:
-
run
:
name
:
Deploy
name
:
Deploy
command
:
|
command
:
|
...
...
apps/debugger/webpack.config.js
View file @
4d877996
...
@@ -3,18 +3,8 @@ const TerserPlugin = require('terser-webpack-plugin')
...
@@ -3,18 +3,8 @@ const TerserPlugin = require('terser-webpack-plugin')
module
.
exports
=
config
=>
{
module
.
exports
=
config
=>
{
const
nxWebpackConfig
=
nxWebpack
(
config
)
const
nxWebpackConfig
=
nxWebpack
(
config
)
const
productionConfig
=
process
.
env
.
NODE_ENV
===
'production'
?
{
const
webpackConfig
=
{
mode
:
'production'
,
devtool
:
'source-map'
,
optimization
:
{
minimize
:
true
,
minimizer
:
[
new
TerserPlugin
()]
}
}
:
{}
return
{
...
nxWebpackConfig
,
...
nxWebpackConfig
,
...
productionConfig
,
node
:
{
node
:
{
fs
:
'empty'
,
fs
:
'empty'
,
tls
:
'empty'
,
tls
:
'empty'
,
...
@@ -24,4 +14,18 @@ module.exports = config => {
...
@@ -24,4 +14,18 @@ module.exports = config => {
child_process
:
'empty'
child_process
:
'empty'
}
}
}
}
if
(
process
.
env
.
NODE_ENV
===
'production'
)
{
return
{
...
webpackConfig
,
mode
:
'production'
,
devtool
:
'source-map'
,
optimization
:
{
minimize
:
true
,
minimizer
:
[
new
TerserPlugin
()]
}
}
}
else
{
return
webpackConfig
}
}
}
apps/remix-ide/webpack.config.js
View file @
4d877996
...
@@ -3,18 +3,8 @@ const TerserPlugin = require('terser-webpack-plugin')
...
@@ -3,18 +3,8 @@ const TerserPlugin = require('terser-webpack-plugin')
module
.
exports
=
config
=>
{
module
.
exports
=
config
=>
{
const
nxWebpackConfig
=
nxWebpack
(
config
)
const
nxWebpackConfig
=
nxWebpack
(
config
)
const
productionConfig
=
process
.
env
.
NODE_ENV
===
'production'
?
{
const
webpackConfig
=
{
mode
:
'production'
,
devtool
:
'source-map'
,
optimization
:
{
minimize
:
true
,
minimizer
:
[
new
TerserPlugin
()]
}
}
:
{}
return
{
...
nxWebpackConfig
,
...
nxWebpackConfig
,
...
productionConfig
,
node
:
{
node
:
{
fs
:
'empty'
,
fs
:
'empty'
,
tls
:
'empty'
,
tls
:
'empty'
,
...
@@ -24,4 +14,18 @@ module.exports = config => {
...
@@ -24,4 +14,18 @@ module.exports = config => {
child_process
:
'empty'
child_process
:
'empty'
}
}
}
}
if
(
process
.
env
.
NODE_ENV
===
'production'
)
{
return
{
...
webpackConfig
,
mode
:
'production'
,
devtool
:
'source-map'
,
optimization
:
{
minimize
:
true
,
minimizer
:
[
new
TerserPlugin
()]
}
}
}
else
{
return
webpackConfig
}
}
}
package.json
View file @
4d877996
...
@@ -53,6 +53,7 @@
...
@@ -53,6 +53,7 @@
"downloadsolc_assets"
:
"wget --no-check-certificate https://binaries.soliditylang.org/wasm/soljson-v0.8.7+commit.e28d00a7.js -O ./apps/remix-ide/src/assets/js/soljson.js"
,
"downloadsolc_assets"
:
"wget --no-check-certificate https://binaries.soliditylang.org/wasm/soljson-v0.8.7+commit.e28d00a7.js -O ./apps/remix-ide/src/assets/js/soljson.js"
,
"make-mock-compiler"
:
"node apps/remix-ide/ci/makeMockCompiler.js"
,
"make-mock-compiler"
:
"node apps/remix-ide/ci/makeMockCompiler.js"
,
"minify"
:
"uglifyjs --in-source-map inline --source-map-inline -c warnings=false"
,
"minify"
:
"uglifyjs --in-source-map inline --source-map-inline -c warnings=false"
,
"build:production"
:
"NODE_ENV=production npx nx build remix-ide --with-deps"
,
"nightwatch_parallel"
:
"npm run build:e2e && nightwatch --config dist/apps/remix-ide-e2e/nightwatch.js --env=chrome,firefox"
,
"nightwatch_parallel"
:
"npm run build:e2e && nightwatch --config dist/apps/remix-ide-e2e/nightwatch.js --env=chrome,firefox"
,
"nightwatch_local_firefox"
:
"npm run build:e2e && nightwatch --config dist/apps/remix-ide-e2e/nightwatch.js --env=firefox"
,
"nightwatch_local_firefox"
:
"npm run build:e2e && nightwatch --config dist/apps/remix-ide-e2e/nightwatch.js --env=firefox"
,
"nightwatch_local_chrome"
:
"npm run build:e2e && nightwatch --config dist/apps/remix-ide-e2e/nightwatch.js --env=chrome"
,
"nightwatch_local_chrome"
:
"npm run build:e2e && nightwatch --config dist/apps/remix-ide-e2e/nightwatch.js --env=chrome"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment