Commit Graph
353 Commits
Author SHA1 Message Date
Yurii Rashkovskii 58ee415e63 Improve mix escript_app's documentation 2013-06-22 18:25:09 +01:00
José Valim 561397da7a Ensure escript_app doesn't break the app 2013-06-22 19:23:03 +02:00
José Valim 3d2438c625 Ensure esriptize does not try to read directories 2013-06-22 19:14:02 +02:00
José Valim cf309ede14 Add docs to Mix.Version and make version always the first arg 2013-06-22 13:43:41 +02:00
José Valim 1574f61a8b Output next steps information after creating repos, closes #1297 2013-06-20 14:04:35 +02:00
José Valim 7dc941227f Ensure escriptize is performed recursively, closes #1296 2013-06-20 13:49:30 +02:00
Tom Janssens aedc78536f Fix the rebar wrapper on windows
System.find_executable for rebar returns a rebar.cmd file, which should not
be wrapped by escript. We now have an extra check that verifies whether the
invoked file is indeed a cmd file.
2013-06-20 11:56:20 +02:00
José Valim d5a8821ec1 Merge pull request #1292 from devinus/github-git-protocol
Use the significantly faster Git protocol for github: dependencies
2013-06-19 14:47:02 -07:00
Devin Torres aa7400aaad Use the significantly faster Git protocol for github: dependencies
See: http://git-scm.com/book/ch4-1.html#The-Git-Protocol
2013-06-19 16:17:46 -05:00
José Valim c45d0f4f2f No longer support .beam files on mix local 2013-06-19 12:11:56 +02:00
José Valim 031f4e942f Get rid of unused variable warning 2013-06-18 12:20:37 +02:00
José Valim 1297fa5953 Refactoring of some mix tasks 2013-06-17 12:11:43 +02:00
Eduardo Gurgel 07cd772962 Fix rebar config scripts evaluation
Scripts are evaluated using the dependency directory as current directory

Closes #1262
2013-06-16 15:54:54 -03:00
José Valim fdd108fc43 Improve error message matching on local.uninstall with archives 2013-06-16 13:23:13 +02:00
José Valim 48b19ec580 Improve mix test to rely on possible multiple messages 2013-06-16 13:10:59 +02:00
Rafael Mendonça França 7cdc25538e Uniform use of whitespace after commas on codebase
This make easier to read and also follow some standard in the code
2013-06-15 16:52:48 -03:00
José Valim b82cd8cbd0 Update CHANGELOG 2013-06-15 19:35:59 +02:00
José Valim 9365556ea4 Rename packages to archives 2013-06-15 19:33:43 +02:00
José Valim de376663f0 Merge pull request #1223 from jeremyjh/1124-mix-local-arch
add mix package and related tasks
2013-06-15 09:34:55 -07:00
José Valim c0f7a268c7 Avoid usage of defrecordp and move all parsing to Mix.Version.Parser 2013-06-15 18:09:48 +02:00
José Valim 82cc435fd7 Merge pull request #1130 from meh/mix-version
Implement Mix.Version
2013-06-15 08:25:53 -07:00
José Valim 5a37594853 Handle --warnings-as-errors and other elixirc options in mix compile 2013-06-15 17:00:06 +02:00
Jeremy Huffman 38e63451d6 local.uninstall warn on uninstall package task 2013-06-13 21:37:34 -04:00
Jeremy Huffman 5e1366c946 changes from PR discussion
1: ensure_loaded?

3: ebin

2: assume path/ebin to be packaged

6: accept project path & assume ebin

8: include priv in archive

5: local.uninstall handles packages too

7: local.install [] will install a package

7: mix new .gitignore *.ez files
2013-06-13 21:37:34 -04:00
Jeremy Huffman 0470ebf5af implement mix package and related tasks re #1124 2013-06-13 21:37:34 -04:00
José Valim d15ad4da80 Never use the dependency rebar 2013-06-13 17:31:48 +02:00
José Valim bc0089ff42 Simplify out of date deps error message 2013-06-13 17:14:03 +02:00
José Valim d3d83b17f4 Merge pull request #1199 from alco/1148-match-tilde-op
Reimplement =~ to use Regex.match? or String.contains?
2013-06-13 06:13:32 -07:00
José Valim f552d7620f Merge pull request #1221 from alexrp/mix-local-install
Add a --force option to `mix local.install`.
2013-06-09 18:25:45 -07:00
alexrp 3167d78711 Add a --force option to mix local.install.
Useful for makefiles.
2013-06-09 23:34:54 +02:00
Eric Meadows-Jonsson 6720522707 Improve error message for diverged deps 2013-06-09 16:02:33 +02:00
meh 057691722e Implement Mix.Version, closes #1115 2013-06-09 15:36:24 +02:00
Alexei Sholik 4a1dfccbec Use =~ with strings where it makes sense 2013-06-08 15:58:34 +03:00
Eric Meadows-Jonsson 520415b013 Dont run any tasks recursively from another task
The only time a task may run recursively is after a new project has been pushed to the stack.
2013-06-07 18:10:34 +02:00
Eric Meadows-Jonsson 98ade3b8fb Convert project stack to records 2013-06-07 14:45:26 +02:00
José Valim 4f2c2ceb95 Wrap rebar command on windows inside escript.exe 2013-06-07 14:35:41 +08:00
José Valim 6004a3614f Update CHANGELOG 2013-06-05 20:11:12 +08:00
José Valim 6e959733dd Merge pull request #1186 from ericmj/mix-umbrella-deps
Add support for direct dependencies of umbrella project
2013-06-05 05:03:04 -07:00
Eric Meadows-Jonsson 7d2d352236 Add deps to 'mix new --umbrella' 2013-06-05 13:24:16 +02:00
Eric Meadows-Jonsson 9d61e5886c Add support for direct dependencies of umbrella 2013-06-05 13:20:54 +02:00
Jonathan J Hunt dd43e799c8 Added -v --version option to all elixir commands.
Fixes #1178
2013-06-04 23:01:29 -07:00
Eric Meadows-Jonsson 6d74511e92 Make rebar skip deps since mix compiles them 2013-06-04 11:45:58 +02:00
Carlos Martín Nieto 4b1ea18625 Set load paths for dependencies with Makefile
A recent update (036d016 2013-06-02; Rebar dep with no config is given
rebar as manager) introduced :make as a value for a dependency's
manager, but Mix.Deps.load_path has no function clause to handle this.

Add :make to the nil manager clause, as it seems the closest
equivalent.
2013-06-01 22:35:24 +02:00
José Valim 7cd98e149c Speed up escriptize tests 2013-06-02 00:36:02 +09:00
José Valim 036d016053 Rebar dep with no config is given rebar as manager 2013-06-02 00:35:30 +09:00
José Valim 014a2ec7a8 By default, start the application on escript 2013-06-01 08:12:47 +09:00
José Valim 7c4516f1ec Do not access another task directly, use Mix.Rebar module instead 2013-06-01 07:46:54 +09:00
Eric Meadows-Jonsson 65cc78034d Correctly add load_paths for rebar dependencies
Signed-off-by: José Valim <jose.valim@plataformatec.com.br>
2013-06-01 07:41:06 +09:00
José Valim f97a384b82 Move dependencies callbacks back into Mix.Deps.Converger
The converger is the one that knows if a dependency exists or
not and, as such, is the best one to know if a dependency callback
should be invoked or not.

This commit also normalizes some of the Retriever internal
functions, for example, now we have mix_children and rebar_children.
The goal is to extract those functions (and the ones in Mix.Deps)
one by one into a Mix.DepsManager behaviour which will be implemented
by Mix.DepsManager.Mix and Mix.DepsManager.Rebar, removing all
the conditional calls existing in the code.
2013-06-01 07:19:23 +09:00
Yurii Rashkovskii 6656f7c843 Minor indentation fix 2013-05-31 09:54:28 -07:00