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

Add a "splice into" feature for Javascript/Typescript #10

Open
wants to merge 41 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
28d81f2
Initial fork commits
ElonVolo Oct 14, 2021
a1930d0
Changes to make jest work
ElonVolo Oct 14, 2021
dc2408c
Implements https://github.com/facebook/jscodeshift/pull/455
ElonVolo Oct 14, 2021
2dc2750
Merge branch 'main' of https://github.com/ElonVolo/evcodeshift
ElonVolo Feb 13, 2022
78b55c6
Removing dependency on args being in alphabetical order.
ElonVolo Oct 25, 2021
22a19f8
Merge pull request #1 from ElonVolo/indexed_display_args
ElonVolo Feb 13, 2022
86a0a0f
Updating packages to latest versions
ElonVolo Feb 13, 2022
2e33149
Merge pull request #2 from ElonVolo/2-13-2020-package-updates
ElonVolo Feb 13, 2022
0e00500
Removing lodash dependency.
ElonVolo Feb 13, 2022
629c69d
Adding js usage to the README using `Runner.run`
abernier Oct 9, 2021
f49b12b
Merge pull request #3 from ElonVolo/Bernier-improved-js-api-docs
ElonVolo Feb 13, 2022
fd0ca25
Fixing CLI shortcut flag to respect .gitignore
ElonVolo Oct 17, 2021
581668d
Tabs to spaces in code examples for consistency
baweaver Feb 16, 2022
facc2eb
Merge pull request #4 from ElonVolo/baweaver-READMETabsToSpaces
ElonVolo Feb 17, 2022
bd1a10e
Adding debug setup for VSCode to docs
ElonVolo Feb 20, 2022
2c7009b
Merge pull request #5 from ElonVolo/VSCodeDebuggingSetupDocs
ElonVolo Feb 20, 2022
c2175d0
Bumping CHANGELOG
ElonVolo Feb 20, 2022
11cecc0
v2.2.0
ElonVolo Feb 20, 2022
6399d50
Switching to elonvolo/recast fork
ElonVolo Mar 1, 2022
71cbca7
Switch to the @putout/recast fork
ElonVolo Mar 9, 2022
c0b7973
Merge pull request #7 from ElonVolo/SwitchToPutoutRecastFork
ElonVolo Mar 10, 2022
e97c9b5
Adding ability to save actual test output
ElonVolo Feb 27, 2022
5bc20bb
Merge pull request #8 from ElonVolo/SaveUnitTestTransformedOutput
ElonVolo Mar 10, 2022
2be41d8
Bumping up version in CHANGELOG
ElonVolo Mar 10, 2022
b8a85a8
v2.3.0
ElonVolo Mar 10, 2022
f749a1c
Update README.md
ElonVolo Mar 16, 2022
7e2ae52
Update README.md
ElonVolo Mar 22, 2022
cfa289a
Update README.md
ElonVolo Mar 27, 2022
ddc8e31
Bumping up version in CHANGELOG
ElonVolo Mar 10, 2022
7a73a4b
v2.3.0
ElonVolo Mar 10, 2022
e889b12
Merge branch 'main' of https://github.com/ElonVolo/evcodeshift
ElonVolo May 5, 2022
0e08bd9
Merge remote-tracking branch 'jscodeshift/main'
ElonVolo Aug 29, 2022
5403844
Update README.md
ElonVolo Dec 9, 2022
c644e9f
Merge remote-tracking branch 'jscodeshift/main'
ElonVolo May 6, 2023
30dea02
Fixing merge error
ElonVolo May 6, 2023
0a4ab89
Merge branch 'main' of https://github.com/ElonVolo/evcodeshift
ElonVolo May 7, 2023
23571d2
(chore) Updating packages
ilanvolow May 7, 2023
60f00ed
v2.4.0
ElonVolo May 7, 2023
e0970bb
add very basic transformer for editing property value
May 23, 2023
ca8b5f2
add --edit option to cli and make it functional
May 27, 2023
a8f5332
add test cases for edit option, one each for literal, array, and object
May 28, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"semi": true,
"singleQuote": true
}
21 changes: 19 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,32 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Added `renameTo` filters for Babel 6+ node types (#412 and #504, @elonvolo and @henryqdineen)
- Added `childNodesOfType` to JSX traversal methods (#415, @j13huang)


### Changed
- Bumped dependency versions
- Allow arguments in `--help` to be listed in an order other than alphabetically, so they can instead be grouped thematically (#507, @elonvolo)
- Allow the `j` shortcut in test utils (#515, @no23reason)

## [0.13.1] 2022-01-10
## evcodeshift [2.3.0] 2022-03-09

### Added

- A `saveoutput` parameter to the defineTest() function that allows the results of the transformations to be be saved to a file so they can be more easily be inspected by a text editor or other tools.

### Changed

- Switched from `recast` to `@putout/recast` as the @coderaiser's fork seems to be more recently maintained than the `recast` upstream, and also because `@output/recast` fixed a bug introdcued by `[email protected]` where transformations that specificied single quotes where still outputting with double quotes.

## evcodeshift [2.2.0] 2022-02-19

### Added

- Added `--gitignore` flag that's a shotcut for using a project's .gitignore for ignores

### Changed

- Reworked jscodeshift.js executable to rely on items in the help section being in alphabetical order.

## [0.13.1] 2022-01-10

### Changed

Expand Down
20 changes: 6 additions & 14 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# Contributing to jscodeshift
# Contributing to evcodeshift
We want to make contributing to this project as easy and transparent as
possible.

## Code of Conduct
The code of conduct is described in [`CODE_OF_CONDUCT.md`](CODE_OF_CONDUCT.md)

## Our Development Process
The majority of development on jscodeshift will occur through GitHub. Accordingly,
The majority of development on evcodeshift will occur through GitHub. Accordingly,
the process for contributing will follow standard GitHub protocol.

## Pull Requests
Expand All @@ -19,20 +19,9 @@ We actively welcome your pull requests.
5. Make sure your code lints.
6. If you haven't already, complete the Contributor License Agreement ("CLA").

## Contributor License Agreement ("CLA")
In order to accept your pull request, we need you to submit a CLA. You only need
to do this once to work on any of Facebook's open source projects.

Complete your CLA here: <https://code.facebook.com/cla>

## Issues
We use GitHub issues to track public bugs. Please ensure your description is
clear and has sufficient instructions to be able to reproduce the issue.

Facebook has a [bounty program](https://www.facebook.com/whitehat/) for the safe
disclosure of security bugs. In those cases, please go through the process
outlined on that page and do not file a public issue.

## Coding Style
* Use semicolons;
* Commas last,
Expand All @@ -41,7 +30,10 @@ outlined on that page and do not file a public issue.
* `'use strict';`
* 80 character line length
* "Attractive"
* More lines is more better. More lines means easier to debug.
* New code should have no tail calls. The only thing "return" should ever be followed by is a variable name.
* Nesting is for the birds. New code should never have foo(bar()). mybar = bar();\nfoo(mybar);

### License

jscodeshift is [MIT licensed](./LICENSE).
evcodeshift is [MIT licensed](./LICENSE).
Loading