TypeStrong / dts-bundle

Export TypeScript .d.ts files as an external module definition
MIT License
308 stars 57 forks source link

CLI ? #13

Closed Semigradsky closed 8 years ago

Semigradsky commented 9 years ago

Running using npm script would be very convenient

tolemac commented 8 years ago

It will be nice to have.

tolemac commented 8 years ago

I'm not sure how to implement it ...

I can think of two ways:

  1. To add code to index.ts inspect process.argv searching parameters ...
  2. To add new module, ie: cli.ts that import and use bundle function from index.ts...

@basarat can you tell me about?

I not sure how to determine if a module is running directly with nodejs or included from other ...

basarat commented 8 years ago

I not sure how to determine if a module is running directly with nodejs or included from other

With examples :

Developer (you)

User

"scripts": {
    "build": "alm -p ./src"
},

:rose:

tolemac commented 8 years ago

Done.