Closed
Description
Note sure this is the correct place to request feature.
I have been creating and working with code scaffolding for a while. I feel it would be a key important thing to keep the good practice going with the version iteration of the templates.
As a CLI,
- we should provide a way to keep the boilerplate helper file untouched and use configuration file to inject the different use case optionally. In vue cli, we have the config folder, but not all the configuration needs could be satisfied.
- we should be able to sync the boilerplate file easily. For now, in my own project, I am using following shell script file to keep me up to date with the vuejs-template/webpack.
#!/usr/bin/env bash
TMP=$(mktemp -d)
NAME=vue-template
TEMPLATE_DIR=$TMP/$NAME
(cd $TMP && vue init webpack $NAME)
clear
cd $(dirname $(npm root))
build=$(diff -Nr build/ $TEMPLATE_DIR/build)
config=$(diff -Nr config/ $TEMPLATE_DIR/config)
unit=$(diff -Nr --exclude=specs test/unit $TEMPLATE_DIR/test/unit)
e2e=$(diff -Nr --exclude=specs --exclude=html-reporter.* test/e2e $TEMPLATE_DIR/test/e2e)
echo -e "$build\n$config\n$unit\n$e2e" | vi -d -u NONE -c 'syntax on' -
- Also, as a community member, we should work on one place to iron out the requirement of the template and keep it evolving. But all good things should happen in one place in a collaborative manner.
I would like to hear other folks think about this.
Metadata
Metadata
Assignees
Labels
No labels