@stechquick/symphony-cli 0.2.271

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 (212) hide show
  1. package/README.md +378 -0
  2. package/bin/run +5 -0
  3. package/bin/run.cmd +3 -0
  4. package/lib/commands/mui-create.d.ts +14 -0
  5. package/lib/commands/mui-create.js +39 -0
  6. package/lib/commands/nc-addcomp.d.ts +11 -0
  7. package/lib/commands/nc-addcomp.js +22 -0
  8. package/lib/commands/nc-build.d.ts +9 -0
  9. package/lib/commands/nc-build.js +20 -0
  10. package/lib/commands/nc-create.d.ts +14 -0
  11. package/lib/commands/nc-create.js +38 -0
  12. package/lib/commands/qui-build.d.ts +6 -0
  13. package/lib/commands/qui-build.js +16 -0
  14. package/lib/commands/qui-create.d.ts +14 -0
  15. package/lib/commands/qui-create.js +39 -0
  16. package/lib/commands/qui-start.d.ts +9 -0
  17. package/lib/commands/qui-start.js +30 -0
  18. package/lib/commands/quick-serve.d.ts +17 -0
  19. package/lib/commands/quick-serve.js +73 -0
  20. package/lib/commands/sym-addfunc.d.ts +12 -0
  21. package/lib/commands/sym-addfunc.js +21 -0
  22. package/lib/commands/sym-build.d.ts +12 -0
  23. package/lib/commands/sym-build.js +56 -0
  24. package/lib/commands/sym-create-module.d.ts +14 -0
  25. package/lib/commands/sym-create-module.js +39 -0
  26. package/lib/commands/sym-create.d.ts +14 -0
  27. package/lib/commands/sym-create.js +39 -0
  28. package/lib/commands/sym-fn-deploy.d.ts +24 -0
  29. package/lib/commands/sym-fn-deploy.js +152 -0
  30. package/lib/commands/sym-nano-deploy.d.ts +11 -0
  31. package/lib/commands/sym-nano-deploy.js +50 -0
  32. package/lib/commands/sym-start.d.ts +14 -0
  33. package/lib/commands/sym-start.js +28 -0
  34. package/lib/commands/sym-test.d.ts +6 -0
  35. package/lib/commands/sym-test.js +12 -0
  36. package/lib/helpers/deploy/fnDeployHelper.d.ts +28 -0
  37. package/lib/helpers/deploy/fnDeployHelper.js +196 -0
  38. package/lib/helpers/deploy/nanoDeployHelper.d.ts +20 -0
  39. package/lib/helpers/deploy/nanoDeployHelper.js +83 -0
  40. package/lib/helpers/fnDownloadHelper.d.ts +11 -0
  41. package/lib/helpers/fnDownloadHelper.js +64 -0
  42. package/lib/helpers/initHelper.d.ts +22 -0
  43. package/lib/helpers/initHelper.js +78 -0
  44. package/lib/helpers/microUIHelper.d.ts +10 -0
  45. package/lib/helpers/microUIHelper.js +33 -0
  46. package/lib/helpers/namedComponent/ncHelper.d.ts +15 -0
  47. package/lib/helpers/namedComponent/ncHelper.js +60 -0
  48. package/lib/helpers/npmHelper.d.ts +23 -0
  49. package/lib/helpers/npmHelper.js +79 -0
  50. package/lib/helpers/packageHelper.d.ts +14 -0
  51. package/lib/helpers/packageHelper.js +32 -0
  52. package/lib/helpers/shellHelper.d.ts +25 -0
  53. package/lib/helpers/shellHelper.js +52 -0
  54. package/lib/helpers/socketServer/socketServerHelper.d.ts +14 -0
  55. package/lib/helpers/socketServer/socketServerHelper.js +106 -0
  56. package/lib/helpers/typeHelper.d.ts +3 -0
  57. package/lib/helpers/typeHelper.js +22 -0
  58. package/lib/helpers/ui/createuiHelper.d.ts +10 -0
  59. package/lib/helpers/ui/createuiHelper.js +33 -0
  60. package/lib/helpers/ui/quiBuilder.d.ts +13 -0
  61. package/lib/helpers/ui/quiBuilder.js +163 -0
  62. package/lib/helpers/utils.d.ts +8 -0
  63. package/lib/helpers/utils.js +20 -0
  64. package/lib/index.d.ts +1 -0
  65. package/lib/index.js +4 -0
  66. package/lib/pathFinder.d.ts +4 -0
  67. package/lib/pathFinder.js +13 -0
  68. package/lib/predeploy/src/fn/fnPostdeploy.d.ts +5 -0
  69. package/lib/predeploy/src/fn/fnPostdeploy.js +49 -0
  70. package/lib/predeploy/src/fn/fnPredeploy.d.ts +4 -0
  71. package/lib/predeploy/src/fn/fnPredeploy.js +30 -0
  72. package/lib/predeploy/src/nano/nanoPostdeploy.d.ts +5 -0
  73. package/lib/predeploy/src/nano/nanoPostdeploy.js +41 -0
  74. package/lib/predeploy/src/nano/nanoPredeploy.d.ts +4 -0
  75. package/lib/predeploy/src/nano/nanoPredeploy.js +25 -0
  76. package/lib/predeploy/src/paramReplacer.d.ts +7 -0
  77. package/lib/predeploy/src/paramReplacer.js +14 -0
  78. package/lib/predeploy/src/predeployCommon.d.ts +15 -0
  79. package/lib/predeploy/src/predeployCommon.js +83 -0
  80. package/oclif.manifest.json +1 -0
  81. package/package.json +76 -0
  82. package/templates/addModule/{{ModuleName}}/.jenkins/dev.yaml +43 -0
  83. package/templates/addModule/{{ModuleName}}/README.md +2 -0
  84. package/templates/addModule/{{ModuleName}}/index.ts +1 -0
  85. package/templates/addModule/{{ModuleName}}/src/implementation/object.ts +16 -0
  86. package/templates/addModule/{{ModuleName}}/src/module.ts +9 -0
  87. package/templates/addModule/{{ModuleName}}/tsconfig.json +66 -0
  88. package/templates/addModule/{{ModuleName}}/webpack.config.js +41 -0
  89. package/templates/addModule/{{ModuleName}}/{{remove}}.gitignore +6 -0
  90. package/templates/addModule/{{ModuleName}}/{{remove}}package.json +33 -0
  91. package/templates/addfunc/functions/{{FuncName}}/config.yaml +25 -0
  92. package/templates/addfunc/functions/{{FuncName}}/func.yaml +9 -0
  93. package/templates/addfunc/functions/{{FuncName}}/{{FuncName}}.ts +8 -0
  94. package/templates/addfunc/unitTest/{{FuncName}}.test.ts +18 -0
  95. package/templates/createmicroui/{{MicroUIName}}-ui/.babelrc +17 -0
  96. package/templates/createmicroui/{{MicroUIName}}-ui/.editorconfig +9 -0
  97. package/templates/createmicroui/{{MicroUIName}}-ui/.postcssrc.js +8 -0
  98. package/templates/createmicroui/{{MicroUIName}}-ui/README.md +45 -0
  99. package/templates/createmicroui/{{MicroUIName}}-ui/build/build.js +41 -0
  100. package/templates/createmicroui/{{MicroUIName}}-ui/build/check-versions.js +49 -0
  101. package/templates/createmicroui/{{MicroUIName}}-ui/build/dev-client.js +10 -0
  102. package/templates/createmicroui/{{MicroUIName}}-ui/build/dev-server.js +107 -0
  103. package/templates/createmicroui/{{MicroUIName}}-ui/build/utils.js +73 -0
  104. package/templates/createmicroui/{{MicroUIName}}-ui/build/vue-loader.conf.js +19 -0
  105. package/templates/createmicroui/{{MicroUIName}}-ui/build/webpack.base.conf.js +76 -0
  106. package/templates/createmicroui/{{MicroUIName}}-ui/build/webpack.dev.conf.js +39 -0
  107. package/templates/createmicroui/{{MicroUIName}}-ui/build/webpack.prod.conf.js +128 -0
  108. package/templates/createmicroui/{{MicroUIName}}-ui/build/webpack.test.conf.js +32 -0
  109. package/templates/createmicroui/{{MicroUIName}}-ui/build.gradle +251 -0
  110. package/templates/createmicroui/{{MicroUIName}}-ui/config/dev.env.js +7 -0
  111. package/templates/createmicroui/{{MicroUIName}}-ui/config/index.js +50 -0
  112. package/templates/createmicroui/{{MicroUIName}}-ui/config/prod.env.js +4 -0
  113. package/templates/createmicroui/{{MicroUIName}}-ui/config/test.env.js +7 -0
  114. package/templates/createmicroui/{{MicroUIName}}-ui/copyBundle.js +3 -0
  115. package/templates/createmicroui/{{MicroUIName}}-ui/gradle/base/repos.gradle +48 -0
  116. package/templates/createmicroui/{{MicroUIName}}-ui/gradle/wrapper/gradle-wrapper.jar +0 -0
  117. package/templates/createmicroui/{{MicroUIName}}-ui/gradle/wrapper/gradle-wrapper.properties +6 -0
  118. package/templates/createmicroui/{{MicroUIName}}-ui/gradlew +172 -0
  119. package/templates/createmicroui/{{MicroUIName}}-ui/index.html +11 -0
  120. package/templates/createmicroui/{{MicroUIName}}-ui/index.js +18 -0
  121. package/templates/createmicroui/{{MicroUIName}}-ui/indexCompNames.js +14 -0
  122. package/templates/createmicroui/{{MicroUIName}}-ui/indexInitial.js +8 -0
  123. package/templates/createmicroui/{{MicroUIName}}-ui/indexModuleName.js +1 -0
  124. package/templates/createmicroui/{{MicroUIName}}-ui/indexVCompNames.json +50 -0
  125. package/templates/createmicroui/{{MicroUIName}}-ui/package.json +84 -0
  126. package/templates/createmicroui/{{MicroUIName}}-ui/removeDist.js +2 -0
  127. package/templates/createmicroui/{{MicroUIName}}-ui/src/App.vue +54 -0
  128. package/templates/createmicroui/{{MicroUIName}}-ui/src/api/index.js +5 -0
  129. package/templates/createmicroui/{{MicroUIName}}-ui/src/components/index.js +6 -0
  130. package/templates/createmicroui/{{MicroUIName}}-ui/src/docker/nginx.conf +39 -0
  131. package/templates/createmicroui/{{MicroUIName}}-ui/src/localization/en/default.json +3 -0
  132. package/templates/createmicroui/{{MicroUIName}}-ui/src/localization/tr/default.json +3 -0
  133. package/templates/createmicroui/{{MicroUIName}}-ui/src/main.js +15 -0
  134. package/templates/createmicroui/{{MicroUIName}}-ui/src/mockserver/handlers/health.js +8 -0
  135. package/templates/createmicroui/{{MicroUIName}}-ui/src/mockserver/index.js +8 -0
  136. package/templates/createmicroui/{{MicroUIName}}-ui/src/mockserver/server.js +45 -0
  137. package/templates/createmicroui/{{MicroUIName}}-ui/src/pages/index.js +6 -0
  138. package/templates/createmicroui/{{MicroUIName}}-ui/src/router/index.js +5 -0
  139. package/templates/createmicroui/{{MicroUIName}}-ui/src/service/serviceConstants.js +1 -0
  140. package/templates/createmicroui/{{MicroUIName}}-ui/src/store/index.js +14 -0
  141. package/templates/createmicroui/{{MicroUIName}}-ui/src/worker/a9e657cbf4abb977edda.worker.js +60638 -0
  142. package/templates/createmicroui/{{MicroUIName}}-ui/static/.gitkeep +0 -0
  143. package/templates/createmicroui/{{MicroUIName}}-ui/webpack.config.js +257 -0
  144. package/templates/createui/{{UIName}}/Jenkinsfile +20 -0
  145. package/templates/createui/{{UIName}}/build.gradle +266 -0
  146. package/templates/createui/{{UIName}}/gradle/base/repos.gradle +93 -0
  147. package/templates/createui/{{UIName}}/gradle/wrapper/gradle-wrapper.jar +0 -0
  148. package/templates/createui/{{UIName}}/gradle/wrapper/gradle-wrapper.properties +6 -0
  149. package/templates/createui/{{UIName}}/gradlew +172 -0
  150. package/templates/createui/{{UIName}}/gradlew.bat +90 -0
  151. package/templates/createui/{{UIName}}/settings/globalLocalization.qjson +29 -0
  152. package/templates/createui/{{UIName}}/settings/localProxy.yaml +25 -0
  153. package/templates/createui/{{UIName}}/settings/qjson/alert.qjson +920 -0
  154. package/templates/createui/{{UIName}}/settings/qjson/loading.qjson +1486 -0
  155. package/templates/createui/{{UIName}}/settings/qjson/logHandler.qjson +65 -0
  156. package/templates/createui/{{UIName}}/settings/qjson/pipeline.qjson +116 -0
  157. package/templates/createui/{{UIName}}/settings/settings-proxy.js +120 -0
  158. package/templates/createui/{{UIName}}/settings/settings.yaml +85 -0
  159. package/templates/createui/{{UIName}}/settings.gradle +1 -0
  160. package/templates/createui/{{UIName}}/static/components/yourNamedCompHere.js +0 -0
  161. package/templates/createui/{{UIName}}/static/css/main.css +36 -0
  162. package/templates/createui/{{UIName}}/static/css/myDarkTheme.css +143 -0
  163. package/templates/createui/{{UIName}}/static/css/myHappyTheme1.css +140 -0
  164. package/templates/createui/{{UIName}}/static/css/myHappyTheme2.css +140 -0
  165. package/templates/createui/{{UIName}}/static/images/ahelogo.png +0 -0
  166. package/templates/createui/{{UIName}}/static/images/avatar.png +0 -0
  167. package/templates/createui/{{UIName}}/static/images/profile.png +0 -0
  168. package/templates/createui/{{UIName}}/static/images/profile2.png +0 -0
  169. package/templates/createui/{{UIName}}/static/images/yourImagesHere.png +0 -0
  170. package/templates/createui/{{UIName}}/static/js/componentList.ts +4452 -0
  171. package/templates/createui/{{UIName}}/static/qjsons/VDatatableConditionalRowColoring.qjson +158 -0
  172. package/templates/createui/{{UIName}}/static/qjsons/alertSamplePage.qjson +772 -0
  173. package/templates/createui/{{UIName}}/static/qjsons/complicatedSamplePage.qjson +10448 -0
  174. package/templates/createui/{{UIName}}/static/qjsons/customComponentSample.qjson +803 -0
  175. package/templates/createui/{{UIName}}/static/qjsons/customerInfoCustomComp.qjson +1451 -0
  176. package/templates/createui/{{UIName}}/static/qjsons/first.qjson +2180 -0
  177. package/templates/createui/{{UIName}}/static/qjsons/formatterSample.qjson +877 -0
  178. package/templates/createui/{{UIName}}/static/qjsons/localizationSample.qjson +1845 -0
  179. package/templates/createui/{{UIName}}/static/qjsons/pipelineSample.qjson +913 -0
  180. package/templates/createui/{{UIName}}/static/qjsons/validationSample.qjson +2371 -0
  181. package/templates/createui/{{UIName}}/static/qjsons/webDashboardSample.qjson +2993 -0
  182. package/templates/createui/{{UIName}}/{{remove}}.gitignore +3 -0
  183. package/templates/createui/{{UIName}}/{{remove}}package.json +22 -0
  184. package/templates/fnPredeploy/Dockerfile +22 -0
  185. package/templates/init/{{AppName}}/.vscode/launch.json +24 -0
  186. package/templates/init/{{AppName}}/Jenkinsfile +36 -0
  187. package/templates/init/{{AppName}}/app.yaml +1 -0
  188. package/templates/init/{{AppName}}/functions/qjsonfunc/func.yaml +9 -0
  189. package/templates/init/{{AppName}}/functions/qjsonfunc/qjsonfunc.ts +3 -0
  190. package/templates/init/{{AppName}}/functions/qjsonfunc/qjsons/test.qjson +180 -0
  191. package/templates/init/{{AppName}}/functions/samplefunc/config.yaml +46 -0
  192. package/templates/init/{{AppName}}/functions/samplefunc/func.yaml +9 -0
  193. package/templates/init/{{AppName}}/functions/samplefunc/samplefunc.ts +27 -0
  194. package/templates/init/{{AppName}}/jest.config.js +8 -0
  195. package/templates/init/{{AppName}}/local.ts +6 -0
  196. package/templates/init/{{AppName}}/sym-engine/config.yaml +7 -0
  197. package/templates/init/{{AppName}}/sym-engine/localization.yaml +5 -0
  198. package/templates/init/{{AppName}}/sym-engine/pipeline.ts +64 -0
  199. package/templates/init/{{AppName}}/test/qjson.http +29 -0
  200. package/templates/init/{{AppName}}/test/sample.http +24 -0
  201. package/templates/init/{{AppName}}/tsconfig.json +66 -0
  202. package/templates/init/{{AppName}}/unitTest/samplefunc.test.ts +55 -0
  203. package/templates/init/{{AppName}}/{{remove}}.gitignore +6 -0
  204. package/templates/init/{{AppName}}/{{remove}}package.json +40 -0
  205. package/templates/nanoPredeploy/Dockerfile +27 -0
  206. package/templates/nc-addComp/{{ComponentName}}.vue +29 -0
  207. package/templates/nc-create/{{ProjectName}}/shims/shims-vue.d.ts +4 -0
  208. package/templates/nc-create/{{ProjectName}}/src/namedComps/{{ProjectName}}.vue +29 -0
  209. package/templates/nc-create/{{ProjectName}}/tsconfig.json +66 -0
  210. package/templates/nc-create/{{ProjectName}}/webpack.config.js +2 -0
  211. package/templates/nc-create/{{ProjectName}}/{{remove}}.gitignore +3 -0
  212. package/templates/nc-create/{{ProjectName}}/{{remove}}package.json +28 -0
@@ -0,0 +1,55 @@
1
+ import { symphony, IRestResponse, ISoapResponse } from "plateau-symphony";
2
+
3
+ let func = symphony.retrieveFunction(() => require("../functions/samplefunc/samplefunc"));
4
+
5
+ // it equals just a test case
6
+ it('should get receive an error', async () => {
7
+ const sym = symphony.createMock();
8
+
9
+ //sym.request.body data is mocking as 4 and 6
10
+ sym.request.body = { number1: 4, number2: 6 };
11
+
12
+ sym.rest.get = (options) => {
13
+ //sym.rest.get one of the options values, symConfigKey, is testing before mocking
14
+ expect(options.symConfigKey).toBe("restGetExample");
15
+ options.symConfigKey="urlGetMock"; //=> symConfigKey is mocking
16
+ expect(options.symConfigKey).toBe("urlGetMock");//=> symConfigKey is testing after mocking
17
+ //sym.rest.get response is mocking
18
+ const returnGetVal: IRestResponse<any> = { status: 200, statusText: "OK", body: { x:5 } };
19
+ return Promise.resolve(returnGetVal);
20
+ }
21
+
22
+ sym.rest.post = (options) => {
23
+ //sym.rest.post one of the options values, symConfigKey, is testing before mocking
24
+ expect(options.symConfigKey).toBe("restPostExample");
25
+ //sum and difference results sending as parameters in body of sym.rest.post for real function
26
+ const requestBody= <any>options.body;
27
+ expect(requestBody.name).toBe("test");
28
+ expect(requestBody.salary).toBe("123");
29
+ //sym.rest.post response is mocking
30
+ const returnPostVal: IRestResponse<any> = { status: 200, statusText: "OK", body: { a:7,b:8 } };
31
+ return Promise.resolve(returnPostVal);
32
+ };
33
+
34
+ sym.soap.request=(options)=>{
35
+ //sym.soap.request one of the options values, methodName, is tested before mocking
36
+ expect(options.request.methodName).toBe("Add");
37
+ options.request.methodName="functionMock";//=> options.request.methodName is mocking
38
+ const methodName=<any>options.request.methodName;
39
+ //sym.soap.request response is mocking
40
+ const returnSoapVal: ISoapResponse = { data: {methodName}};
41
+ return Promise.resolve(returnSoapVal);
42
+ };
43
+
44
+ const resp = await func(sym);
45
+
46
+ expect(resp.body.calculations.sum).toBe(10);
47
+ expect(resp.body.calculations.difference).toBe(2);
48
+ expect(resp.body.soapResponse.total).toEqual({methodName: "functionMock"});
49
+ expect(resp.body.restGetResponse.listEmp).toEqual({ x:5 })
50
+ expect(resp.body.restPostResponse.listEmp).toEqual({ a:7,b:8 })
51
+
52
+ //toBe function is matcher for type of number and string
53
+ //toEqual function is matcher for type of object or number or string
54
+ //for more matchers: https://jestjs.io/docs/en/using-matchers
55
+ });
@@ -0,0 +1,6 @@
1
+ node_modules
2
+ dist
3
+ *.tgz
4
+
5
+ package-lock.json
6
+ .DS_Store
@@ -0,0 +1,40 @@
1
+ {
2
+ "name": "{{AppName}}",
3
+ "version": "0.1.0",
4
+ "description": "{{AppDesc}}",
5
+ "main": "./dist/index.js",
6
+ "scripts": {
7
+ "build": "symphony-cli sym-build",
8
+ "buildDebug": "symphony-cli sym-build -s",
9
+ "deploy": "symphony-cli sym-deploy remote",
10
+ "buildWatch": "symphony-cli sym-build -w",
11
+ "start": "symphony-cli sym-start",
12
+ "test": "jest"
13
+ },
14
+ "devDependencies": {
15
+ "@types/node": "^12.12.39",
16
+ "@types/jest": "^26.0.4",
17
+ "plateau-symphony": "^0.2.107",
18
+ "symphony-cli": "^0.2.238",
19
+ "jest": "^26.1.0",
20
+ "ts-jest": "^26.1.1",
21
+ "typescript": "^3.7.3"
22
+ },
23
+ "files": [
24
+ "functions",
25
+ "predeploy",
26
+ "qjsons",
27
+ ".npmrc",
28
+ "app.yaml",
29
+ "package.json",
30
+ "tsconfig.json"
31
+ ],
32
+ "author": "",
33
+ "license": "ISC",
34
+ "dependencies": {
35
+ "@fnproject/fdk": ">=0.0.18"
36
+ },
37
+ "directories": {
38
+ "test": "test"
39
+ }
40
+ }
@@ -0,0 +1,27 @@
1
+ FROM node:15.11.0-alpine as build-stage
2
+ WORKDIR /app
3
+ COPY package.json /app/
4
+ COPY tsconfig.json /app/
5
+ # COPY .npmrc /app/
6
+ # RUN npm install
7
+ COPY functions/ /app/functions
8
+ COPY sym-functions-common/ /app/sym-functions-common
9
+ COPY sym-engine/ /app/sym-engine
10
+ COPY ./local.ts /app/
11
+ COPY node_modules/ /app/node_modules/
12
+ RUN npm run build -- --skipversion
13
+ RUN rm -rf /app/node_modules/typescript
14
+
15
+ FROM node:15.11.0-alpine
16
+ WORKDIR /app
17
+ COPY --from=build-stage /app/functions /app/functions
18
+ COPY --from=build-stage /app/sym-functions-common /app/sym-functions-common
19
+ COPY --from=build-stage /app/sym-engine /app/sym-engine
20
+ COPY --from=build-stage /app/package.json /app/
21
+ COPY --from=build-stage /app/node_modules/ /app/node_modules/
22
+ COPY --from=build-stage /app/dist/ /app/dist/
23
+ RUN chmod -R o+r /app
24
+
25
+ # set node_env
26
+ {{environmentalVars}}
27
+ ENTRYPOINT ["node", "./dist/local.js", "{\"httpPort\":3003}"]
@@ -0,0 +1,29 @@
1
+ <template>
2
+ <div>
3
+ <p>{{ component }}</p>
4
+ </div>
5
+ </template>
6
+
7
+ <script lang="ts">
8
+ import { Vue } from "vue/types/vue";
9
+ import { ThisTypedComponentOptionsWithRecordProps } from "vue/types/options";
10
+ const intellisense: <D, M, C, P>(
11
+ x: ThisTypedComponentOptionsWithRecordProps<Vue, D, M, C, P>
12
+ ) => void = (x) => x;
13
+
14
+ export default intellisense({
15
+ name: "{{ComponentName}}",
16
+ data() {
17
+ return {
18
+ component: "{{ComponentName}}",
19
+ };
20
+ },
21
+ });
22
+ </script>
23
+
24
+ <style scoped>
25
+ p {
26
+ font-size: 2em;
27
+ text-align: center;
28
+ }
29
+ </style>
@@ -0,0 +1,4 @@
1
+ declare module '*.vue' {
2
+ import Vue from 'vue';
3
+ export default Vue;
4
+ }
@@ -0,0 +1,29 @@
1
+ <template>
2
+ <div>
3
+ <p>{{ greeting }} World!</p>
4
+ </div>
5
+ </template>
6
+
7
+ <script lang="ts">
8
+ import { Vue } from "vue/types/vue";
9
+ import { ThisTypedComponentOptionsWithRecordProps } from "vue/types/options";
10
+ const intellisense: <D, M, C, P>(
11
+ x: ThisTypedComponentOptionsWithRecordProps<Vue, D, M, C, P>
12
+ ) => void = (x) => x;
13
+
14
+ export default intellisense({
15
+ name: "{{ProjectName}}",
16
+ data() {
17
+ return {
18
+ greeting: "Hello",
19
+ };
20
+ },
21
+ });
22
+ </script>
23
+
24
+ <style scoped>
25
+ p {
26
+ font-size: 2em;
27
+ text-align: center;
28
+ }
29
+ </style>
@@ -0,0 +1,66 @@
1
+ {
2
+ "compilerOptions": {
3
+ "baseUrl": ".",
4
+ "paths": { "*": ["types/*"] },
5
+ /* Basic Options */
6
+ "target": "es5", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017','ES2018' or 'ESNEXT'. */
7
+ "module": "commonjs", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */
8
+ "lib": ["dom"], /* Specify library files to be included in the compilation. */
9
+ "allowJs": false, /* Allow javascript files to be compiled. */
10
+ // "checkJs": true, /* Report errors in .js files. */
11
+ // "jsx": "preserve", /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */
12
+ "declaration": false, /* Generates corresponding '.d.ts' file. */
13
+ "declarationMap": false, /* Generates a sourcemap for each corresponding '.d.ts' file. */
14
+ "sourceMap": true, /* Generates corresponding '.map' file. */
15
+ // "outFile": "./", /* Concatenate and emit output to single file. */
16
+ "outDir": "./dist/", /* Redirect output structure to the directory. */
17
+ // "rootDir": "./", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */
18
+ // "composite": true, /* Enable project compilation */
19
+ // "removeComments": true, /* Do not emit comments to output. */
20
+ // "noEmit": true, /* Do not emit outputs. */
21
+ // "importHelpers": true, /* Import emit helpers from 'tslib'. */
22
+ // "downlevelIteration": true, /* Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'. */
23
+ // "isolatedModules": true, /* Transpile each file as a separate module (similar to 'ts.transpileModule'). */
24
+
25
+ /* Strict Type-Checking Options */
26
+ "strict": true, /* Enable all strict type-checking options. */
27
+ "noImplicitAny": false, /* Raise error on expressions and declarations with an implied 'any' type. */
28
+ // "strictNullChecks": true, /* Enable strict null checks. */
29
+ // "strictFunctionTypes": true, /* Enable strict checking of function types. */
30
+ // "strictBindCallApply": true, /* Enable strict 'bind', 'call', and 'apply' methods on functions. */
31
+ // "strictPropertyInitialization": true, /* Enable strict checking of property initialization in classes. */
32
+ // "noImplicitThis": true, /* Raise error on 'this' expressions with an implied 'any' type. */
33
+ // "alwaysStrict": true, /* Parse in strict mode and emit "use strict" for each source file. */
34
+
35
+ /* Additional Checks */
36
+ // "noUnusedLocals": true, /* Report errors on unused locals. */
37
+ // "noUnusedParameters": true, /* Report errors on unused parameters. */
38
+ // "noImplicitReturns": true, /* Report error when not all code paths in function return a value. */
39
+ // "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */
40
+
41
+ /* Module Resolution Options */
42
+ // "moduleResolution": "node", /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */
43
+ // "baseUrl": "./", /* Base directory to resolve non-absolute module names. */
44
+ // "paths": {}, /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */
45
+ // "rootDirs": [], /* List of root folders whose combined content represents the structure of the project at runtime. */
46
+ // "typeRoots": [], /* List of folders to include type definitions from. */
47
+ // "types": [], /* Type declaration files to be included in compilation. */
48
+ // "allowSyntheticDefaultImports": true, /* Allow default imports from modules with no default export. This does not affect code emit, just typechecking. */
49
+ "esModuleInterop": true, /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */
50
+ // "preserveSymlinks": true, /* Do not resolve the real path of symlinks. */
51
+
52
+ /* Source Map Options */
53
+ // "sourceRoot": "", /* Specify the location where debugger should locate TypeScript files instead of source locations. */
54
+ // "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */
55
+ // "inlineSourceMap": true, /* Emit a single file with source maps instead of having a separate file. */
56
+ // "inlineSources": true, /* Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set. */
57
+
58
+ /* Experimental Options */
59
+ "experimentalDecorators": true, /* Enables experimental support for ES7 decorators. */
60
+ // "emitDecoratorMetadata": true, /* Enables experimental support for emitting type metadata for decorators. */
61
+ "resolveJsonModule": true
62
+ },
63
+ "include": [
64
+ "./**/*",
65
+ ]
66
+ }
@@ -0,0 +1,2 @@
1
+ const { webpackConfig } = require("namedcomp-build-helper");
2
+ module.exports = webpackConfig;
@@ -0,0 +1,3 @@
1
+ node_modules
2
+ package-lock.json
3
+ /dist
@@ -0,0 +1,28 @@
1
+ {
2
+ "name": "{{ProjectName}}",
3
+ "version": "0.1.0",
4
+ "description": "{{ProjectDescription}}",
5
+ "scripts": {
6
+ "build": "symphony-cli nc-build",
7
+ "build:watch": "npm run build -- --watch"
8
+ },
9
+ "devDependencies": {
10
+ "css-loader": "^6.4.0",
11
+ "namedcomp-build-helper": "^0.2.1",
12
+ "source-map-loader": "^3.0.0",
13
+ "ts-loader": "^9.2.6",
14
+ "typescript": "4.4.3",
15
+ "vue": "^2.6.11",
16
+ "vue-loader": "15.9.8",
17
+ "vue-style-loader": "^4.1.3",
18
+ "vue-template-compiler": "^2.6.14",
19
+ "webpack": "^5.56.0",
20
+ "webpack-cli": "^4.8.0",
21
+ "webpackbar": "^5.0.0-3"
22
+ },
23
+ "files": [
24
+ "dist"
25
+ ],
26
+ "author": "",
27
+ "license": "ISC"
28
+ }