@taqueria/plugin-ligo 0.0.0-pr-570-e79b8146 → 0.0.0-pr-575-b8ef4e07

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +49 -15
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -1,31 +1,65 @@
1
- # Taqueria LIGO Plugin
1
+ <!--
2
+ ---
3
+ title: LIGO Plugin
4
+ ---
5
+ -->
2
6
 
3
- This is a plugin developed for Taqueria built on NodeJS using the Taqueria Node SDK and distributed via NPM
4
-
5
- The LIGO plugin exposes a compile task in Taqueria which can target one, or all the LIGO contracts in the contracts folder and compile them to Michelson code output to the artifacts folder
6
-
7
- ## Tasks
8
-
9
- The LIGO plugin provides the following tasks to Taqueria:
10
- - `compile`
7
+ The LIGO plugin provides a task to compile LIGO smart contracts to Michelson `.tz` files
11
8
 
12
9
  ## Requirements
13
10
 
14
- - Taqueria v0.0.6 or later
15
11
  - Node.js v16 or later
16
- - Docker v0.8.4 or later
12
+ - Docker v0.8.2 or later
17
13
 
18
14
  ## Installation
19
15
 
20
- The LIGO plugin is distributed as an NPM package that can be installed and uninstalled on a project from the Taqueria CLI
21
-
22
16
  To install the LIGO plugin on a Taqueria project, navigate to the project folder and run:
23
17
  ```shell
24
18
  taq install @taqueria/plugin-ligo
25
19
  ```
26
20
 
21
+ :::note
22
+ At this time, all Taqueria projects must also be initialized as node projects by running `npm init -y` from the root of your project directory
23
+ :::
24
+
25
+ ## Configuration
26
+
27
+ No additional configuration is available
28
+ ## Usage
29
+
30
+ The LIGO plugin exposes a `compile` task in Taqueria which can target one, or all the LIGO contracts in the `contracts` folder and compile them to Michelson `.tz` files output to the `artifacts` folder
31
+
32
+ ### Running the Compile Task
33
+
34
+ The LIGO plugin's `taq compile` task can be run with or without arguments. The basic syntax for the task is `taq compile <file-name>`
35
+
36
+ Running the `compile` task with no options will result in any source LIGO smart contracts in the `contracts` folder being compiled to Michelson files in the `artifacts` folder. If you speficy an optional filename, only LIGO contracts matching the specified filename in the `contracts` folder will be compiled
37
+
38
+ :::caution
39
+ The `compile` task can be implemented by more than one compiler plugin installed on a project (LIGO, SmartPY). If this is the case, you must use the `--plugin ligo` flag to specify a particular compiler
40
+ :::
41
+
42
+ ### Options
43
+
44
+ The LIGO `compile` task will accept the following optional parameters:
45
+
46
+ | flag | name | description |
47
+ |:-----:|:------------|---------------------------------------|
48
+ | -e | entry-point | The entry point that will be compiled |
49
+ | -s | syntax | The syntax used in the contract |
50
+ | -i | infer | Enable type inference |
51
+
52
+
27
53
  ## Plugin Architecture
28
54
 
29
- This is a plugin developed for Taqueria built on NodeJS using the Taqueria Node SDK and distributed via NPM
55
+ This is a plugin developed for Taqueria built on NodeJS using the Taqueria Node SDK
56
+
57
+ Docker is used under the hood to provide a self contained environment for LIGO to prevent the need for it to be installed on the user's local machine
58
+
59
+ The plugin provides a single task `compile`, used for compiling LIGO smart contracts to Michelson:
30
60
 
31
- For detailed usage and configuration information, view the LIGO plugin documentation on the Taqueria website [here](https://taqueria.io/docs/plugins/plugin-ligo)
61
+ | attribute | value |
62
+ |------------|:------------------------:|
63
+ | task | 'compile' |
64
+ | command | 'compile [sourceFile] |
65
+ | aliases | ['c', 'compile-ligo'] |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taqueria/plugin-ligo",
3
- "version": "0.0.0-pr-570-e79b8146",
3
+ "version": "0.0.0-pr-575-b8ef4e07",
4
4
  "description": "A taqueria plugin for compiling LIGO smart contracts",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1",