Skip to content

Instantly share code, notes, and snippets.

@ethan-deng
Last active March 24, 2017 20:47
Show Gist options
  • Select an option

  • Save ethan-deng/6a9bedd2c56e6439b5e575770e30d6c9 to your computer and use it in GitHub Desktop.

Select an option

Save ethan-deng/6a9bedd2c56e6439b5e575770e30d6c9 to your computer and use it in GitHub Desktop.
  • An NPM module could be loaded from either dist or lib folder. It is defined in the package.json file "main".
  • Change made directly to lib or dist folder will cause the wrong lines in debugger.
  • Example to build the dependencies
  1. Download draft-js-export-html-master
  2. Run "npm install".
  3. Change the source code
  4. Run "npm run build" to build the code to lib folder.
  5. Download react-rte
  6. Run "npm install".
  7. Sync draft-js-export-html-master lib folder to react-rte's node_modules's draft-js-export-html-master lib folder.
  8. Run "npm run build" to build the code to dist folder.
  9. Sync react-rte dist folder to "Web" project's node_modules's react-rte dist folder.
  10. Build Cloud2050.SharePoint.Web project
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment