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

split codemod into two packages. #75

Open
wants to merge 22 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
28931c0
optionally interactive running of codemod
greenealexander Oct 20, 2023
e8b2c90
Merge pull request #1 from greenealexander/feat/non-interactive
greenealexander Oct 20, 2023
c8b4a71
forgot interactive flag
greenealexander Oct 20, 2023
8a0eeab
fix
greenealexander Oct 21, 2023
620c3a3
support destPaths
greenealexander Oct 22, 2023
03eb09f
split the project into two packages, codemon and codemon_core. The co…
bsutton Nov 16, 2023
af65cd2
modified run_interactive to use the new patch_generator
bsutton Nov 16, 2023
376d792
Moved the applyPatches and applyPatchesAndSave to the ChangeSet class.
bsutton Nov 17, 2023
677debe
Added a 'collision' list to the ChangeSet so you can get a list of ov…
bsutton Nov 17, 2023
dccb0f2
applied lint_hard and cleaned up the resulting lints.
bsutton Nov 17, 2023
aa27571
ignored ct tracker files.
bsutton Nov 17, 2023
e3f7fa5
code cleanup and improved examples and readme.
bsutton Nov 20, 2023
6b401cb
moved file_query_util into core as we needed access for examples.
bsutton Nov 20, 2023
1c122c6
updated the barrel file to reflect that file utils have been moved to…
bsutton Nov 20, 2023
9de60e9
Modified change_set so that it always creates the output file even if…
bsutton Nov 20, 2023
f6edd85
Added additional expectations for the named generated test and remove…
bsutton Nov 28, 2023
a085277
ignored .failed_tracker
bsutton Nov 28, 2023
2fbcf99
Released 1.0.1.
bsutton Nov 28, 2023
5e0a8d3
added a home page.
bsutton Nov 28, 2023
2d8e6cf
Released 1.0.1.
bsutton Nov 28, 2023
90b1082
changed patch generator to rethrow any selector exceptions as the cur…
bsutton Dec 1, 2023
6e1ec07
released 1.1.0
bsutton Jan 27, 2024
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
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
.dart_tool/
.idea/
.packages
pubspec.lock
pubspec.lock
.history
codemod/.failed_tracker
codemod_core/.failed_tracker
32 changes: 32 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "codemod",
"cwd": "codemod",
"request": "launch",
"type": "dart"
},
{
"name": "codemod_core",
"cwd": "codemod_core",
"request": "launch",
"type": "dart"
},
{
"name": "regex_substituter_fixtures",
"cwd": "codemod/example/regex_substituter_fixtures",
"request": "launch",
"type": "dart"
},
{
"name": "before",
"cwd": "codemod/test_fixtures/functional/before",
"request": "launch",
"type": "dart"
}
]
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
14 changes: 14 additions & 0 deletions codemod/example/regex_substituter_fixtures/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: regex_substituter_example
private: true
version: 0.0.0
description: regex example
publish_to: none

environment:
sdk: '>=3.0.0 <4.0.0'

dependencies:
codemod:
path: ../../
codemod_core:
path: ../../../codemod_core
File renamed without changes
19 changes: 10 additions & 9 deletions lib/codemod.dart → codemod/lib/codemod.dart
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,18 @@
// See the License for the specific language governing permissions and
// limitations under the License.

export 'src/aggregate.dart' show aggregate;
export 'src/ast_visiting_suggestor.dart' show AstVisitingSuggestor;
export 'src/file_context.dart' show FileContext;
export 'src/file_query_util.dart'
export 'package:codemod_core/codemod_core.dart'
show
aggregate,
AstVisitingSuggestor,
FileContext,
Patch,
Suggestor,
filePathsFromGlob,
isHiddenFile,
isNotHiddenFile,
isDartHiddenFile,
isNotDartHiddenFile;
export 'src/patch.dart' show Patch;
isHiddenFile,
isNotDartHiddenFile,
isNotHiddenFile;

export 'src/run_interactive_codemod.dart'
show runInteractiveCodemod, runInteractiveCodemodSequence;
export 'src/suggestor.dart' show Suggestor;
File renamed without changes.
Loading