Commit graph

153 commits

Author SHA1 Message Date
Zach Daniel
e19952e214 chore: fix build 2024-09-09 23:21:18 -04:00
Zach Daniel
69f1193df7 fix: properly determine module placement in app tree 2024-09-09 23:18:37 -04:00
Zach Daniel
8dfc0b8654 chore: remove IO.inspect
Some checks are pending
CI / ash-ci (push) Waiting to run
2024-09-09 22:32:32 -04:00
Zach Daniel
a752bef7b2 chore: remove puts_code_at_node 2024-09-09 22:32:04 -04:00
Zach Daniel
5ddfba86a2 fix: properly extract app module from def project 2024-09-09 22:30:47 -04:00
Zach Daniel
2f3522645e fix: set only option to nil by default 2024-09-09 22:22:21 -04:00
Zach Daniel
7630b670ff improvement: support the opts being code when adding a new child to the app tree
improvement: prepend new children instead of appending them
improvement: add an `after` option to `add_new_child/3`
fix: handle some edge cases in application child adding
2024-09-09 21:39:32 -04:00
Zach Daniel
e47b32f196 improvement: better warnings on invalid patches in test 2024-09-09 20:03:48 -04:00
Zach Daniel
93917513ee chore: fix problems with mix igniter.gen.task interpolation 2024-09-09 19:30:28 -04:00
Zach Daniel
84e20aa333 improvement: check for git changes to avoid overwriting unsaved changes 2024-09-09 19:22:15 -04:00
Zach Daniel
7ae225eee4 improvement: add mix igniter.gen.task to quickly generate a full task
improvement: properly find the default location for mix task modules
2024-09-09 19:06:00 -04:00
Zach Daniel
d9d31e3c04 improvement: add --only option, and only key in Igniter.Mix.Task.Info
closes #61
2024-09-09 17:17:05 -04:00
Zach Daniel
47e931207e improvement: add Igniter.Test with helpers for writing tests
Some checks are pending
CI / ash-ci (push) Waiting to run
improvement: extract app name and app module from mix.exs file

closes #5
2024-09-09 14:22:00 -04:00
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