@raisenow/tamaro-cli 1.1.8 → 1.2.0

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 (106) hide show
  1. package/.history/.eslintignore_20220609190420 +4 -0
  2. package/.history/.eslintignore_20230911190227 +6 -0
  3. package/.history/.eslintignore_20230911211247 +7 -0
  4. package/.history/.eslintignore_20230911211250 +7 -0
  5. package/.history/.eslintrc_20230911201601.js +49 -0
  6. package/.history/.eslintrc_20230911201643.js +49 -0
  7. package/.history/.eslintrc_20230911201735.js +49 -0
  8. package/.history/.eslintrc_20230911201913.js +64 -0
  9. package/.history/.eslintrc_20230911202002.js +62 -0
  10. package/.history/.eslintrc_20230911202138.js +133 -0
  11. package/.history/.eslintrc_20230911202140.js +133 -0
  12. package/.history/.eslintrc_20230911202145.js +133 -0
  13. package/.history/.eslintrc_20230911202147.js +133 -0
  14. package/.history/.eslintrc_20230911202406.js +133 -0
  15. package/.history/.eslintrc_20230911202447.js +133 -0
  16. package/.history/.eslintrc_20230911202453.js +133 -0
  17. package/.history/.eslintrc_20230911202511.js +133 -0
  18. package/.history/.eslintrc_20230911202527.js +133 -0
  19. package/.history/.eslintrc_20230911202639.js +125 -0
  20. package/.history/.eslintrc_20230911202721.js +149 -0
  21. package/.history/.eslintrc_20230911202746.js +149 -0
  22. package/.history/.eslintrc_20240423125702.cjs +148 -0
  23. package/.history/.gitignore_20220609190420 +14 -0
  24. package/.history/.gitignore_20230911185959 +4 -0
  25. package/.history/.gitignore_20230911190006 +4 -0
  26. package/.history/.gitignore_20230911190007 +4 -0
  27. package/.history/.nmprc_20241004144025 +0 -0
  28. package/.history/.nmprc_20241004144041 +1 -0
  29. package/.history/.npmrc_20241004144040 +1 -0
  30. package/.history/.npmrc_20241004144152 +1 -0
  31. package/.history/.npmrc_20241004145639 +2 -0
  32. package/.history/.npmrc_20241004145649 +1 -0
  33. package/.history/.nvmrc_20241125012803 +1 -0
  34. package/.history/.nvmrc_20241125022800 +1 -0
  35. package/.history/.nvmrc_20241125022806 +1 -0
  36. package/.history/.prettierignore_20220609190420 +5 -0
  37. package/.history/.prettierignore_20230911190242 +7 -0
  38. package/.history/.prettierignore_20230911190245 +7 -0
  39. package/.history/.prettierignore_20230911211301 +8 -0
  40. package/.history/CHANGELOG_20250624052910.md +20 -0
  41. package/.history/CHANGELOG_20250624055058.md +23 -0
  42. package/.history/CHANGELOG_20250624055107.md +23 -0
  43. package/.history/CHANGELOG_20250624055138.md +23 -0
  44. package/.history/CHANGELOG_20250624055156.md +23 -0
  45. package/.history/CHANGELOG_20250624055200.md +23 -0
  46. package/.history/CHANGELOG_20250624055203.md +23 -0
  47. package/.history/CHANGELOG_20250625142852.md +25 -0
  48. package/.history/CHANGELOG_20250625142901.md +22 -0
  49. package/.history/CHANGELOG_20250625142902.md +22 -0
  50. package/.history/README_20230911145033.md +245 -0
  51. package/.history/README_20230911151749.md +245 -0
  52. package/.history/README_20230911151844.md +245 -0
  53. package/.history/README_20230911153040.md +245 -0
  54. package/.history/README_20230911202959.md +245 -0
  55. package/.history/cli_20241005014539 +3 -0
  56. package/.history/cli_20241005014542 +3 -0
  57. package/.history/cli_20241005014848 +3 -0
  58. package/.history/dist/chunk-FICM3HUI_20230912183408.js +302 -0
  59. package/.history/dist/chunk-FICM3HUI_20230912201610.js +302 -0
  60. package/.history/package_20241107122123.json +106 -0
  61. package/.history/package_20241107122219.json +106 -0
  62. package/.history/package_20241107124611.json +106 -0
  63. package/.history/package_20241107125521.json +106 -0
  64. package/.history/package_20241107125538.json +106 -0
  65. package/.history/package_20241125013228.json +106 -0
  66. package/.history/package_20241125013249.json +106 -0
  67. package/.history/package_20241125014402.json +105 -0
  68. package/.history/package_20241125103106.json +105 -0
  69. package/.history/tsconfig_20241005001442.json +34 -0
  70. package/.history/tsconfig_20241005001500.json +34 -0
  71. package/.history/tsconfig_20241005001540.json +34 -0
  72. package/.history/tsconfig_20241005014429.json +42 -0
  73. package/.history/tsconfig_20241005014436.json +42 -0
  74. package/.history/tsconfig_20241005014439.json +38 -0
  75. package/.history/tsconfig_20241005014455.json +38 -0
  76. package/.idea/codeStyles/Project.xml +131 -0
  77. package/.idea/codeStyles/codeStyleConfig.xml +5 -0
  78. package/.idea/inspectionProfiles/Project_Default.xml +6 -0
  79. package/.idea/misc.xml +17 -0
  80. package/.idea/modules.xml +8 -0
  81. package/.idea/prettier.xml +6 -0
  82. package/.idea/tamaro-cli.iml +12 -0
  83. package/.idea/vcs.xml +6 -0
  84. package/README.md +35 -13
  85. package/bitbucket-pipelines.yml +43 -0
  86. package/dist/cli.js +42 -1
  87. package/dist/webpack.config.js +43 -12
  88. package/package.json +5 -1
  89. package/src/cli.ts +0 -178
  90. package/src/commands/build.ts +0 -131
  91. package/src/commands/deploy-email-config.ts +0 -159
  92. package/src/commands/deploy.ts +0 -164
  93. package/src/commands/dev.ts +0 -88
  94. package/src/commands/list-deployed.ts +0 -117
  95. package/src/commands/serve.ts +0 -69
  96. package/src/lib/InterpolateHtmlPlugin.ts +0 -47
  97. package/src/lib/aws.ts +0 -138
  98. package/src/lib/command.ts +0 -27
  99. package/src/lib/constants.ts +0 -9
  100. package/src/lib/env.ts +0 -175
  101. package/src/lib/https.ts +0 -27
  102. package/src/lib/logging.ts +0 -37
  103. package/src/lib/notifier.ts +0 -22
  104. package/src/lib/resolve.ts +0 -143
  105. package/src/webpack.config.ts +0 -437
  106. /package/{tsconfig.json → .history/tsconfig_20241005014521.json} +0 -0
@@ -0,0 +1,34 @@
1
+ {
2
+ /* https://aka.ms/tsconfig.json */
3
+ "compilerOptions": {
4
+ "target": "esnext",
5
+ "module": "esnext",
6
+ "allowJs": true,
7
+ "jsx": "react",
8
+ "noEmit": true,
9
+ "isolatedModules": true,
10
+ "strict": true,
11
+ "noFallthroughCasesInSwitch": true,
12
+ "moduleResolution": "node",
13
+ "baseUrl": ".",
14
+ "paths": {
15
+ "commands/*": ["src/commands/*"],
16
+ "lib/*": ["src/lib/*"]
17
+ },
18
+ "allowSyntheticDefaultImports": true,
19
+ "esModuleInterop": true,
20
+ "skipLibCheck": true,
21
+ "forceConsistentCasingInFileNames": true,
22
+ "resolveJsonModule": true,
23
+ },
24
+ "include": [
25
+ "**/*",
26
+ ".eslintrc.cjs",
27
+ ],
28
+ "exclude": [
29
+ ".history/**/*",
30
+ ".idea/**/*",
31
+ "dist/**/*",
32
+ "node_modules/**/*",
33
+ ]
34
+ }
@@ -0,0 +1,34 @@
1
+ {
2
+ /* https://aka.ms/tsconfig.json */
3
+ "compilerOptions": {
4
+ "target": "esnext",
5
+ "module": "esnext",
6
+ "allowJs": true,
7
+ "jsx": "react",
8
+ "noEmit": true,
9
+ "isolatedModules": true,
10
+ "strict": true,
11
+ "noFallthroughCasesInSwitch": true,
12
+ "moduleResolution": "node",
13
+ "baseUrl": ".",
14
+ "paths": {
15
+ "commands/*": ["src/commands/*"],
16
+ "lib/*": ["src/lib/*"]
17
+ },
18
+ "allowSyntheticDefaultImports": true,
19
+ "esModuleInterop": true,
20
+ "skipLibCheck": true,
21
+ "forceConsistentCasingInFileNames": true,
22
+ "resolveJsonModule": true,
23
+ },
24
+ "include": [
25
+ "**/*",
26
+ ".eslintrc.cjs",
27
+ ],
28
+ "exclude": [
29
+ ".history/**/*",
30
+ ".idea/**/*",
31
+ "dist/**/*",
32
+ "node_modules/**/*",
33
+ ]
34
+ }
@@ -0,0 +1,42 @@
1
+ {
2
+ /* https://aka.ms/tsconfig.json */
3
+ "compilerOptions": {
4
+ "moduleDetection": "force",
5
+ "resolveJsonModule": true,
6
+ "allowJs": true,
7
+ "esModuleInterop": true,
8
+ "isolatedModules": true,
9
+
10
+ "noEmit": true,
11
+ "strict": true,
12
+ "noFallthroughCasesInSwitch": true,
13
+ "allowSyntheticDefaultImports": true,
14
+ "skipLibCheck": true,
15
+ "forceConsistentCasingInFileNames": true,
16
+
17
+ "target": "ESNext",
18
+ "module": "ESNext",
19
+ "moduleResolution": "node",
20
+ "jsx": "react",
21
+
22
+ "baseUrl": ".",
23
+ "paths": {
24
+ "commands/*": ["src/commands/*"],
25
+ "lib/*": ["src/lib/*"]
26
+ },
27
+
28
+
29
+
30
+
31
+ },
32
+ "include": [
33
+ "**/*",
34
+ ".eslintrc.cjs",
35
+ ],
36
+ "exclude": [
37
+ ".history/**/*",
38
+ ".idea/**/*",
39
+ "dist/**/*",
40
+ "node_modules/**/*",
41
+ ]
42
+ }
@@ -0,0 +1,42 @@
1
+ {
2
+ /* https://aka.ms/tsconfig.json */
3
+ "compilerOptions": {
4
+ "moduleDetection": "force",
5
+ "resolveJsonModule": true,
6
+ "allowJs": true,
7
+ "esModuleInterop": true,
8
+ "isolatedModules": true,
9
+
10
+ "noEmit": true,
11
+ "strict": true,
12
+ "noFallthroughCasesInSwitch": true,
13
+ "allowSyntheticDefaultImports": true,
14
+ "skipLibCheck": true,
15
+ "forceConsistentCasingInFileNames": true,
16
+
17
+ "target": "ESNext",
18
+ "module": "ESNext",
19
+ "moduleResolution": "node",
20
+ "jsx": "react",
21
+
22
+ "baseUrl": ".",
23
+ "paths": {
24
+ "commands/*": ["src/commands/*"],
25
+ "lib/*": ["src/lib/*"]
26
+ },
27
+
28
+
29
+
30
+
31
+ },
32
+ "include": [
33
+ "**/*",
34
+ ".eslintrc.cjs",
35
+ ],
36
+ "exclude": [
37
+ ".history/**/*",
38
+ ".idea/**/*",
39
+ "dist/**/*",
40
+ "node_modules/**/*",
41
+ ]
42
+ }
@@ -0,0 +1,38 @@
1
+ {
2
+ /* https://aka.ms/tsconfig.json */
3
+ "compilerOptions": {
4
+ "moduleDetection": "force",
5
+ "resolveJsonModule": true,
6
+ "allowJs": true,
7
+ "esModuleInterop": true,
8
+ "isolatedModules": true,
9
+
10
+ "noEmit": true,
11
+ "strict": true,
12
+ "noFallthroughCasesInSwitch": true,
13
+ "allowSyntheticDefaultImports": true,
14
+ "skipLibCheck": true,
15
+ "forceConsistentCasingInFileNames": true,
16
+
17
+ "target": "ESNext",
18
+ "module": "ESNext",
19
+ "moduleResolution": "node",
20
+ "jsx": "react",
21
+
22
+ "baseUrl": ".",
23
+ "paths": {
24
+ "commands/*": ["src/commands/*"],
25
+ "lib/*": ["src/lib/*"]
26
+ },
27
+ },
28
+ "include": [
29
+ "**/*",
30
+ ".eslintrc.cjs",
31
+ ],
32
+ "exclude": [
33
+ ".history/**/*",
34
+ ".idea/**/*",
35
+ "dist/**/*",
36
+ "node_modules/**/*",
37
+ ]
38
+ }
@@ -0,0 +1,38 @@
1
+ {
2
+ /* https://aka.ms/tsconfig.json */
3
+ "compilerOptions": {
4
+ "moduleDetection": "force",
5
+ "resolveJsonModule": true,
6
+ "allowJs": true,
7
+ "esModuleInterop": true,
8
+ "isolatedModules": true,
9
+
10
+ "noEmit": true,
11
+ "strict": true,
12
+ "noFallthroughCasesInSwitch": true,
13
+ "allowSyntheticDefaultImports": true,
14
+ "skipLibCheck": true,
15
+ "forceConsistentCasingInFileNames": true,
16
+
17
+ "target": "ESNext",
18
+ "module": "ESNext",
19
+ "moduleResolution": "node",
20
+ "jsx": "react",
21
+
22
+ "baseUrl": ".",
23
+ "paths": {
24
+ "commands/*": ["src/commands/*"],
25
+ "lib/*": ["src/lib/*"]
26
+ },
27
+ },
28
+ "include": [
29
+ "**/*",
30
+ ".eslintrc.cjs",
31
+ ],
32
+ "exclude": [
33
+ ".history",
34
+ ".idea",
35
+ "dist",
36
+ "node_modules",
37
+ ]
38
+ }
@@ -0,0 +1,131 @@
1
+ <component name="ProjectCodeStyleConfiguration">
2
+ <code_scheme name="Project" version="173">
3
+ <option name="OTHER_INDENT_OPTIONS">
4
+ <value>
5
+ <option name="INDENT_SIZE" value="2" />
6
+ <option name="TAB_SIZE" value="2" />
7
+ </value>
8
+ </option>
9
+ <HTMLCodeStyleSettings>
10
+ <option name="HTML_SPACE_INSIDE_EMPTY_TAG" value="true" />
11
+ <option name="HTML_ENFORCE_QUOTES" value="true" />
12
+ </HTMLCodeStyleSettings>
13
+ <JSCodeStyleSettings version="0">
14
+ <option name="FORCE_SEMICOLON_STYLE" value="true" />
15
+ <option name="SPACE_BEFORE_FUNCTION_LEFT_PARENTH" value="false" />
16
+ <option name="FORCE_QUOTE_STYlE" value="true" />
17
+ <option name="ENFORCE_TRAILING_COMMA" value="Remove" />
18
+ <option name="SPACES_WITHIN_OBJECT_LITERAL_BRACES" value="true" />
19
+ <option name="SPACES_WITHIN_IMPORTS" value="true" />
20
+ </JSCodeStyleSettings>
21
+ <TypeScriptCodeStyleSettings version="0">
22
+ <option name="FORCE_SEMICOLON_STYLE" value="true" />
23
+ <option name="SPACE_BEFORE_FUNCTION_LEFT_PARENTH" value="false" />
24
+ <option name="FORCE_QUOTE_STYlE" value="true" />
25
+ <option name="ENFORCE_TRAILING_COMMA" value="Remove" />
26
+ <option name="SPACES_WITHIN_OBJECT_LITERAL_BRACES" value="true" />
27
+ <option name="SPACES_WITHIN_IMPORTS" value="true" />
28
+ </TypeScriptCodeStyleSettings>
29
+ <VueCodeStyleSettings>
30
+ <option name="INTERPOLATION_NEW_LINE_AFTER_START_DELIMITER" value="false" />
31
+ <option name="INTERPOLATION_NEW_LINE_BEFORE_END_DELIMITER" value="false" />
32
+ </VueCodeStyleSettings>
33
+ <codeStyleSettings language="CSS">
34
+ <indentOptions>
35
+ <option name="INDENT_SIZE" value="2" />
36
+ <option name="CONTINUATION_INDENT_SIZE" value="2" />
37
+ <option name="TAB_SIZE" value="2" />
38
+ </indentOptions>
39
+ </codeStyleSettings>
40
+ <codeStyleSettings language="Dart">
41
+ <indentOptions>
42
+ <option name="CONTINUATION_INDENT_SIZE" value="2" />
43
+ </indentOptions>
44
+ </codeStyleSettings>
45
+ <codeStyleSettings language="Gherkin">
46
+ <indentOptions>
47
+ <option name="CONTINUATION_INDENT_SIZE" value="2" />
48
+ <option name="TAB_SIZE" value="2" />
49
+ </indentOptions>
50
+ </codeStyleSettings>
51
+ <codeStyleSettings language="HTML">
52
+ <option name="SOFT_MARGINS" value="80" />
53
+ <indentOptions>
54
+ <option name="INDENT_SIZE" value="2" />
55
+ <option name="CONTINUATION_INDENT_SIZE" value="2" />
56
+ <option name="TAB_SIZE" value="2" />
57
+ </indentOptions>
58
+ </codeStyleSettings>
59
+ <codeStyleSettings language="Haml">
60
+ <indentOptions>
61
+ <option name="CONTINUATION_INDENT_SIZE" value="2" />
62
+ <option name="TAB_SIZE" value="2" />
63
+ </indentOptions>
64
+ </codeStyleSettings>
65
+ <codeStyleSettings language="JSON">
66
+ <indentOptions>
67
+ <option name="CONTINUATION_INDENT_SIZE" value="2" />
68
+ <option name="TAB_SIZE" value="2" />
69
+ </indentOptions>
70
+ </codeStyleSettings>
71
+ <codeStyleSettings language="Jade">
72
+ <indentOptions>
73
+ <option name="INDENT_SIZE" value="2" />
74
+ <option name="TAB_SIZE" value="2" />
75
+ </indentOptions>
76
+ </codeStyleSettings>
77
+ <codeStyleSettings language="JavaScript">
78
+ <option name="SOFT_MARGINS" value="80" />
79
+ <indentOptions>
80
+ <option name="INDENT_SIZE" value="2" />
81
+ <option name="CONTINUATION_INDENT_SIZE" value="2" />
82
+ <option name="TAB_SIZE" value="2" />
83
+ </indentOptions>
84
+ </codeStyleSettings>
85
+ <codeStyleSettings language="LESS">
86
+ <indentOptions>
87
+ <option name="CONTINUATION_INDENT_SIZE" value="2" />
88
+ <option name="TAB_SIZE" value="2" />
89
+ </indentOptions>
90
+ </codeStyleSettings>
91
+ <codeStyleSettings language="SASS">
92
+ <indentOptions>
93
+ <option name="CONTINUATION_INDENT_SIZE" value="2" />
94
+ <option name="TAB_SIZE" value="2" />
95
+ </indentOptions>
96
+ </codeStyleSettings>
97
+ <codeStyleSettings language="SCSS">
98
+ <indentOptions>
99
+ <option name="CONTINUATION_INDENT_SIZE" value="2" />
100
+ <option name="TAB_SIZE" value="2" />
101
+ </indentOptions>
102
+ </codeStyleSettings>
103
+ <codeStyleSettings language="Stylus">
104
+ <indentOptions>
105
+ <option name="CONTINUATION_INDENT_SIZE" value="2" />
106
+ <option name="TAB_SIZE" value="2" />
107
+ </indentOptions>
108
+ </codeStyleSettings>
109
+ <codeStyleSettings language="TypeScript">
110
+ <option name="SOFT_MARGINS" value="80" />
111
+ <indentOptions>
112
+ <option name="INDENT_SIZE" value="2" />
113
+ <option name="CONTINUATION_INDENT_SIZE" value="2" />
114
+ <option name="TAB_SIZE" value="2" />
115
+ </indentOptions>
116
+ </codeStyleSettings>
117
+ <codeStyleSettings language="Vue">
118
+ <option name="SOFT_MARGINS" value="80" />
119
+ <indentOptions>
120
+ <option name="CONTINUATION_INDENT_SIZE" value="2" />
121
+ </indentOptions>
122
+ </codeStyleSettings>
123
+ <codeStyleSettings language="XML">
124
+ <indentOptions>
125
+ <option name="INDENT_SIZE" value="2" />
126
+ <option name="CONTINUATION_INDENT_SIZE" value="2" />
127
+ <option name="TAB_SIZE" value="2" />
128
+ </indentOptions>
129
+ </codeStyleSettings>
130
+ </code_scheme>
131
+ </component>
@@ -0,0 +1,5 @@
1
+ <component name="ProjectCodeStyleConfiguration">
2
+ <state>
3
+ <option name="USE_PER_PROJECT_SETTINGS" value="true" />
4
+ </state>
5
+ </component>
@@ -0,0 +1,6 @@
1
+ <component name="InspectionProjectProfileManager">
2
+ <profile version="1.0">
3
+ <option name="myName" value="Project Default" />
4
+ <inspection_tool class="Eslint" enabled="true" level="WARNING" enabled_by_default="true" />
5
+ </profile>
6
+ </component>
package/.idea/misc.xml ADDED
@@ -0,0 +1,17 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="accountSettings">
4
+ <option name="activeProfile" value="profile:default" />
5
+ <option name="activeRegion" value="us-east-1" />
6
+ <option name="recentlyUsedProfiles">
7
+ <list>
8
+ <option value="profile:default" />
9
+ </list>
10
+ </option>
11
+ <option name="recentlyUsedRegions">
12
+ <list>
13
+ <option value="us-east-1" />
14
+ </list>
15
+ </option>
16
+ </component>
17
+ </project>
@@ -0,0 +1,8 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ProjectModuleManager">
4
+ <modules>
5
+ <module fileurl="file://$PROJECT_DIR$/.idea/tamaro-cli.iml" filepath="$PROJECT_DIR$/.idea/tamaro-cli.iml" />
6
+ </modules>
7
+ </component>
8
+ </project>
@@ -0,0 +1,6 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="PrettierConfiguration">
4
+ <option name="myRunOnSave" value="true" />
5
+ </component>
6
+ </project>
@@ -0,0 +1,12 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <module type="WEB_MODULE" version="4">
3
+ <component name="NewModuleRootManager">
4
+ <content url="file://$MODULE_DIR$">
5
+ <excludeFolder url="file://$MODULE_DIR$/.tmp" />
6
+ <excludeFolder url="file://$MODULE_DIR$/temp" />
7
+ <excludeFolder url="file://$MODULE_DIR$/tmp" />
8
+ </content>
9
+ <orderEntry type="inheritedJdk" />
10
+ <orderEntry type="sourceFolder" forTests="false" />
11
+ </component>
12
+ </module>
package/.idea/vcs.xml ADDED
@@ -0,0 +1,6 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="VcsDirectoryMappings">
4
+ <mapping directory="" vcs="Git" />
5
+ </component>
6
+ </project>
package/README.md CHANGED
@@ -2,7 +2,8 @@
2
2
 
3
3
  It’s a command-line interface for all operations with Tamaro customer configurations and _Tamaro Core_.
4
4
 
5
- You don’t need to install it manually. The recommended way to run it is by using the `npx` command, which comes along with NPM.
5
+ You don’t need to install it manually. The recommended way to run it is by using the `npx` command, which comes along
6
+ with NPM.
6
7
 
7
8
  # Usage
8
9
 
@@ -12,7 +13,8 @@ To see an overview of all possible commands just run the following command witho
12
13
  npx -y @raisenow/tamaro-cli
13
14
  ```
14
15
 
15
- To see the information about some particular command (for example `dev` command), prepend `help` before the command name:
16
+ To see the information about some particular command (for example `dev` command), prepend `help` before the command
17
+ name:
16
18
 
17
19
  ```bash
18
20
  npx -y @raisenow/tamaro-cli help dev
@@ -44,7 +46,8 @@ Runs the local development server for _Tamaro Core_ or a particular customer con
44
46
 
45
47
  ### Run local server using Tamaro Core from CDN
46
48
 
47
- Run the local development server for the _example-02-typical-customisations_ customer configuration. You will be able to access Tamaro on <http://localhost:1234> (port may differ, see console output).
49
+ Run the local development server for the _example-02-typical-customisations_ customer configuration. You will be able to
50
+ access Tamaro on <http://localhost:1234> (port may differ, see console output).
48
51
 
49
52
  ```bash
50
53
  cd /path/to/tamaro-configurations/configs/example-02-typical-customisations
@@ -53,14 +56,17 @@ npx -y @raisenow/tamaro-cli dev
53
56
 
54
57
  ### Run local server using a locally running Tamaro Core
55
58
 
56
- 1. Run the local development web server for _Tamaro Core_ in the first terminal tab. You will be able to access a default configuration of Tamaro on <http://localhost:1234> (port may differ, see console output).
59
+ 1. Run the local development web server for _Tamaro Core_ in the first terminal tab. You will be able to access a
60
+ default configuration of Tamaro on <http://localhost:1234> (port may differ, see console output).
57
61
 
58
62
  ```bash
59
63
  cd /path/to/tamaro-core
60
64
  npx -y @raisenow/tamaro-cli dev
61
65
  ```
62
66
 
63
- 2. Run the local development web server for the _example-02-typical-customisations_ customer configuration in the second terminal tab. After running this command, you will able to access the configuration on <http://localhost:1235> (port may differ, see console output).
67
+ 2. Run the local development web server for the _example-02-typical-customisations_ customer configuration in the second
68
+ terminal tab. After running this command, you will able to access the configuration on <http://localhost:1235> (port
69
+ may differ, see console output).
64
70
 
65
71
  ```bash
66
72
  cd /path/to/tamaro-configurations/configs/example-02-typical-customisations
@@ -69,7 +75,10 @@ npx -y @raisenow/tamaro-cli dev
69
75
 
70
76
  ### Use Transport Level Security (HTTPS)
71
77
 
72
- You might want to the local web server to serve Tamaro over HTTPS, for example for testing wallet payments over Google Pay. For that, you have to install [mkcert](https://mkcert.org/), then generate a local certificate and key file and install it into your local trust stores using this command in the root directory of the Tamaro configuration repository (or Tamaro Core):
78
+ You might want to the local web server to serve Tamaro over HTTPS, for example for testing wallet payments over Google
79
+ Pay. For that, you have to install [mkcert](https://mkcert.org/), then generate a local certificate and key file and
80
+ install it into your local trust stores using this command in the root directory of the Tamaro configuration
81
+ repository (or Tamaro Core):
73
82
 
74
83
  Install `mkcert`:
75
84
 
@@ -83,9 +92,11 @@ Generate certificate:
83
92
  mkcert -install -cert-file localhost.crt -key-file localhost.key localhost 127.0.0.1 0.0.0.0 ::1
84
93
  ```
85
94
 
86
- You will see that the certificate and key files are created. Keep them for yourself. Do not share them or commit them. (They should be ignored by Git.)
95
+ You will see that the certificate and key files are created. Keep them for yourself. Do not share them or commit them. (
96
+ They should be ignored by Git.)
87
97
 
88
- You can then use the flag `--https` with the CLI. If you are using the local Tamaro Core, you also have to serve that over HTTPS. Certificate and key files must be copied to Tamaro Core folder as well.
98
+ You can then use the flag `--https` with the CLI. If you are using the local Tamaro Core, you also have to serve that
99
+ over HTTPS. Certificate and key files must be copied to Tamaro Core folder as well.
89
100
 
90
101
  ## `build`
91
102
 
@@ -115,7 +126,8 @@ As a result, the bundle should be deployed to: <https://tamaro.raisenow.com/exam
115
126
 
116
127
  ### Build and deploy a customer configuration with a specific tag
117
128
 
118
- Build and deploy an optimised (minified) bundle of the _example-02-typical-customisations_ customer configuration with the tag _WEB-123_.
129
+ Build and deploy an optimised (minified) bundle of the _example-02-typical-customisations_ customer configuration with
130
+ the tag _WEB-123_.
119
131
 
120
132
  ```bash
121
133
  cd /path/to/tamaro-configurations/configs/example-02-typical-customisations
@@ -128,7 +140,14 @@ As a result, the bundle should be deployed to: <https://tamaro.raisenow.com/exam
128
140
 
129
141
  Build and serve an optimised (minified) bundle of the _example-02-typical-customisations_ customer configuration.
130
142
 
131
- After running this command, a local web server should be running on <http://localhost:1234> (port may differ, see console output).
143
+ After running this command, a local web server should be running on <http://localhost:1234> (port may differ, see
144
+ console output).
145
+
146
+ ### Build and test locally with a Tamaro configuration
147
+
148
+ 1. Build with `pnpm build` (or `pnpm build:watch` for convince).
149
+ 2. Navigate to the Tamaro configuration directory you want to use.
150
+ 3. Run by specifying the relative path, e.g. `../../tools/tamaro-cli/dist/cli.js dev --https`
132
151
 
133
152
  ```bash
134
153
  cd /path/to/tamaro-configurations/configs/example-02-typical-customisations
@@ -148,7 +167,8 @@ Run a local web server for pre-built bundle.
148
167
  npx -y @raisenow/tamaro-cli build
149
168
  ```
150
169
 
151
- 2. Serve it. After running this command, web-server should be running on <http://localhost:1234> (port may differ, see console output).
170
+ 2. Serve it. After running this command, web-server should be running on <http://localhost:1234> (port may differ, see
171
+ console output).
152
172
 
153
173
  ```bash
154
174
  npx -y @raisenow/tamaro-cli serve
@@ -162,7 +182,8 @@ Deploy a pre-built _Tamaro Core_ or customer configuration bundle to AWS S3.
162
182
 
163
183
  - `--tag <tag>` – Tag which should be used for the deployment of the bundle (default: "latest")
164
184
 
165
- Make sure you have built the bundle before deploying it with this command, otherwise you may mistakenly deploy the bundle from a previous build.
185
+ Make sure you have built the bundle before deploying it with this command, otherwise you may mistakenly deploy the
186
+ bundle from a previous build.
166
187
 
167
188
  ### Example
168
189
 
@@ -232,7 +253,8 @@ Link package source to be able to run its local version:
232
253
  npm link .
233
254
  ```
234
255
 
235
- Run the `build:watch` script to watch source files and automatically rebuild on changes. It must be running during the _Tamaro CLI_ development process.
256
+ Run the `build:watch` script to watch source files and automatically rebuild on changes. It must be running during the
257
+ _Tamaro CLI_ development process.
236
258
 
237
259
  ```bash
238
260
  npm run build:watch
@@ -0,0 +1,43 @@
1
+ image: node:20.18
2
+
3
+ definitions:
4
+ caches:
5
+ node:
6
+ key:
7
+ files:
8
+ - pnpm-lock.yaml
9
+ - package.json
10
+ path: node_modules
11
+ pnpm:
12
+ key:
13
+ files:
14
+ - pnpm-lock.yaml
15
+ - package.json
16
+ path: $BITBUCKET_CLONE_DIR/.pnpm-store
17
+ scripts:
18
+ initialize: &initialize |-
19
+ corepack enable pnpm
20
+ corepack prepare --activate
21
+ steps:
22
+ - step: &install
23
+ name: Install dependencies
24
+ caches:
25
+ - node
26
+ - pnpm
27
+ script:
28
+ - *initialize
29
+ - pnpm install --prefer-offline
30
+ - step: &check
31
+ name: Check
32
+ caches:
33
+ - node
34
+ - pnpm
35
+ script:
36
+ - *initialize
37
+ - pnpm lint
38
+ - pnpm tscheck
39
+
40
+ pipelines:
41
+ default:
42
+ - step: *install
43
+ - step: *check