sprockets
https://github.com/rails/sprockets
Ruby
Rack-based asset packaging system
Sprockets::Npm#read_package_directives
Internal: Read package.json's main and style directives. dirname - String path to component directory. filename - String path to package.json. Returns nothing.
Edit
git clone [email protected]:rails/sprockets.git
cd sprockets
open lib/sprockets/npm.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Sprockets--Npm-read_package_directives-for-pr
# Commit to gitgit add lib/sprockets/npm.rbgit commit -m "better docs for Sprockets::Npm#read_package_directives"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Sprockets--Npm-read_package_directives-for-pr
hub pull-request
# Celebrate!