Commit 8d8c6e53 authored by ioedeveloper's avatar ioedeveloper Committed by yann300

Setup production build script in package.json and readme.md

parent 4144c889
...@@ -50,6 +50,18 @@ Run `nx serve` and open `http://127.0.0.1:8080` in your browser. ...@@ -50,6 +50,18 @@ Run `nx serve` and open `http://127.0.0.1:8080` in your browser.
Then open your `text editor` and start developing. Then open your `text editor` and start developing.
The browser will automatically refresh when files are saved. The browser will automatically refresh when files are saved.
## Production Build
To generate react production builds for remix-project.
```bash
npm run build:production
```
build can be found in `remix-project/dist/apps/remix-ide` directory.
```bash
npm run serve:production
```
production build will be served by default to `http://localhost:8080/` or `http://127.0.0.1:8080/`
## Docker: ## Docker:
Prerequisites: Prerequisites:
......
...@@ -54,6 +54,7 @@ ...@@ -54,6 +54,7 @@
"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", "build:production": "NODE_ENV=production npx nx build remix-ide --with-deps",
"serve:production": "npx http-server ./dist/apps/remix-ide",
"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",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment