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

[fix] modernize the code #95

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

[fix] modernize the code #95

wants to merge 4 commits into from

Conversation

aminya
Copy link
Contributor

@aminya aminya commented Mar 24, 2021

This PR update the code using modern JavaScript and also fixing some of the performance issues.

The first three commits were automatic using jscodeshift, and the last one was manual.

The tests passing:

image

aminya added 4 commits March 24, 2021 06:12
```
npm install -g jscodeshift
git clone https://github.com/cpojer/js-codemod.git
```

```
jscodeshift -t js-codemod/transforms/no-vars.js .\lib\temp.js
```
```
jscodeshift -t js-codemod/transforms/template-literals.js lib
```
```
jscodeshift -t js-codemod/transforms/use-strict.js lib
```
@ghost
Copy link

ghost commented Apr 1, 2021

Reviewing this tomorrow night 🤙🏼

@aminya
Copy link
Contributor Author

aminya commented Apr 26, 2021

The changes were quite straight forward and the tests are passing. Let me know if there is a question.

@jimmywarting
Copy link

next up: use nodes built in mkdir instead of the mkdirp package

@stianjensen
Copy link

Is there any interest in getting help getting this over the finish line?

I can also help updating or removing the old dependencies on mkdirp and rimraf.

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.

3 participants