@taqueria/plugin-ligo 0.0.0-pr-574-8d2b7f79 → 0.0.0-pr-575-e6ad876e

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 +47 -15
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -1,31 +1,63 @@
1
- # Taqueria LIGO Plugin
1
+ ---
2
+ title: LIGO Plugin
3
+ ---
2
4
 
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`
5
+ The LIGO plugin provides a task to compile LIGO smart contracts to Michelson `.tz` files
11
6
 
12
7
  ## Requirements
13
8
 
14
- - Taqueria v0.0.6 or later
15
9
  - Node.js v16 or later
16
- - Docker v0.8.4 or later
10
+ - Docker v0.8.2 or later
17
11
 
18
12
  ## Installation
19
13
 
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
14
  To install the LIGO plugin on a Taqueria project, navigate to the project folder and run:
23
15
  ```shell
24
16
  taq install @taqueria/plugin-ligo
25
17
  ```
26
18
 
19
+ :::note
20
+ 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
21
+ :::
22
+
23
+ ## Configuration
24
+
25
+ No additional configuration is available
26
+ ## Usage
27
+
28
+ 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
29
+
30
+ ### Running the Compile Task
31
+
32
+ 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>`
33
+
34
+ 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
35
+
36
+ :::caution
37
+ 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
38
+ :::
39
+
40
+ ### Options
41
+
42
+ The LIGO `compile` task will accept the following optional parameters:
43
+
44
+ | flag | name | description |
45
+ |:-----:|:------------|---------------------------------------|
46
+ | -e | entry-point | The entry point that will be compiled |
47
+ | -s | syntax | The syntax used in the contract |
48
+ | -i | infer | Enable type inference |
49
+
50
+
27
51
  ## Plugin Architecture
28
52
 
29
- This is a plugin developed for Taqueria built on NodeJS using the Taqueria Node SDK and distributed via NPM
53
+ This is a plugin developed for Taqueria built on NodeJS using the Taqueria Node SDK
54
+
55
+ 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
56
+
57
+ The plugin provides a single task `compile`, used for compiling LIGO smart contracts to Michelson:
30
58
 
31
- For detailed usage and configuration information, view the LIGO plugin documentation on the Taqueria website [here](https://taqueria.io/docs/plugins/plugin-ligo)
59
+ | attribute | value |
60
+ |------------|:------------------------:|
61
+ | task | 'compile' |
62
+ | command | 'compile [sourceFile] |
63
+ | 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-574-8d2b7f79",
3
+ "version": "0.0.0-pr-575-e6ad876e",
4
4
  "description": "A taqueria plugin for compiling LIGO smart contracts",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1",