Skip to content

Latest commit

 

History

History

modules

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Instructions

  1. Open modules/observable-store-extensions and run npm run build or npm run build:w.

  2. Open modules/observable-store and run npm run build or npm run build:w.

  3. Run npm run test in modules/observable-store and ensure all tests pass.

  4. Open one of the samples and uncomment the lines in tsconfig.json for @codewithdan (makes local testing easier).

  5. Open a sample project in samples to test it out.

  6. Run npm publish --access public in the root of the modules/observable-store and modules/observable-store-extensions folders (enter the 2FA code for npm).

Publishing Extensions Project

  1. Open modules/observable-store and run npm link to setup linking to @codewithdan/observable-store. Alternatively, you can uncomment the lines in modules/observable-store-extensions/tsconfig.json to work with it locally.

  2. Open modules/observable-store-extensions and run npm link @codewithdan/observable-store

  3. Open modules/observable-store-extensions/tsconfig.json and comment out the paths property

  4. Open modules/observable-store-extensions and run npm run build or npm run build:w.

  5. Copy the root readme.md file into modules/observable-store (need to update the build to automate this).

  6. Run npm publish --access public and enter the 2FA code for npm

  7. When done you can run npm unlink @codewithdan/observable-store in modules/observable-store-extensions

  8. Then run npm unlink in modules/observable-store

  9. IMPORTANT: Make sure that samples have @codewithdan sections in tsconfig.json commented out before pushing to github.

import { Observable } from 'rxjs' Error Building Extensions

Delete dist/observable-store and rebuild the extensions project. If using linking (see above) there shouldn't be a problem.