Advertisement
Guest User

Untitled

a guest
Jun 24th, 2017
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. built with..
  2.  
  3. tsc ./src/index.ts --outDir ./bin --target commonjs  # builds ts into ./bin
  4. cp ./src/package.json ./bin/package.json             # copy package.json into ./bin
  5. cd ./bin && npm install                              # install ./node_modules
  6.  
  7. (optional) - publishing
  8.  
  9. cd ./bin && npm publish
  10.  
  11. --------------------------------------------------------------------
  12. node root
  13. --------------------------------------------------------------------
  14. .
  15. ├── bin
  16. │   ├── index.js
  17. │   ├── node_modules
  18. │   │   ├── mongo
  19. │   │   │   ├── index.js
  20. │   │   │   └── package.json
  21. │   │   └── mssql
  22. │   │       ├── index.js
  23. │   │       └── package.json
  24. │   └── package.json             <------- copied to.
  25. --------------------------------------------------------------------
  26. source files.
  27. --------------------------------------------------------------------
  28. └── src
  29.     ├── index.ts
  30.     ├── messaging
  31.     │   ├── email.ts
  32.     │   └── sms.ts
  33.     ├── package.json             <------- copied from.
  34.     ├── repository
  35.     │   ├── mongo.ts
  36.     │   └── mssql.ts
  37.     └── typings
  38.         ├── mongo
  39.         │   └── mongo.d.ts
  40.         ├── mssql
  41.         │   └── index.d.ts
  42.         └── node
  43.             └── index.d.ts
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement