-
Notifications
You must be signed in to change notification settings - Fork 1
Development
To work on a subcomponent that is copied into node_modules, you can use sm edit
.
For instance, to work on ACE, run the following from the checkout root:
sm edit ace
This is somewhat equivalent to npm link
but instead of linking to a system wide
shared package it clones the source into the node_modules/ directory.
The idea is to only "edit" when you need to make changes and when done issue
"sm save " (not yet implemented) which will pull up sourcetree to commit,
push code and switch package back to read mode (frozen). The status page
sm status
shows problematic and improvement oriented action steps to improve the state of the program. These relate to git status and dependency changes that need to be made to bring the dependencies up to date and ready to publish which leads to deployment.
The line on the status page will have a (W) if it is setup for editing.
To launch Sourcetree for all dirty/ahead repositories in the dependency
tree use (need to have Sourcetree command-line tools installed (stree
)):
sm fix
The sourcemint package manager works alongside NPM so to link in a (system-wide shared) NPM package use:
rm -R node_modules/architect
npm link architect
sm
always works on your program sub-tree other than pulling things in
from the cache.
To view help info for cloud9 use:
sm help
To view usage info for sm
use:
sm -h