Manage current working project's stack
install
$ npm install angelscripts-stack-use
Applies stack upgrade within cwd
.
$ angel stack use {remote} {updatePath} {branch}
arguments
remote
- optional, git repo url or name of stack upgradeupdatePath
- relative path to eitherremote
or current working directorybranch
- optional, used with gitremote
to specify remote's source code branch
- read
upgrade.json
(upgrade
) from stack upgrade root folder (stackRootFolder
)
upgrade.main
- pointer to relative directory containing the upgrade files, default''
upgrade.name
- name of the upgradeupgrade.version
- version of the upgradeupgrade.dependencies
- key value pairs ofname: version
upgrade.peerUpgrades
- key value pairs ofname: relativePath
upgrade.depencencies
should be present as key instack-upgrades
withinpackage.json
- apply stack upgrade - copy recursively all files from
stackRootFolder + upgrade.main
where:
.json
files are deep merged.gitignore
files are rewritten only with the unique lines- any other file is overridden
- apply stack upgrade peers - use the same method as within step 3) for every
upgrade.peerUpgrades
match towardsstack-upgrades
hash frompackage.json
- store within
package.json
'sstack-upgrades
hash the applied upgrade{name: version}
List available stack upgrades within cwd
.
$ angel stack list
Prompt once for unique {{{placeholders}}}
within files at cwd
and replace them with provided values.
$ angel stack configure
- create a standard
npm package
asmy-stack-upgrade
- place
upgrade.json
there - have fun &&
$ mkdir ../my-upgraded-app && cd ../my-upgraded-app && angel stack use ../my-stack-upgrade