This extension adds the ability to right-click on a folder and build a sub-folder containing files and folders listed out in a config. This is ideal if you find yourself following a pattern like with certain component architectures.
- Create a config with an array of paths to be built
- Set the
name
option totrue
if you want to use the special stringARCHITECT_NAME
to be replaced through an input dialog - Right-click on a folder and choose
Architect
to build your paths
Options:
name
: Boolean - for string replacement in the paths. If this is set totrue
then replace part of your path withARCHITECT_NAME
.paths
: Array[String] - an array of strings representing the paths to be created.
module.exports = {
paths: [
"Component/Component.js",
"Component/index.js",
"Component/styles.js"
]
};
With name set to true
:
module.exports = {
name: true,
paths: [
"ARCHITECT_NAME/ARCHITECT_NAME.js",
"ARCHITECT_NAME/index.js",
"ARCHITECT_NAME/styles.js"
]
};
Log all issues here: https://github.com/connorholyday/architect/issues
Initial release of Architect