1
0
Fork 0

feat(scripts): copy some files into new projects only once

This commit is contained in:
ssube 2019-09-21 04:38:46 -05:00 committed by Sean Sube
parent 02b56c973c
commit aae0412bf6
3 changed files with 23 additions and 2 deletions

View File

@ -1,3 +1,15 @@
docs/api/
CHANGELOG.md
config/rollup-named.json
Dockerfile
docs/api/index.md
docs/api/rollup-template.md
LICENSE.md
package.json
README.md
scripts/project-create.sh
scripts/project-exclude
scripts/project-newonly
scripts/project-update.sh
src/app.ts
test/TestApp.ts
test/TestApp.ts
yarn.lock

3
scripts/project-newonly Normal file
View File

@ -0,0 +1,3 @@
config/rollup-named.json
LICENSE.md
README.md

View File

@ -7,4 +7,10 @@ echo "Updating project: ${PROJECT_NAME}"
git ls-tree -r HEAD --name-only | rsync -avh \
--files-from=- \
--exclude-from=./scripts/project-exclude \
--exclude-from=./scripts/project-newonly \
./ "${PROJECT_NAME}"
rsync -avh \
--files-from=./scripts/project-newonly \
--ignore-existing \
./ "${PROJECT_NAME}"