Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initial submission to provide Production build support for Walt-explorer #170

Merged
merged 2 commits into from
Oct 28, 2018

Conversation

randy7d0
Copy link
Contributor

This submission supports "Production" build mode, in addition to, existing "Development" build. It essentially addresses the requirement of the following story to some extent:

#128

To execute production build, "build:prod" mode has been added to package.json (in ~/packages/walt-docs/)
It reduces output JS file, explorer.js, by about 50%
Following testings have been performed for this submission:

  • manually loading explorer.js file from /docs folder
  • npm test

…sting "Development" build. It essentially addresses the requirement of the following story to some extent:

ballercat#128

To execute production build, "build:prod" mode has been added to package.json  (in ~/packages/walt-docs/)
It reduces output JS file, explorer.js, by about 50%
Following testings have been performed for this submission:
- manually loading explorer.js file from /docs folder
- npm test
@coveralls
Copy link

coveralls commented Oct 26, 2018

Pull Request Test Coverage Report for Build 220

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 99.621%

Totals Coverage Status
Change from base Build 212: 0.0%
Covered Lines: 1923
Relevant Lines: 1923

💛 - Coveralls

Copy link
Owner

@ballercat ballercat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cd packages
git mv walt-docs walt-explorer

Please move the docs folder as it's not really documentation

@@ -7,6 +7,7 @@
"start": "webpack-dev-server -d --hot --inline",
"start-container": "webpack-dev-server -d --hot --inline --host=$(hostname -I | xargs)",
"build": "webpack && cp index.html explorer.js explorer.js.map walt.png ../../docs/",
"build:prod": "cross-env NODE_ENV=production webpack && cp index.html explorer.js explorer.js.map walt.png ../../docs/",
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There isn't much of a point to keep both prod and dev build commands so let's just use build for this, drop the old command entirely.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had similar thoughts. Will do the changes now as you have suggested. Thanks!

- Renamed "walt-docs" to "walt-explorer" at ~/packages/
- Made "build" linked to production instead of having two similar naming builds [build, development] & [build:prod, production] in ~packages/walt-explorer/package.json
@ballercat ballercat merged commit 84a66a1 into ballercat:master Oct 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants