Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Ability to use npm pkgs / what is the package.json for? #1

Closed
jameswomack opened this issue Aug 9, 2016 · 4 comments
Closed

Ability to use npm pkgs / what is the package.json for? #1

jameswomack opened this issue Aug 9, 2016 · 4 comments

Comments

@jameswomack
Copy link

Hey there! I'm already diggin' this tool:
f james/twitter/hello sausage bacon eggs

When I saw package.json I thought I might be able to install packages from there by putting them in package.json, but that doesn't appear to be the case. If not, what should I be using package.json for?

@keithwhor
Copy link
Contributor

keithwhor commented Aug 9, 2016

Just the name right now. package.json will be for node_modules soon, the functionality isn't ready quite yet. Put on ETA on early next week.

It'll also be for documentation of the function, keywords, permissions, security, etc.

@oculus42
Copy link

Should all those things be overloaded into the existing idea of package.json? Perhaps something like function.json would be an appropriate choice for permissions, security, etc on the FaaS platform.

@keithwhor
Copy link
Contributor

Perhaps. I don't mind overloading package.json, personally, since we'll need to use shared features anyway. The less files a developer has to manage, the better.

@keithwhor
Copy link
Contributor

npm packages are now available by setting node_modules in package.json the same way you would normally.

note there are limitations: all functions within a namespace share dependencies, so they must all be versioned identically when sharing packages (you'll get an error if they're not), and there's a maximum limit of 5MB for total dependencies size within a namespace.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants