@taqueria/plugin-archetype 0.0.0-pr-726-e060c010 → 0.0.0-pr-575-850bfda7

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 (3) hide show
  1. package/README.md +37 -12
  2. package/_readme.eta +59 -0
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -1,30 +1,55 @@
1
- # Taqueria Archetype Plugin
1
+ # Archetype Plugin
2
2
 
3
3
  This is a plugin developed for Taqueria built on NodeJS using the Taqueria Node SDK and distributed via NPM
4
4
 
5
- The Archetype plugin exposes a compile task in Taqueria which can target one, or all the Archetype contracts in the contracts folder and compile them to Michelson code output to the artifacts folder
6
-
7
- ## Tasks
8
-
9
- The Archetype plugin provides the following tasks to Taqueria:
10
- - `compile`
5
+ The Archetype plugin provides a task to compile Archetype smart contracts (`.arl`) 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
10
+ - Docker v0.8.2 or later
16
11
 
17
12
  ## Installation
18
13
 
19
- The Archetype plugin is distributed as an NPM package that can be installed and uninstalled on a project from the Taqueria CLI
20
-
21
14
  To install the Archetype plugin on a Taqueria project, navigate to the project folder and run:
22
15
  ```shell
23
16
  taq install @taqueria/plugin-archetype
24
17
  ```
25
18
 
19
+ > ### :page_with_curl: 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
+ ## Configuration
23
+
24
+ No additional configuration is available
25
+
26
+ ## Usage
27
+
28
+ The Archetype plugin exposes a `compile` task in Taqueria which can target one, or all the Archetype 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 Archetype 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 all source Archetype smart contracts in the `contracts` folder being compiled to Michelson files in the `artifacts` folder. If you speficy an optional filename, only Archetype contracts matching the specified filename in the `contracts` folder will be compiled
35
+
36
+ > ### :warning: CAUTION
37
+ > The `compile` task can be implemented by more than one compiler plugin installed on a project (Archetype, LIGO, SmartPY). If this is the case, you must use the `--plugin Archetype` flag to specify a particular compiler. For example `taq compile --plugin archetype`
38
+
39
+ ### Options
40
+
41
+ There are no additional options available for this plugin
42
+
26
43
  ## Plugin Architecture
27
44
 
28
- This is a plugin developed for Taqueria built on NodeJS using the Taqueria Node SDK and distributed via NPM
45
+ This is a plugin developed for Taqueria built on NodeJS using the Taqueria Node SDK
46
+
47
+ Docker is used under the hood to provide a self contained environment for Archetype to prevent the need for it to be installed on the user's local machine
48
+
49
+ The plugin provides a single task `compile`, used for compiling Archetype smart contracts to Michelson:
29
50
 
30
- For detailed usage and configuration information, view the Archetype plugin documentation on the Taqueria website [here](https://taqueria.io/docs/plugins/plugin-archetype)
51
+ | attribute | value |
52
+ |------------|:-----------------------------:|
53
+ | task | 'compile' |
54
+ | command | 'compile [sourceFile] |
55
+ | aliases | ['c', 'compile-archetype'] |
package/_readme.eta ADDED
@@ -0,0 +1,59 @@
1
+ <% if (it.output == "github") { %>
2
+ # Archetype Plugin
3
+ <% } %>
4
+
5
+ This is a plugin developed for Taqueria built on NodeJS using the Taqueria Node SDK and distributed via NPM
6
+
7
+ The Archetype plugin provides a task to compile Archetype smart contracts (`.arl`) to Michelson `.tz` files
8
+
9
+ ## Requirements
10
+
11
+ - Node.js v16 or later
12
+ - Docker v0.8.2 or later
13
+
14
+ ## Installation
15
+
16
+ To install the Archetype plugin on a Taqueria project, navigate to the project folder and run:
17
+ ```shell
18
+ taq install @taqueria/plugin-archetype
19
+ ```
20
+
21
+ <%~ it.noteOpenAdmonition %>
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
+ <%~ it.closeAdmonition %>
24
+
25
+ ## Configuration
26
+
27
+ No additional configuration is available
28
+
29
+ ## Usage
30
+
31
+ The Archetype plugin exposes a `compile` task in Taqueria which can target one, or all the Archetype contracts in the `contracts` folder and compile them to Michelson `.tz` files output to the `artifacts` folder
32
+
33
+ ### Running the Compile Task
34
+
35
+ The Archetype plugin's `taq compile` task can be run with or without arguments. The basic syntax for the task is `taq compile <file-name>`
36
+
37
+ Running the `compile` task with no options will result in all source Archetype smart contracts in the `contracts` folder being compiled to Michelson files in the `artifacts` folder. If you speficy an optional filename, only Archetype contracts matching the specified filename in the `contracts` folder will be compiled
38
+
39
+ <%~ it.cautionOpenAdmonition %>
40
+ The `compile` task can be implemented by more than one compiler plugin installed on a project (Archetype, LIGO, SmartPY). If this is the case, you must use the `--plugin Archetype` flag to specify a particular compiler. For example `taq compile --plugin archetype`
41
+ <%~ it.closeAdmonition %>
42
+
43
+ ### Options
44
+
45
+ There are no additional options available for this plugin
46
+
47
+ ## Plugin Architecture
48
+
49
+ This is a plugin developed for Taqueria built on NodeJS using the Taqueria Node SDK
50
+
51
+ Docker is used under the hood to provide a self contained environment for Archetype to prevent the need for it to be installed on the user's local machine
52
+
53
+ The plugin provides a single task `compile`, used for compiling Archetype smart contracts to Michelson:
54
+
55
+ | attribute | value |
56
+ |------------|:-----------------------------:|
57
+ | task | 'compile' |
58
+ | command | 'compile [sourceFile] |
59
+ | aliases | ['c', 'compile-archetype'] |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taqueria/plugin-archetype",
3
- "version": "0.0.0-pr-726-e060c010",
3
+ "version": "0.0.0-pr-575-850bfda7",
4
4
  "description": "A taqueria plugin for compiling Archetype smart contracts",
5
5
  "targets": {
6
6
  "default": {