merchant

所属分类:collect
开发工具:Mercury
文件大小:0KB
下载次数:0
上传日期:2020-01-23 23:15:13
上 传 者sh-1993
说明:  Mercury逻辑编程语言的包管理器。,
(A package manager for the Mercury logic programming language.,)

文件列表:
client/ (0, 2020-01-23)
client/command_build.m (2932, 2020-01-23)
client/command_configure.m (2288, 2020-01-23)
client/command_deps.m (832, 2020-01-23)
client/command_init.m (773, 2020-01-23)
client/command_install.m (5101, 2020-01-23)
client/config.m (2974, 2020-01-23)
client/dependency.m (308, 2020-01-23)
client/json.char_buffer.m (7610, 2020-01-23)
client/json.json_lexer.m (35784, 2020-01-23)
client/json.json_parser.m (43410, 2020-01-23)
client/json.m (67712, 2020-01-23)
client/json.marshal.m (10004, 2020-01-23)
client/json.pointer.m (4557, 2020-01-23)
client/json.string_reader.m (7383, 2020-01-23)
client/json.unmarshal.m (43340, 2020-01-23)
client/json.writer.m (15818, 2020-01-23)
client/manifest.m (1152, 2020-01-23)
client/merchant (271940, 2020-01-23)
client/merchant.m (3243, 2020-01-23)
client/mercury_json.m (659, 2020-01-23)
client/profile.m (2883, 2020-01-23)
client/util.m (1894, 2020-01-23)
install.sh (368, 2020-01-23)
merchant-logo.png (18827, 2020-01-23)
test/ (0, 2020-01-23)
test/manifest.json (207, 2020-01-23)
test/test (164012, 2020-01-23)
test/test.m (10244, 2020-01-23)

Merchant Logo

## Merchant: A package manager for the Mercury logic programming language. Merchant is a command line tool that downloads your [Mercury](http://mercurylang.org/) project's library dependencies and compiles your project. ### Installing Merchant ```bash $ git clone https://github.com/stewy33/merchant $ sh merchant/install.sh ``` Test that Merchant is installed by running: ```bash $ merchant version ``` Create a default config: ```bash $ merchant configure --reset-config ``` This creates a platform-specific global configuration file at `~/.merchant/config.json`, like the one below: ```json { // default config file for OSX "build_profiles" : { // arguments before "--" are passed to "merchant build", everything after is passed to the mmc compiler "default" : "-- --grade none.gc.decldebug.stseg", "dev" : "-- --grade none.gc.decldebug.stseg --opt-level 0" }, "install_profiles" : { "default" : "-- --no-libgrade --libgrade none.gc.decldebug.stseg", "dev" : "-- --no-libgrade --libgrade none.gc.decldebug.stseg --opt-level 0" } } ``` The config file is editable, and sets default installation and build profiles. If you create a new build profile, called `production` for example, you could build your project with it by running: ```bash $ merchant build --profile production ``` You can use the config file to set install and build options per system. ### Using Merchant #### Basic Usage 1. Inside project folder, generate manifest file with `merchant init`. 2. Edit `manifest.json` with project name, author, dependencies. 3. After each update to `manifest.json`, run `merchant install`, and `merchant build` to compile the project. #### Example Manifest file ```json { "name": "test", // should match name of main module "author": "Stewy Slocum", "dependencies": { "mercury_json": "https://github.com/stewy33/mercury-json" } } ``` NOTE: This project has only been tested on Mac and Linux, though it will probably work on Windows with Cygwin or Ubuntu shell.

近期下载者

相关文件


收藏者