Skip to content

CLI ? #13

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
Semigradsky opened this issue Apr 4, 2015 · 4 comments
Closed

CLI ? #13

Semigradsky opened this issue Apr 4, 2015 · 4 comments

Comments

@Semigradsky
Copy link

Running using npm script would be very convenient

@tolemac tolemac added this to the 0.4.0 version milestone Jan 11, 2016
@tolemac
Copy link
Contributor

tolemac commented Jan 11, 2016

It will be nice to have.

@tolemac
Copy link
Contributor

tolemac commented Jan 14, 2016

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
Copy link
Member

basarat commented Jan 14, 2016

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

With examples :

Developer (you)

User

  • To use such a file they can either do npm install -g alm. This gives them the executables from the package.json bin on the user system command line
  • They can install it as a dev dependency and use scripts option in package.json to drive it e.g. :
"scripts": {
    "build": "alm -p ./src"
},

🌹

@tolemac
Copy link
Contributor

tolemac commented Jan 15, 2016

Done.

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

3 participants