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

Changed the way scripts are loaded into page #312

Merged
merged 1 commit into from
Feb 20, 2017

Conversation

dozoisch
Copy link
Collaborator

  • use node_modules to load scripts. This makes it a lot easier to update
    them

  • use node_modules for css files. (Take them from distributions and copy
    them in build directory. This includes all codemirror themese

  • removed prettify (doesn't seem to be used anywhwere)

  • removed all assets that are now in webpack build

  • added webpack to build scripts

    • each page has his own bundle
    • two common: codemirror & vendors.
      • vendors has jquery & bootstrap
      • codemirror has codemirror!
    • jquery, bootstrap & codemirror are now node_modules
  • build is done on install for production.

  • npm run start-dev builds & runs for staging

  • npm start now start in production


Would love to get some feedback on this! @wulfsolter @heartnetkung

- use node_modules to load scripts. This makes it a lot easier to update
them
- use node_modules for css files. (Take them from distributions and copy
them in build directory. This includes all codemirror themese
- removed prettify (doesn't seem to be used anywhwere)
- removed all assets that are now in webpack build

- added webpack to build scripts
  - each page has his own bundle
  - two common: codemirror & vendors.
    - vendors has jquery & bootstrap
    - codemirror has codemirror!
  - jquery, bootstrap & codemirror are now node_modules

- build is done on install for production.
- npm run start-dev builds & runs for staging
- npm start now start in production
Copy link
Collaborator

@wulfsolter wulfsolter left a comment

Choose a reason for hiding this comment

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

Yowsers! I'm not going to pick through it and test, but I really like the concept and ideas behind your actions - very impressed with your commitment to this project and how you're taking mongo-express to the next level!!!

@dozoisch
Copy link
Collaborator Author

@wulfsolter trying to :)! Next step is tests for views. Want to make sure that we can move fast without breaking things

@dozoisch dozoisch merged commit 5923922 into mongo-express:master Feb 20, 2017
@dozoisch dozoisch deleted the build_tools branch February 20, 2017 05:56
ryodocx pushed a commit to ryodocx/mongo-express that referenced this pull request Mar 18, 2019
Changed the way scripts are loaded into page
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.

2 participants