├── .github └── workflows │ ├── codecov.yml │ ├── pullrequest.yml │ └── release.yml ├── .gitignore ├── LICENSE ├── README.md ├── __tests__ ├── findTemplateVariables.js ├── getFilesFromDir.js ├── getUserInputMap.js ├── gitignored.js └── parseFilesForTemplateVariables.js ├── bin └── apply-template ├── example-template ├── .gitignore ├── bin │ └── bin-file └── index.js ├── jest.json ├── lib ├── findTemplateVariables.js ├── getFilesFromDir.js ├── getUserInputMap.js ├── gitignored.js └── parseFilesForTemplateVariables.js ├── package.json └── renovate.json /.github/workflows/codecov.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/patrickleet/apply-template/HEAD/.github/workflows/codecov.yml -------------------------------------------------------------------------------- /.github/workflows/pullrequest.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/patrickleet/apply-template/HEAD/.github/workflows/pullrequest.yml -------------------------------------------------------------------------------- /.github/workflows/release.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/patrickleet/apply-template/HEAD/.github/workflows/release.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/patrickleet/apply-template/HEAD/.gitignore -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/patrickleet/apply-template/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/patrickleet/apply-template/HEAD/README.md -------------------------------------------------------------------------------- /__tests__/findTemplateVariables.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/patrickleet/apply-template/HEAD/__tests__/findTemplateVariables.js -------------------------------------------------------------------------------- /__tests__/getFilesFromDir.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/patrickleet/apply-template/HEAD/__tests__/getFilesFromDir.js -------------------------------------------------------------------------------- /__tests__/getUserInputMap.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/patrickleet/apply-template/HEAD/__tests__/getUserInputMap.js -------------------------------------------------------------------------------- /__tests__/gitignored.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/patrickleet/apply-template/HEAD/__tests__/gitignored.js -------------------------------------------------------------------------------- /__tests__/parseFilesForTemplateVariables.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/patrickleet/apply-template/HEAD/__tests__/parseFilesForTemplateVariables.js -------------------------------------------------------------------------------- /bin/apply-template: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/patrickleet/apply-template/HEAD/bin/apply-template -------------------------------------------------------------------------------- /example-template/.gitignore: -------------------------------------------------------------------------------- 1 | # a comment 2 | 3 | node_modules/ 4 | .DS_Store/ 5 | *.log -------------------------------------------------------------------------------- /example-template/bin/bin-file: -------------------------------------------------------------------------------- 1 | Hey, here's a template variable {[.VAR_1.]} -------------------------------------------------------------------------------- /example-template/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/patrickleet/apply-template/HEAD/example-template/index.js -------------------------------------------------------------------------------- /jest.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/patrickleet/apply-template/HEAD/jest.json -------------------------------------------------------------------------------- /lib/findTemplateVariables.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/patrickleet/apply-template/HEAD/lib/findTemplateVariables.js -------------------------------------------------------------------------------- /lib/getFilesFromDir.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/patrickleet/apply-template/HEAD/lib/getFilesFromDir.js -------------------------------------------------------------------------------- /lib/getUserInputMap.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/patrickleet/apply-template/HEAD/lib/getUserInputMap.js -------------------------------------------------------------------------------- /lib/gitignored.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/patrickleet/apply-template/HEAD/lib/gitignored.js -------------------------------------------------------------------------------- /lib/parseFilesForTemplateVariables.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/patrickleet/apply-template/HEAD/lib/parseFilesForTemplateVariables.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/patrickleet/apply-template/HEAD/package.json -------------------------------------------------------------------------------- /renovate.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/patrickleet/apply-template/HEAD/renovate.json --------------------------------------------------------------------------------