@taqueria/plugin-ligo 0.0.8 → 0.1.2
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.
- package/README.md +28 -2
- package/compile.js +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,5 +1,31 @@
|
|
|
1
1
|
# Taqueria LIGO Plugin
|
|
2
2
|
|
|
3
|
-
This is a plugin developed for Taqueria built on NodeJS using the Taqueria Node SDK
|
|
3
|
+
This is a plugin developed for Taqueria built on NodeJS using the Taqueria Node SDK and distributed via NPM
|
|
4
4
|
|
|
5
|
-
The plugin
|
|
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`
|
|
11
|
+
|
|
12
|
+
## Requirements
|
|
13
|
+
|
|
14
|
+
- Taqueria v0.0.6 or later
|
|
15
|
+
- Node.js v16 or later
|
|
16
|
+
- Docker v0.8.4 or later
|
|
17
|
+
|
|
18
|
+
## Installation
|
|
19
|
+
|
|
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
|
+
To install the LIGO plugin on a Taqueria project, navigate to the project folder and run:
|
|
23
|
+
```shell
|
|
24
|
+
taq install @taqueria/plugin-ligo
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
## Plugin Architecture
|
|
28
|
+
|
|
29
|
+
This is a plugin developed for Taqueria built on NodeJS using the Taqueria Node SDK and distributed via NPM
|
|
30
|
+
|
|
31
|
+
For detailed usage and configuration information, view the LIGO plugin documentation on the Taqueria website [here](https://taqueria.io/docs/plugins/plugin-ligo)
|
package/compile.js
CHANGED
|
@@ -14,7 +14,7 @@ const getInputFilename = (opts) => sourceFile => {
|
|
|
14
14
|
const getCompileCommand = (opts, _arch) => (sourceFile) => {
|
|
15
15
|
const {projectDir} = opts
|
|
16
16
|
const inputFile = getInputFilename (opts) (sourceFile)
|
|
17
|
-
const baseCommand = `docker run --rm -v \"${projectDir}\":/project -w /project ligolang/ligo:next compile contract ${inputFile}`
|
|
17
|
+
const baseCommand = `DOCKER_DEFAULT_PLATFORM=linux/amd64 docker run --rm -v \"${projectDir}\":/project -w /project ligolang/ligo:next compile contract ${inputFile}`
|
|
18
18
|
const entryPoint = opts.e ? `-e ${opts.e}` : ""
|
|
19
19
|
const syntax = opts["-s"] ? `s ${opts['s']} : ""` : ""
|
|
20
20
|
const outFile = `-o ${getContractArtifactFilename(opts)(sourceFile)}`
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@taqueria/plugin-ligo",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "A taqueria plugin for compiling LIGO smart contracts",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
@@ -34,6 +34,6 @@
|
|
|
34
34
|
"homepage": "https://github.com/ecadlabs/taqueria#readme",
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"fast-glob": "^3.2.7",
|
|
37
|
-
"@taqueria/node-sdk": "^0.
|
|
37
|
+
"@taqueria/node-sdk": "^0.1.1"
|
|
38
38
|
}
|
|
39
39
|
}
|