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

Scripts to create/rename transforms #130

Merged
merged 1 commit into from
May 24, 2016
Merged

Scripts to create/rename transforms #130

merged 1 commit into from
May 24, 2016

Conversation

GoodForOneFare
Copy link
Member

These have made my life easier, so I thought I'd share. If they're not useful, I'll keep them in my .gitignore :)

bin/create-transform my-neato-transform - creates a transform, test file, and basic fixture files
bin/rename-transform my-neato-transform my-coolio-transform - renames the transform, test, and fixture dir

/cc @lemonmade, @Fandy

const utils = require('./transform-management-utils');

function createFileSync(filePath, content) {
const fd = fs.openSync(filePath, 'wx');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do you need to open it before writing? I always just write, am I a bad person?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's weird because I write directly to file in the rename helper. Who knows what I was thinking? Fixed now.

@lemonmade
Copy link
Member

Minor comments, thanks for the utilities :) additions to the README might be nice too, unless I just missed them.

@GoodForOneFare
Copy link
Member Author

NPM ignored, file writes fixed, README updated. Thanks, @lemonmade!

@GoodForOneFare GoodForOneFare merged commit 9c8856e into master May 24, 2016
@lemonmade lemonmade deleted the transform_cli branch June 28, 2016 16:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants