@taqueria/plugin-archetype 0.0.0-pr-1012-58aefa83 → 0.0.0-pr-852-a3ccfd4e

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 -5
  2. package/_readme.eta +37 -5
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -22,7 +22,9 @@ No additional configuration is available
22
22
 
23
23
  ## Usage
24
24
 
25
- 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
25
+ The Archetype plugin exposes a `taq 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
26
+
27
+ The Archetype plugin also exposes a contract template via the `taq create contract <contractName>` task. This task will create a new Archetype contract in the `contracts` directory, and will register the contract with Taqueria
26
28
 
27
29
  ### Running the Compile Task
28
30
 
@@ -37,16 +39,46 @@ Running the `compile` task with no options will result in all source Archetype s
37
39
 
38
40
  There are no additional options available for this plugin
39
41
 
40
- ## Plugin Architecture
42
+ ## Tasks
41
43
 
42
- This is a plugin developed for Taqueria built on NodeJS using the Taqueria Node SDK
44
+ ### The `taq compile` Task
45
+
46
+ The `compile` task is used for compiling Archetype smart contracts to Michelson and the task has the following structure:
47
+
48
+ ```shell
49
+ taq compile [contractName]
50
+ ```
51
+
52
+ The task takes a filename as an optional argument. If no filename is provided, Taqueria will compile all Archetype files in the `contracts` directory
53
+
54
+ #### Task Properties
55
+
56
+ | attribute | value |
57
+ |------------|:-----------------------------:|
58
+ | task | 'compile' |
59
+ | command | 'compile [sourceFile] |
60
+ | aliases | ['c', 'compile-archetype'] |
61
+
62
+ ### The `create contract` Template
63
+
64
+ The `create contract` task is used to create a new Archetype contract from a template. Running this task will create a new Archetype smart contract in the `contracts` directory and will register that contract with Taqueria
65
+
66
+ ```shell
67
+ taq create contract <contractName>
68
+ ```
43
69
 
44
- 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
70
+ The task takes a filename a required positional argument. The filename must end with `.arl`
45
71
 
46
- The plugin provides a single task `compile`, used for compiling Archetype smart contracts to Michelson:
72
+ #### Task Properties
47
73
 
48
74
  | attribute | value |
49
75
  |------------|:-----------------------------:|
50
76
  | task | 'compile' |
51
77
  | command | 'compile [sourceFile] |
52
78
  | aliases | ['c', 'compile-archetype'] |
79
+
80
+ ## Plugin Architecture
81
+
82
+ This is a plugin developed for Taqueria built on NodeJS using the Taqueria Node SDK
83
+
84
+ 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
package/_readme.eta CHANGED
@@ -24,7 +24,9 @@ No additional configuration is available
24
24
 
25
25
  ## Usage
26
26
 
27
- 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
27
+ The Archetype plugin exposes a `taq 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
28
+
29
+ The Archetype plugin also exposes a contract template via the `taq create contract <contractName>` task. This task will create a new Archetype contract in the `contracts` directory, and will register the contract with Taqueria
28
30
 
29
31
  ### Running the Compile Task
30
32
 
@@ -40,16 +42,46 @@ The `compile` task can be implemented by more than one compiler plugin installed
40
42
 
41
43
  There are no additional options available for this plugin
42
44
 
43
- ## Plugin Architecture
45
+ ## Tasks
44
46
 
45
- This is a plugin developed for Taqueria built on NodeJS using the Taqueria Node SDK
47
+ ### The `taq compile` Task
48
+
49
+ The `compile` task is used for compiling Archetype smart contracts to Michelson and the task has the following structure:
50
+
51
+ ```shell
52
+ taq compile [contractName]
53
+ ```
54
+
55
+ The task takes a filename as an optional argument. If no filename is provided, Taqueria will compile all Archetype files in the `contracts` directory
56
+
57
+ #### Task Properties
58
+
59
+ | attribute | value |
60
+ |------------|:-----------------------------:|
61
+ | task | 'compile' |
62
+ | command | 'compile [sourceFile] |
63
+ | aliases | ['c', 'compile-archetype'] |
64
+
65
+ ### The `create contract` Template
66
+
67
+ The `create contract` task is used to create a new Archetype contract from a template. Running this task will create a new Archetype smart contract in the `contracts` directory and will register that contract with Taqueria
68
+
69
+ ```shell
70
+ taq create contract <contractName>
71
+ ```
46
72
 
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
73
+ The task takes a filename a required positional argument. The filename must end with `.arl`
48
74
 
49
- The plugin provides a single task `compile`, used for compiling Archetype smart contracts to Michelson:
75
+ #### Task Properties
50
76
 
51
77
  | attribute | value |
52
78
  |------------|:-----------------------------:|
53
79
  | task | 'compile' |
54
80
  | command | 'compile [sourceFile] |
55
81
  | aliases | ['c', 'compile-archetype'] |
82
+
83
+ ## Plugin Architecture
84
+
85
+ This is a plugin developed for Taqueria built on NodeJS using the Taqueria Node SDK
86
+
87
+ 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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taqueria/plugin-archetype",
3
- "version": "0.0.0-pr-1012-58aefa83",
3
+ "version": "0.0.0-pr-852-a3ccfd4e",
4
4
  "description": "A taqueria plugin for compiling Archetype smart contracts",
5
5
  "targets": {
6
6
  "default": {