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

Plugin install command sugar #539

Closed
jarvisaoieong opened this issue Jun 26, 2013 · 2 comments
Closed

Plugin install command sugar #539

jarvisaoieong opened this issue Jun 26, 2013 · 2 comments

Comments

@jarvisaoieong
Copy link

I would like to have a command shortcut about the installation of plugin.

e.g.
$ docpad install --save stylus
instead of
$ npm install --save docpad-plugin-stylus

This will more user friendly.

@balupton
Copy link
Member

That's a cool idea. I wonder if we can use this to solve #489 at the same time! :)

Want to have a stab at doing this? Happy to help out.

Todo would be:

  • add install action to docpad.coffee
  • add install action to cli interface
  • check existence of node_modules, create if missing, we can use balUtil.ensurePath or safefs.ensurePath (forgot which one it is)
  • use safeps for installing

balupton added a commit that referenced this issue Jun 28, 2013
- v6.43.0 June 29, 2013
	- Huge improvements to the skeleton install process
		- Install process is much more reliable
		- Skeleton dependencies will now install correctly if `node_modules`
already exists
		- Missing module errors when doing an initial clone of a skeleton
should now be fixed
		- Removed the unused and non-working `-s, --skeleton` option
	- Activities that wait on remote activity will now output a please
wait message
	- You can now install plugins via the `docpad install [pluginName]`
command
		- Thanks to [Jarvis Ao Ieong](https://github.com/kinua) for [issue
#539](#539)
	- Installing dependencies via the `docpad install` command now works
again
	- The `-f, --force` flag now works as expected (enabling the npm
`--force` flag)
	- Fixed an issues with arrays not being derefenced correctly in
configuration
		- This fixes initial run issues with skeletons that have custom file
structures
	- Added `--offline` flag that will help docpad run without an internet
connection
	- Added an interval timer to load, contextualize, render, and write
actions to determine what files we are waiting on
	- Dependency upgrades
@balupton
Copy link
Member

Added to v6.43 :)

balupton added a commit that referenced this issue Oct 23, 2013
- v6.43.0 June 29, 2013
	- Huge improvements to the skeleton install process
		- Install process is much more reliable
		- Skeleton dependencies will now install correctly if `node_modules`
already exists
		- Missing module errors when doing an initial clone of a skeleton
should now be fixed
		- Removed the unused and non-working `-s, --skeleton` option
	- Activities that wait on remote activity will now output a please
wait message
	- You can now install plugins via the `docpad install [pluginName]`
command
		- Thanks to [Jarvis Ao Ieong](https://github.com/kinua) for [issue
#539](#539)
	- Installing dependencies via the `docpad install` command now works
again
	- The `-f, --force` flag now works as expected (enabling the npm
`--force` flag)
	- Fixed an issues with arrays not being derefenced correctly in
configuration
		- This fixes initial run issues with skeletons that have custom file
structures
	- Added `--offline` flag that will help docpad run without an internet
connection
	- Added an interval timer to load, contextualize, render, and write
actions to determine what files we are waiting on
	- Dependency upgrades
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

2 participants