Commit graph

140 commits

Author SHA1 Message Date
Zach Daniel
08a86b9400 fix: don't hardcode Spark.Formatter plugin 2024-09-09 08:17:05 -04:00
Zach Daniel
9ae006e570 improvement: when replacing a dependency, leave it in the same location 2024-09-08 08:01:40 -04:00
Zach Daniel
6831c4e7f9 improvement: add igniter.update_gettext
This showcases how easy it is to write a source code patcher,
and also acts as a useful little tool for phoenix users.
2024-09-07 22:32:57 -04:00
Zach Daniel
13f7327e4b chore: fix hardcoded :prod values
Some checks failed
CI / ash-ci (push) Has been cancelled
2024-09-06 15:52:19 -04:00
Zach Daniel
916d45e443 improvement: add configure_runtime_env codemod 2024-09-06 14:58:06 -04:00
Zach Daniel
44cf2acb40 improvement: remove dependencies that aren't strictly necessary
Some checks are pending
CI / ash-ci (push) Waiting to run
2024-09-04 13:53:17 -04:00
Zach Daniel
077f8517db fix: detect equal lists for node equality 2024-08-26 16:53:48 -04:00
Zach Daniel
a5bdf2b7a0 fix: properly move to arguments of Module.fun calls
improvement: add `Igniter.Code.Common.expand_literal/1`
2024-08-26 16:48:03 -04:00
Zach Daniel
4d80d01be5 chore: fix build and add web_module/0
Some checks failed
CI / ash-ci (push) Has been cancelled
2024-08-21 12:07:59 -04:00
Zach Daniel
33aa23c6e0 improvement: add options to control behavior when creating a file that already exists
chore: update apps for dialyzer
2024-08-20 15:11:08 -04:00
Zach Daniel
f39ca441b5 improvement: add copy_template/4 2024-08-20 14:32:02 -04:00
Zach Daniel
5bf53c8c07 fix: ensure no timeout on task async streams 2024-08-19 11:10:05 -04:00
Zach Daniel
6a86e2d5f6 fix: don't hardcode Foo.Supervisor 🤦
Some checks failed
CI / ash-ci (push) Has been cancelled
fixes #78
2024-08-13 19:14:30 -04:00
Zach Daniel
927f0d4ae3 docs: update docs on source code vs values 2024-08-13 16:09:52 -04:00
Zach Daniel
14552bcef9 fix: properly handle values vs code in configure 2024-08-13 16:07:52 -04:00
Zach Daniel
db4d646561 chore: fix warning
Some checks failed
CI / ash-ci (push) Has been cancelled
2024-08-09 16:03:27 -04:00
Zach Daniel
1e1359e255 fix: fix and test keyword setting on empty list 2024-08-08 10:53:58 -04:00
Zach Daniel
e776b2cb7d chore: address warnings
Some checks are pending
CI / ash-ci (push) Waiting to run
2024-08-08 00:16:58 -04:00
Mayel de Borniol
f356cce3a4
improvement: support for non-elixir files with create_new_file, update_file, include_existing_file, include_or_create_file, create_or_update_file (#75)
Some checks failed
CI / ash-ci (push) Has been cancelled
2024-08-05 21:50:18 -04:00
Zach Daniel
810c42160a fix: don't warn on Macro.Env.expand_alias/3 not being defined
Some checks are pending
CI / ash-ci (push) Waiting to run
closes #73
2024-08-04 23:33:06 -04:00
Zach Daniel
853f27532c fix: descend into single child block when modifying keyword
fix: set `format: :keyword` when adding keyword list item to empty list
2024-08-04 23:28:51 -04:00
Zach Daniel
79ae2d653b
Revert "fix: escape injected code in Common.replace_code/2 (#70)" (#72)
This reverts commit bba8d5238e.
2024-08-04 22:43:27 -04:00
Igor Barakaiev
bba8d5238e
fix: escape injected code in Common.replace_code/2 (#70) 2024-08-04 22:42:14 -04:00
Zach Daniel
2733449bf8
Fix move to single child block (#69)
Some checks are pending
CI / ash-ci (push) Waiting to run
* fix: check for extendable_block? in maybe_move_to_single_child_block/1

* fix: properly compare values that live in blocks

---------

Co-authored-by: Igor Barakaiev <ibarakaiev@gmail.com>
2024-08-03 19:16:27 -04:00
Zach Daniel
49d6725c83 chore: undo some changes to remove_keyword_key
Some checks are pending
CI / ash-ci (push) Waiting to run
2024-08-03 18:59:24 -04:00
Igor Barakaiev
e860b1f9d3
fix: :error consistency in remove_keyword_key and argument_equals? in Config.configure (#68) 2024-08-03 18:50:44 -04:00
Igor Barakaiev
fa5f849928
improvement: support "notices" (#65) 2024-08-03 17:52:09 -04:00
Zach Daniel
c769fe15ae improvement: add create_module utility
fix: loadpaths after compiling deps
2024-07-31 18:29:11 -04:00
Zach Daniel
1106f572bb fix: remove force?: true from dep installation
fix: better handling of positional args in igniter.new
2024-07-31 14:48:34 -04:00
Zach Daniel
7ef6465da5 fix: detect more function call formats
fix: properly extract arguments when parsing positional args
2024-07-30 15:30:29 -04:00
Zach Daniel
643813b120 fix: force compile dependencies to avoid strange compiler issues 2024-07-30 11:20:21 -04:00
Zach Daniel
50827595a3 improvement: add Igniter.Libs.Phoenix.endpoints_for_router/2 2024-07-30 07:41:51 -04:00
Zach Daniel
c52b226a1c improvement: clean up dependency compiling logic
fix: ensure igniter is compiled first
fix: fetch deps after adding any nested installers
improvement: optimize module finding w/ async_stream
fix: various fixes & improvements to positional argument listing
improvement: add `rest: true` option for positional args
2024-07-27 16:57:10 -04:00
Zach Daniel
29e492002a improvement: add positional_args!/1 macro for use in tasks
fix: recompile igniter in `ingiter.install`
2024-07-26 13:31:17 -04:00
Zach Daniel
3fe4d9c34a improvement: better output on missing installers & already present dep
closes #58
2024-07-25 09:20:38 -04:00
Zach Daniel
bfe50c6cac fix: use length of path for insertion point, instead of node equality 2024-07-22 13:59:32 -04:00
Zach Daniel
5fd15d0311 improvement: better map key setting
improvement: detect strings as non extendable blocks
improvement: add option to ignore already present phoenix scopes
2024-07-19 17:27:09 -04:00
Zach Daniel
df67d92eeb fix: improve add_code by modifying the supertree 2024-07-19 15:07:19 -04:00
Zach Daniel
bff6275c24 fix: properly scope configuration modification code
fix: properly add blocks of code together
2024-07-19 12:33:07 -04:00
Zach Daniel
e2a24475b1 improvement: add blocks together more fluidly in add_code 2024-07-19 10:36:02 -04:00
Zach Daniel
a234998886 fix: properly move to pattern matches in scope 2024-07-19 10:28:36 -04:00
Igor Barakaiev
8f9a94c449
fix: configures?/3 -> configures_key & configures_root_key (#54) 2024-07-19 08:54:41 -04:00
Igor Barakaiev
61e75fe2e3
improvement: include config in include_all_elixir_files (#55)
Some checks are pending
CI / ash-ci (push) Waiting to run
2024-07-18 16:39:03 -04:00
Igor Barakaiev
ca9ece1316
improvement: add Function.argument_equals?/3 (#53)
* improvement: add Function.argument_equals?/3

* add @doc and @spec

* return false when zipper is not a function call

Co-authored-by: Zach Daniel <zachary.s.daniel@gmail.com>

---------

Co-authored-by: Zach Daniel <zachary.s.daniel@gmail.com>
2024-07-18 13:34:31 -04:00
Zach Daniel
eaa1a779e0 improvement: fix function typespecs & add inflex dependency 2024-07-18 11:39:47 -04:00
Igor Barakaiev
d01cf95456
improvement: only show executed installers (#50)
Some checks are pending
CI / ash-ci (push) Waiting to run
2024-07-17 14:33:48 -04:00
Igor Barakaiev
ba8d2ff5f9
improvement: support tuple dependencies in igniter.install (#49) 2024-07-17 12:03:23 -04:00
Igor Barakaiev
2a96a8ae87
chore: remove :kind from docs (#48)
Some checks are pending
CI / ash-ci (push) Waiting to run
Seems like we forgot to remove `:kind` from the documentation for `find_and_update_or_create_module/5` when we went with the `:path` option only.
2024-07-16 15:37:30 -04:00
Zach Daniel
9eb5c52fc6 chore: get build passing 2024-07-15 21:11:58 -04:00
Zach Daniel
9210907a3b fix: when adding code to surrounding block, don't go up multiple blocks 2024-07-15 21:05:39 -04:00