@grnsft/if 0.2.0 → 0.2.1

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/CONTRIBUTING.md CHANGED
@@ -72,7 +72,7 @@ feat(lib): initial commit for time-sync logic
72
72
  or
73
73
 
74
74
  ```
75
- test(teads-curve): add unit test to check that error is raised on missing tdp param
75
+ test(lib): in teads-curve add unit test to check that error is raised on missing tdp param
76
76
  ```
77
77
 
78
78
  Run `npm run fix` before commiting. If your commit message does not conform to the conventional commit specification or if you have not run `npm run fix` your commit will not satisfy the commitlint check.
@@ -133,7 +133,7 @@ Global constants can be given capitalized names, such as `TIME_UNITS_IN_SECONDS`
133
133
 
134
134
  #### Documentation
135
135
 
136
- Every logical unit (`Class, function, method`) should be covered with appropriate documentation. For documenting such, multi-line comment style is used.
136
+ Every logical unit (`function, method`) should be covered with appropriate documentation. For documenting such, multi-line comment style is used.
137
137
 
138
138
  ```ts
139
139
  ❌ const a = (message: string) => console.log(message)
@@ -145,16 +145,6 @@ Every logical unit (`Class, function, method`) should be covered with appropriat
145
145
  const logMessage = (message: string) => console.log(message)
146
146
  ```
147
147
 
148
- For documenting variable, expression, single line comments can be used after declaration.
149
-
150
- ```ts
151
- class MockClass {
152
- // this is a mock field
153
- ❌ private mockField: string = "mock-field"
154
- ✅ private mockField: string = "mock-field" // Single line documenting style is used.
155
- }
156
- ```
157
-
158
148
  ### Writing tests
159
149
 
160
150
  One test file should be responsible for one module. `describe` blocks should be used for module and function/method description. First `describe` should follow `resource/module: ` pattern. Second describe title should follow `method(): ` pattern. Test units can use `it` blocks whose title should exactly describe behaviour and input argument.
package/README.md CHANGED
@@ -61,16 +61,16 @@ Then create a `manifest` file that describes your application (see our docs for
61
61
  Then, run `if` using the following command:
62
62
 
63
63
  ```sh
64
- if --manifest <path-to-your-manifest-file>
64
+ ie --manifest <path-to-your-manifest-file>
65
65
  ```
66
66
 
67
67
  You can also add an optional savepath for your output yaml (if you do not provide one, the output will be printed to the console):
68
68
 
69
69
  ```sh
70
- if --manifest <path-to-your-manifest-file> --output <your-savepath>
70
+ ie --manifest <path-to-your-manifest-file> --output <your-savepath>
71
71
  ```
72
72
 
73
- The `if` CLI tool will configure and run the plugins defined in your input `yaml` (`manifest`) and return the results as an output `yaml` (`output`).
73
+ The `ie` CLI tool will configure and run the plugins defined in your input `yaml` (`manifest`) and return the results as an output `yaml` (`output`).
74
74
 
75
75
 
76
76
  ## Documentation
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@grnsft/if",
3
3
  "description": "Impact Framework",
4
- "version": "v0.2.0",
4
+ "version": "v0.2.1",
5
5
  "author": {
6
6
  "name": "Green Software Foundation",
7
7
  "email": "info@gsf.com"
8
8
  },
9
9
  "bin": {
10
- "if": "./build/index.js"
10
+ "ie": "./build/index.js"
11
11
  },
12
12
  "bugs": {
13
13
  "url": "https://github.com/Green-Software-Foundation/if/issues/new?assignees=&labels=feedback&projects=&template=feedback.md&title=Feedback+-+"
@@ -62,7 +62,7 @@
62
62
  "coverage": "jest --verbose --coverage",
63
63
  "fix": "gts fix",
64
64
  "fix:package": "fixpack",
65
- "if": "npx ts-node src/index.ts",
65
+ "ie": "npx ts-node src/index.ts",
66
66
  "lint": "gts lint",
67
67
  "prepare": "husky install",
68
68
  "prepublish": "npm run build",