feat: copy .editorconfig during installation

This commit is contained in:
Karl-Philipp Wulfert
2018-11-30 16:47:57 +01:00
parent 7cc274c3d5
commit f228af24f9
5 changed files with 16 additions and 3 deletions

9
scripts/postinstall.sh Executable file
View File

@@ -0,0 +1,9 @@
#!/usr/bin/env sh
if [[ ! -d "$INIT_CWD/node_modules/@openstapps/configuration/" ]]; then
exit;
fi;
echo "Copying .editorconfig from @openstapps/configuration to this project."
cp "$INIT_CWD/node_modules/@openstapps/configuration/.editorconfig" "$INIT_CWD/.editorconfig"