add precommit
test
reback
test scripts
set precommit task
v1.3.0, support dirs fields are optional