├── .babelrc ├── .editorconfig ├── .gitignore ├── .npmignore ├── .travis.yml ├── Makefile ├── contributing.md ├── lib ├── api │ ├── add.js │ ├── index.js │ ├── init.js │ ├── remove.js │ └── run.js ├── helpers.js ├── index.js ├── template.js └── utils.js ├── license.md ├── package.json ├── readme.md ├── test ├── fixtures │ ├── api │ │ ├── __sprout__ │ │ │ └── .keep │ │ ├── init │ │ │ └── src │ │ │ │ ├── init.js │ │ │ │ └── root │ │ │ │ └── .keep │ │ └── run │ │ │ └── src │ │ │ ├── generators │ │ │ └── foo.js │ │ │ ├── init.js │ │ │ └── root │ │ │ └── .keep │ ├── cli │ │ ├── __sprout__ │ │ │ └── .keep │ │ ├── config │ │ │ ├── config.json │ │ │ └── src │ │ │ │ ├── init.js │ │ │ │ └── root │ │ │ │ └── foo │ │ ├── generator │ │ │ └── src │ │ │ │ ├── generators │ │ │ │ └── foo.js │ │ │ │ ├── init.js │ │ │ │ └── root │ │ │ │ └── .keep │ │ ├── init │ │ │ └── src │ │ │ │ ├── init.js │ │ │ │ └── root │ │ │ │ └── .keep │ │ ├── inquirer │ │ │ └── src │ │ │ │ ├── init.js │ │ │ │ └── root │ │ │ │ └── foo │ │ └── locals │ │ │ └── src │ │ │ ├── init.js │ │ │ └── root │ │ │ └── foo │ ├── configFile │ │ ├── notDirectory.foo │ │ ├── read │ │ │ ├── noConfig │ │ │ │ └── .keep │ │ │ └── read │ │ │ │ └── .sproutrc │ │ ├── setDefaults │ │ │ └── .keep │ │ ├── validPath │ │ │ └── .keep │ │ └── write │ │ │ └── write │ │ │ └── .keep │ ├── sprout │ │ ├── __sprout__ │ │ │ └── .keep │ │ ├── add │ │ │ └── .keep │ │ ├── init │ │ │ └── .keep │ │ ├── notDirectory.foo │ │ ├── remove │ │ │ └── .keep │ │ ├── run │ │ │ └── src │ │ │ │ ├── generators │ │ │ │ └── foo.js │ │ │ │ ├── init.js │ │ │ │ └── root │ │ │ │ └── .keep │ │ ├── templates │ │ │ ├── bar │ │ │ │ └── .keep │ │ │ └── foo │ │ │ │ └── .keep │ │ └── validPath │ │ │ └── .keep │ ├── template │ │ ├── __sprout__ │ │ │ └── .keep │ │ ├── init │ │ │ ├── after │ │ │ │ └── src │ │ │ │ │ ├── init.js │ │ │ │ │ └── root │ │ │ │ │ └── .keep │ │ │ ├── before │ │ │ │ └── src │ │ │ │ │ ├── init.js │ │ │ │ │ └── root │ │ │ │ │ └── .keep │ │ │ ├── beforeRender │ │ │ │ └── src │ │ │ │ │ ├── init.js │ │ │ │ │ └── root │ │ │ │ │ └── foo │ │ │ ├── binary │ │ │ │ └── src │ │ │ │ │ ├── init.js │ │ │ │ │ ├── logo.png │ │ │ │ │ └── root │ │ │ │ │ └── logo.png │ │ │ ├── branch │ │ │ │ └── .keep │ │ │ ├── defaults │ │ │ │ └── src │ │ │ │ │ ├── init.js │ │ │ │ │ └── root │ │ │ │ │ └── foo │ │ │ ├── defaultsLocals │ │ │ │ └── src │ │ │ │ │ ├── init.js │ │ │ │ │ ├── package.json │ │ │ │ │ └── root │ │ │ │ │ └── foo │ │ │ ├── ignore │ │ │ │ └── src │ │ │ │ │ ├── init.js │ │ │ │ │ └── root │ │ │ │ │ └── foo │ │ │ ├── ignoreOne │ │ │ │ └── src │ │ │ │ │ ├── init.js │ │ │ │ │ └── root │ │ │ │ │ └── foo │ │ │ ├── init │ │ │ │ └── .keep │ │ │ ├── initCoffee │ │ │ │ └── src │ │ │ │ │ ├── init.coffee │ │ │ │ │ └── root │ │ │ │ │ └── foo │ │ │ ├── initJs │ │ │ │ └── src │ │ │ │ │ ├── init.js │ │ │ │ │ └── root │ │ │ │ │ └── foo │ │ │ ├── initThrows │ │ │ │ └── src │ │ │ │ │ ├── init.js │ │ │ │ │ └── root │ │ │ │ │ └── .keep │ │ │ ├── invalidConfig │ │ │ │ └── src │ │ │ │ │ ├── init.js │ │ │ │ │ └── root │ │ │ │ │ └── .keep │ │ │ ├── jsonConfig │ │ │ │ ├── config.json │ │ │ │ └── src │ │ │ │ │ ├── init.js │ │ │ │ │ └── root │ │ │ │ │ └── foo │ │ │ ├── noGit │ │ │ │ └── .keep │ │ │ ├── noInit │ │ │ │ └── src │ │ │ │ │ ├── init.js │ │ │ │ │ └── root │ │ │ │ │ └── .keep │ │ │ ├── noInternet │ │ │ │ └── src │ │ │ │ │ ├── init.js │ │ │ │ │ └── root │ │ │ │ │ └── .keep │ │ │ ├── noRoot │ │ │ │ └── src │ │ │ │ │ ├── init.js │ │ │ │ │ └── root │ │ │ │ │ └── .keep │ │ │ ├── npm │ │ │ │ └── src │ │ │ │ │ ├── init.js │ │ │ │ │ ├── package.json │ │ │ │ │ └── root │ │ │ │ │ └── .jkeep │ │ │ ├── questionnaire │ │ │ │ └── src │ │ │ │ │ ├── init.js │ │ │ │ │ └── root │ │ │ │ │ └── foo │ │ │ ├── removeTarget │ │ │ │ └── index.js │ │ │ ├── tag │ │ │ │ └── .keep │ │ │ ├── tagMissing │ │ │ │ └── .keep │ │ │ ├── targetExists │ │ │ │ └── target │ │ │ │ │ └── .keep │ │ │ ├── underscoreString │ │ │ │ └── src │ │ │ │ │ ├── init.js │ │ │ │ │ └── root │ │ │ │ │ └── foo │ │ │ └── yamlConfig │ │ │ │ ├── config.yaml │ │ │ │ └── src │ │ │ │ ├── init.js │ │ │ │ └── root │ │ │ │ └── foo │ │ ├── run │ │ │ ├── arguments │ │ │ │ └── src │ │ │ │ │ ├── generators │ │ │ │ │ └── foo.js │ │ │ │ │ ├── init.js │ │ │ │ │ └── root │ │ │ │ │ └── .keep │ │ │ ├── generatorCoffee │ │ │ │ └── src │ │ │ │ │ ├── generators │ │ │ │ │ └── foo.coffee │ │ │ │ │ ├── init.js │ │ │ │ │ └── root │ │ │ │ │ └── .keep │ │ │ ├── generatorJs │ │ │ │ └── src │ │ │ │ │ ├── generators │ │ │ │ │ └── foo.js │ │ │ │ │ ├── init.js │ │ │ │ │ └── root │ │ │ │ │ └── .keep │ │ │ ├── generatorMissing │ │ │ │ └── src │ │ │ │ │ ├── generators │ │ │ │ │ └── foo.js │ │ │ │ │ ├── init.js │ │ │ │ │ └── root │ │ │ │ │ └── .keep │ │ │ ├── noGenerator │ │ │ │ └── src │ │ │ │ │ ├── generators │ │ │ │ │ └── .keep │ │ │ │ │ ├── init.js │ │ │ │ │ └── root │ │ │ │ │ └── .keep │ │ │ ├── noTarget │ │ │ │ └── src │ │ │ │ │ ├── generators │ │ │ │ │ └── foo.js │ │ │ │ │ ├── init.js │ │ │ │ │ └── root │ │ │ │ │ └── .keep │ │ │ ├── requireError │ │ │ │ └── src │ │ │ │ │ ├── generators │ │ │ │ │ └── foo.js │ │ │ │ │ ├── init.js │ │ │ │ │ └── root │ │ │ │ │ └── .keep │ │ │ ├── run │ │ │ │ └── src │ │ │ │ │ ├── generators │ │ │ │ │ └── foo.js │ │ │ │ │ ├── init.js │ │ │ │ │ └── root │ │ │ │ │ └── .keep │ │ │ ├── targetMissing │ │ │ │ └── src │ │ │ │ │ ├── generators │ │ │ │ │ └── foo.js │ │ │ │ │ ├── init.js │ │ │ │ │ └── root │ │ │ │ │ └── .keep │ │ │ └── undefinedArguments │ │ │ │ └── src │ │ │ │ ├── generators │ │ │ │ └── foo.js │ │ │ │ ├── init.js │ │ │ │ └── root │ │ │ │ └── .keep │ │ ├── save │ │ │ ├── local │ │ │ │ ├── init.js │ │ │ │ └── root │ │ │ │ │ └── .keep │ │ │ ├── noGit │ │ │ │ ├── init.js │ │ │ │ └── root │ │ │ │ │ └── .keep │ │ │ ├── noInit │ │ │ │ └── root │ │ │ │ │ └── .keep │ │ │ ├── noRoot │ │ │ │ └── init.js │ │ │ └── replace │ │ │ │ ├── init.js │ │ │ │ └── root │ │ │ │ └── .keep │ │ └── update │ │ │ └── noGit │ │ │ ├── init.js │ │ │ └── root │ │ │ └── .keep │ └── utils │ │ ├── copy │ │ └── base │ │ │ └── foo │ │ ├── src │ │ ├── path │ │ │ └── .keep │ │ └── read │ │ │ └── foo │ │ └── target │ │ ├── copy │ │ └── foo │ │ ├── exec │ │ └── foo │ │ ├── execRelative │ │ └── bar │ │ │ └── foo │ │ ├── path │ │ └── .keep │ │ ├── read │ │ └── foo │ │ ├── remove │ │ └── foo │ │ ├── removeArray │ │ ├── bar │ │ └── foo │ │ ├── rename │ │ └── foo │ │ ├── write │ │ └── .keep │ │ ├── writeLocals │ │ └── .keep │ │ ├── writeRecursive │ │ └── .keep │ │ └── writeRecursiveExists │ │ └── nested │ │ └── .gitkeep ├── mocha.opts └── test.js └── yarn.lock /.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "presets": ["es2015", "stage-2"] 3 | } 4 | -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carrot/sprout/HEAD/.editorconfig -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carrot/sprout/HEAD/.gitignore -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carrot/sprout/HEAD/.npmignore -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carrot/sprout/HEAD/.travis.yml -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carrot/sprout/HEAD/Makefile -------------------------------------------------------------------------------- /contributing.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carrot/sprout/HEAD/contributing.md -------------------------------------------------------------------------------- /lib/api/add.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carrot/sprout/HEAD/lib/api/add.js -------------------------------------------------------------------------------- /lib/api/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carrot/sprout/HEAD/lib/api/index.js -------------------------------------------------------------------------------- /lib/api/init.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carrot/sprout/HEAD/lib/api/init.js -------------------------------------------------------------------------------- /lib/api/remove.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carrot/sprout/HEAD/lib/api/remove.js -------------------------------------------------------------------------------- /lib/api/run.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carrot/sprout/HEAD/lib/api/run.js -------------------------------------------------------------------------------- /lib/helpers.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carrot/sprout/HEAD/lib/helpers.js -------------------------------------------------------------------------------- /lib/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carrot/sprout/HEAD/lib/index.js -------------------------------------------------------------------------------- /lib/template.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carrot/sprout/HEAD/lib/template.js -------------------------------------------------------------------------------- /lib/utils.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carrot/sprout/HEAD/lib/utils.js -------------------------------------------------------------------------------- /license.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carrot/sprout/HEAD/license.md -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carrot/sprout/HEAD/package.json -------------------------------------------------------------------------------- /readme.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carrot/sprout/HEAD/readme.md -------------------------------------------------------------------------------- /test/fixtures/api/__sprout__/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/api/init/src/init.js: -------------------------------------------------------------------------------- 1 | module.exports = {}; 2 | -------------------------------------------------------------------------------- /test/fixtures/api/init/src/root/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/api/run/src/generators/foo.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carrot/sprout/HEAD/test/fixtures/api/run/src/generators/foo.js -------------------------------------------------------------------------------- /test/fixtures/api/run/src/init.js: -------------------------------------------------------------------------------- 1 | module.exports = {}; 2 | -------------------------------------------------------------------------------- /test/fixtures/api/run/src/root/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/cli/__sprout__/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/cli/config/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "foo": "bar" 3 | } 4 | -------------------------------------------------------------------------------- /test/fixtures/cli/config/src/init.js: -------------------------------------------------------------------------------- 1 | module.exports = {}; 2 | -------------------------------------------------------------------------------- /test/fixtures/cli/config/src/root/foo: -------------------------------------------------------------------------------- 1 | <%= foo %> 2 | -------------------------------------------------------------------------------- /test/fixtures/cli/generator/src/generators/foo.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carrot/sprout/HEAD/test/fixtures/cli/generator/src/generators/foo.js -------------------------------------------------------------------------------- /test/fixtures/cli/generator/src/init.js: -------------------------------------------------------------------------------- 1 | module.exports = {}; 2 | -------------------------------------------------------------------------------- /test/fixtures/cli/generator/src/root/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/cli/init/src/init.js: -------------------------------------------------------------------------------- 1 | module.exports = {}; 2 | -------------------------------------------------------------------------------- /test/fixtures/cli/init/src/root/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/cli/inquirer/src/init.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carrot/sprout/HEAD/test/fixtures/cli/inquirer/src/init.js -------------------------------------------------------------------------------- /test/fixtures/cli/inquirer/src/root/foo: -------------------------------------------------------------------------------- 1 | <%= foo %> 2 | -------------------------------------------------------------------------------- /test/fixtures/cli/locals/src/init.js: -------------------------------------------------------------------------------- 1 | module.exports = {}; 2 | -------------------------------------------------------------------------------- /test/fixtures/cli/locals/src/root/foo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carrot/sprout/HEAD/test/fixtures/cli/locals/src/root/foo -------------------------------------------------------------------------------- /test/fixtures/configFile/notDirectory.foo: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/configFile/read/noConfig/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/configFile/read/read/.sproutrc: -------------------------------------------------------------------------------- 1 | {"name": "foo"} 2 | -------------------------------------------------------------------------------- /test/fixtures/configFile/setDefaults/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/configFile/validPath/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/configFile/write/write/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/sprout/__sprout__/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/sprout/add/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/sprout/init/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/sprout/notDirectory.foo: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/sprout/remove/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/sprout/run/src/generators/foo.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carrot/sprout/HEAD/test/fixtures/sprout/run/src/generators/foo.js -------------------------------------------------------------------------------- /test/fixtures/sprout/run/src/init.js: -------------------------------------------------------------------------------- 1 | module.exports = {}; 2 | -------------------------------------------------------------------------------- /test/fixtures/sprout/run/src/root/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/sprout/templates/bar/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/sprout/templates/foo/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/sprout/validPath/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/template/__sprout__/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/template/init/after/src/init.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carrot/sprout/HEAD/test/fixtures/template/init/after/src/init.js -------------------------------------------------------------------------------- /test/fixtures/template/init/after/src/root/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/template/init/before/src/init.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carrot/sprout/HEAD/test/fixtures/template/init/before/src/init.js -------------------------------------------------------------------------------- /test/fixtures/template/init/before/src/root/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/template/init/beforeRender/src/init.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carrot/sprout/HEAD/test/fixtures/template/init/beforeRender/src/init.js -------------------------------------------------------------------------------- /test/fixtures/template/init/beforeRender/src/root/foo: -------------------------------------------------------------------------------- 1 | <%= foo %> 2 | -------------------------------------------------------------------------------- /test/fixtures/template/init/binary/src/init.js: -------------------------------------------------------------------------------- 1 | module.exports = {}; 2 | -------------------------------------------------------------------------------- /test/fixtures/template/init/binary/src/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carrot/sprout/HEAD/test/fixtures/template/init/binary/src/logo.png -------------------------------------------------------------------------------- /test/fixtures/template/init/binary/src/root/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carrot/sprout/HEAD/test/fixtures/template/init/binary/src/root/logo.png -------------------------------------------------------------------------------- /test/fixtures/template/init/branch/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/template/init/defaults/src/init.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carrot/sprout/HEAD/test/fixtures/template/init/defaults/src/init.js -------------------------------------------------------------------------------- /test/fixtures/template/init/defaults/src/root/foo: -------------------------------------------------------------------------------- 1 | <%= foo %> 2 | -------------------------------------------------------------------------------- /test/fixtures/template/init/defaultsLocals/src/init.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carrot/sprout/HEAD/test/fixtures/template/init/defaultsLocals/src/init.js -------------------------------------------------------------------------------- /test/fixtures/template/init/defaultsLocals/src/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carrot/sprout/HEAD/test/fixtures/template/init/defaultsLocals/src/package.json -------------------------------------------------------------------------------- /test/fixtures/template/init/defaultsLocals/src/root/foo: -------------------------------------------------------------------------------- 1 | <%= moment('1984-12-26').get('year') %> 2 | -------------------------------------------------------------------------------- /test/fixtures/template/init/ignore/src/init.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | 3 | ignore: ['foo'] 4 | 5 | } 6 | -------------------------------------------------------------------------------- /test/fixtures/template/init/ignore/src/root/foo: -------------------------------------------------------------------------------- 1 | <%= foo %> 2 | -------------------------------------------------------------------------------- /test/fixtures/template/init/ignoreOne/src/init.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | 3 | ignore: 'foo' 4 | 5 | } 6 | -------------------------------------------------------------------------------- /test/fixtures/template/init/ignoreOne/src/root/foo: -------------------------------------------------------------------------------- 1 | <%= foo %> 2 | -------------------------------------------------------------------------------- /test/fixtures/template/init/init/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/template/init/initCoffee/src/init.coffee: -------------------------------------------------------------------------------- 1 | module.exports = 2 | defaults: 3 | foo: 'bar' 4 | -------------------------------------------------------------------------------- /test/fixtures/template/init/initCoffee/src/root/foo: -------------------------------------------------------------------------------- 1 | <%= foo %> 2 | -------------------------------------------------------------------------------- /test/fixtures/template/init/initJs/src/init.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carrot/sprout/HEAD/test/fixtures/template/init/initJs/src/init.js -------------------------------------------------------------------------------- /test/fixtures/template/init/initJs/src/root/foo: -------------------------------------------------------------------------------- 1 | <%= foo %> 2 | -------------------------------------------------------------------------------- /test/fixtures/template/init/initThrows/src/init.js: -------------------------------------------------------------------------------- 1 | require('doge'); 2 | -------------------------------------------------------------------------------- /test/fixtures/template/init/initThrows/src/root/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/template/init/invalidConfig/src/init.js: -------------------------------------------------------------------------------- 1 | module.exports = {}; 2 | -------------------------------------------------------------------------------- /test/fixtures/template/init/invalidConfig/src/root/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/template/init/jsonConfig/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "foo": "bar" 3 | } 4 | -------------------------------------------------------------------------------- /test/fixtures/template/init/jsonConfig/src/init.js: -------------------------------------------------------------------------------- 1 | module.exports = {}; 2 | -------------------------------------------------------------------------------- /test/fixtures/template/init/jsonConfig/src/root/foo: -------------------------------------------------------------------------------- 1 | <%= foo %> 2 | -------------------------------------------------------------------------------- /test/fixtures/template/init/noGit/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/template/init/noInit/src/init.js: -------------------------------------------------------------------------------- 1 | module.exports = {}; 2 | -------------------------------------------------------------------------------- /test/fixtures/template/init/noInit/src/root/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/template/init/noInternet/src/init.js: -------------------------------------------------------------------------------- 1 | module.exports = {}; 2 | -------------------------------------------------------------------------------- /test/fixtures/template/init/noInternet/src/root/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/template/init/noRoot/src/init.js: -------------------------------------------------------------------------------- 1 | module.exports = {}; 2 | -------------------------------------------------------------------------------- /test/fixtures/template/init/noRoot/src/root/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/template/init/npm/src/init.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/template/init/npm/src/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carrot/sprout/HEAD/test/fixtures/template/init/npm/src/package.json -------------------------------------------------------------------------------- /test/fixtures/template/init/npm/src/root/.jkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/template/init/questionnaire/src/init.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carrot/sprout/HEAD/test/fixtures/template/init/questionnaire/src/init.js -------------------------------------------------------------------------------- /test/fixtures/template/init/questionnaire/src/root/foo: -------------------------------------------------------------------------------- 1 | <%= foo %> 2 | -------------------------------------------------------------------------------- /test/fixtures/template/init/removeTarget/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carrot/sprout/HEAD/test/fixtures/template/init/removeTarget/index.js -------------------------------------------------------------------------------- /test/fixtures/template/init/tag/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/template/init/tagMissing/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/template/init/targetExists/target/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/template/init/underscoreString/src/init.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carrot/sprout/HEAD/test/fixtures/template/init/underscoreString/src/init.js -------------------------------------------------------------------------------- /test/fixtures/template/init/underscoreString/src/root/foo: -------------------------------------------------------------------------------- 1 | <%= S(foo).capitalize().value() %> 2 | -------------------------------------------------------------------------------- /test/fixtures/template/init/yamlConfig/config.yaml: -------------------------------------------------------------------------------- 1 | foo: 'bar' 2 | -------------------------------------------------------------------------------- /test/fixtures/template/init/yamlConfig/src/init.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/template/init/yamlConfig/src/root/foo: -------------------------------------------------------------------------------- 1 | <%= foo %> 2 | -------------------------------------------------------------------------------- /test/fixtures/template/run/arguments/src/generators/foo.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carrot/sprout/HEAD/test/fixtures/template/run/arguments/src/generators/foo.js -------------------------------------------------------------------------------- /test/fixtures/template/run/arguments/src/init.js: -------------------------------------------------------------------------------- 1 | module.exports = {}; 2 | -------------------------------------------------------------------------------- /test/fixtures/template/run/arguments/src/root/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/template/run/generatorCoffee/src/generators/foo.coffee: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carrot/sprout/HEAD/test/fixtures/template/run/generatorCoffee/src/generators/foo.coffee -------------------------------------------------------------------------------- /test/fixtures/template/run/generatorCoffee/src/init.js: -------------------------------------------------------------------------------- 1 | module.exports = {}; 2 | -------------------------------------------------------------------------------- /test/fixtures/template/run/generatorCoffee/src/root/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/template/run/generatorJs/src/generators/foo.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carrot/sprout/HEAD/test/fixtures/template/run/generatorJs/src/generators/foo.js -------------------------------------------------------------------------------- /test/fixtures/template/run/generatorJs/src/init.js: -------------------------------------------------------------------------------- 1 | module.exports = {}; 2 | -------------------------------------------------------------------------------- /test/fixtures/template/run/generatorJs/src/root/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/template/run/generatorMissing/src/generators/foo.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carrot/sprout/HEAD/test/fixtures/template/run/generatorMissing/src/generators/foo.js -------------------------------------------------------------------------------- /test/fixtures/template/run/generatorMissing/src/init.js: -------------------------------------------------------------------------------- 1 | module.exports = {}; 2 | -------------------------------------------------------------------------------- /test/fixtures/template/run/generatorMissing/src/root/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/template/run/noGenerator/src/generators/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/template/run/noGenerator/src/init.js: -------------------------------------------------------------------------------- 1 | module.exports = {}; 2 | -------------------------------------------------------------------------------- /test/fixtures/template/run/noGenerator/src/root/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/template/run/noTarget/src/generators/foo.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carrot/sprout/HEAD/test/fixtures/template/run/noTarget/src/generators/foo.js -------------------------------------------------------------------------------- /test/fixtures/template/run/noTarget/src/init.js: -------------------------------------------------------------------------------- 1 | module.exports = {}; 2 | -------------------------------------------------------------------------------- /test/fixtures/template/run/noTarget/src/root/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/template/run/requireError/src/generators/foo.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carrot/sprout/HEAD/test/fixtures/template/run/requireError/src/generators/foo.js -------------------------------------------------------------------------------- /test/fixtures/template/run/requireError/src/init.js: -------------------------------------------------------------------------------- 1 | module.exports = {}; 2 | -------------------------------------------------------------------------------- /test/fixtures/template/run/requireError/src/root/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/template/run/run/src/generators/foo.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carrot/sprout/HEAD/test/fixtures/template/run/run/src/generators/foo.js -------------------------------------------------------------------------------- /test/fixtures/template/run/run/src/init.js: -------------------------------------------------------------------------------- 1 | module.exports = {}; 2 | -------------------------------------------------------------------------------- /test/fixtures/template/run/run/src/root/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/template/run/targetMissing/src/generators/foo.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carrot/sprout/HEAD/test/fixtures/template/run/targetMissing/src/generators/foo.js -------------------------------------------------------------------------------- /test/fixtures/template/run/targetMissing/src/init.js: -------------------------------------------------------------------------------- 1 | module.exports = {}; 2 | -------------------------------------------------------------------------------- /test/fixtures/template/run/targetMissing/src/root/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/template/run/undefinedArguments/src/generators/foo.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carrot/sprout/HEAD/test/fixtures/template/run/undefinedArguments/src/generators/foo.js -------------------------------------------------------------------------------- /test/fixtures/template/run/undefinedArguments/src/init.js: -------------------------------------------------------------------------------- 1 | module.exports = {}; 2 | -------------------------------------------------------------------------------- /test/fixtures/template/run/undefinedArguments/src/root/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/template/save/local/init.js: -------------------------------------------------------------------------------- 1 | module.exports = {}; 2 | -------------------------------------------------------------------------------- /test/fixtures/template/save/local/root/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/template/save/noGit/init.js: -------------------------------------------------------------------------------- 1 | module.exports = {}; 2 | -------------------------------------------------------------------------------- /test/fixtures/template/save/noGit/root/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/template/save/noInit/root/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/template/save/noRoot/init.js: -------------------------------------------------------------------------------- 1 | module.exports = {}; 2 | -------------------------------------------------------------------------------- /test/fixtures/template/save/replace/init.js: -------------------------------------------------------------------------------- 1 | module.exports = {}; 2 | -------------------------------------------------------------------------------- /test/fixtures/template/save/replace/root/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/template/update/noGit/init.js: -------------------------------------------------------------------------------- 1 | module.exports = {}; 2 | -------------------------------------------------------------------------------- /test/fixtures/template/update/noGit/root/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/utils/copy/base/foo: -------------------------------------------------------------------------------- 1 | bar 2 | -------------------------------------------------------------------------------- /test/fixtures/utils/src/path/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/utils/src/read/foo: -------------------------------------------------------------------------------- 1 | bar 2 | -------------------------------------------------------------------------------- /test/fixtures/utils/target/copy/foo: -------------------------------------------------------------------------------- 1 | bar 2 | -------------------------------------------------------------------------------- /test/fixtures/utils/target/exec/foo: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/utils/target/execRelative/bar/foo: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/utils/target/path/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/utils/target/read/foo: -------------------------------------------------------------------------------- 1 | bar 2 | -------------------------------------------------------------------------------- /test/fixtures/utils/target/remove/foo: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/utils/target/removeArray/bar: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/utils/target/removeArray/foo: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/utils/target/rename/foo: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/utils/target/write/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/utils/target/writeLocals/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/utils/target/writeRecursive/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/utils/target/writeRecursiveExists/nested/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/mocha.opts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carrot/sprout/HEAD/test/mocha.opts -------------------------------------------------------------------------------- /test/test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carrot/sprout/HEAD/test/test.js -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carrot/sprout/HEAD/yarn.lock --------------------------------------------------------------------------------