Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove default author #1

Closed
k1r0s opened this issue Feb 19, 2017 · 2 comments
Closed

Remove default author #1

k1r0s opened this issue Feb 19, 2017 · 2 comments

Comments

@k1r0s
Copy link
Contributor

k1r0s commented Feb 19, 2017

image

should be replaced by git credentials..

maybe install script by it self can retrieve git user from bash through this way:
git config user.email
git config user.name

@k1r0s k1r0s changed the title Remove default liscense Remove default author Feb 19, 2017
@alexjoverm
Copy link
Owner

alexjoverm commented Feb 19, 2017

Good point. Didn't figure this out since I haven't try it out of my git.

It should be a matter of having those files as "template files", with some kind of strings patterns (like --libraryname-- in package.json, and replace them, first trying from git config user.email|user.name and if doesn't exists, by prompt. Readme.md wouldn't be a problem, since the user must rewrite it anyway.

So, basically another step on init.js with another replace statement, between steps 3 and 4

image

PR welcome, otherwise I'll try to fix it as soon as possible :)

@alexjoverm
Copy link
Owner

@ciroreed Seems easy to get that info with https://www.npmjs.com/package/git-config

alexjoverm pushed a commit that referenced this issue Jan 6, 2018
andresmoschini pushed a commit to andresmoschini/typescript-library-starter that referenced this issue Aug 11, 2018
* Massage package.json, library.ts, library.spec.ts.
* Update gitignore, travis.yml, rollup.config, tslint.json, init.ts.
* Install codelyzer, update tslint and typescript.
* Add dummy.ts, dummy.spec.ts, person.spec.ts.
* Add launch.json, tasks.json, key bindings.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants