gina 0.1.1-alpha.13 → 0.1.1-alpha.130

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 (313) hide show
  1. package/AUTHORS +2 -1
  2. package/README.md +144 -18
  3. package/bin/cli +110 -45
  4. package/bin/cli-debug +4 -4
  5. package/bin/cmd +39 -17
  6. package/bin/gina +39 -33
  7. package/{framework/v0.1.1-alpha.13/core/template/command/gina.bat.tpl → bin/gina.bat} +0 -0
  8. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/AUTHORS +0 -0
  9. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/LICENSE +0 -0
  10. package/framework/v0.1.1-alpha.130/VERSION +1 -0
  11. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/core/asset/html/nolayout.html +0 -0
  12. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/core/asset/html/static.html +0 -0
  13. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/core/asset/img/android-chrome-192x192.png +0 -0
  14. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/core/asset/img/android-chrome-512x512.png +0 -0
  15. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/core/asset/img/apple-touch-icon.png +0 -0
  16. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/core/asset/img/favicon-16x16.png +0 -0
  17. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/core/asset/img/favicon-32x32.png +0 -0
  18. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/core/asset/img/favicon.ico +0 -0
  19. package/framework/{v0.1.1-alpha.13/core/asset/js → v0.1.1-alpha.130/core/asset}/plugin/dist/gina.js +0 -0
  20. package/framework/{v0.1.1-alpha.13/core/asset/js → v0.1.1-alpha.130/core/asset}/plugin/dist/gina.js.map +0 -0
  21. package/framework/{v0.1.1-alpha.13/core/asset/js → v0.1.1-alpha.130/core/asset}/plugin/dist/gina.min.css +0 -0
  22. package/framework/{v0.1.1-alpha.13/core/asset/js → v0.1.1-alpha.130/core/asset}/plugin/dist/gina.min.css.map +0 -0
  23. package/framework/{v0.1.1-alpha.13/core/asset/js → v0.1.1-alpha.130/core/asset}/plugin/dist/gina.min.js +0 -0
  24. package/framework/{v0.1.1-alpha.13/core/asset/js → v0.1.1-alpha.130/core/asset}/plugin/dist/gina.min.js.map +0 -0
  25. package/framework/{v0.1.1-alpha.13/core/asset/js → v0.1.1-alpha.130/core/asset}/plugin/dist/gina.onload.min.js +0 -0
  26. package/framework/{v0.1.1-alpha.13/core/asset/js → v0.1.1-alpha.130/core/asset}/plugin/dist/gina.onload.min.js.map +0 -0
  27. package/framework/v0.1.1-alpha.130/core/asset/plugin/dist/toolbar/css/toolbar-min.css +1 -0
  28. package/framework/v0.1.1-alpha.130/core/asset/plugin/dist/toolbar/css/toolbar.css +3 -0
  29. package/framework/v0.1.1-alpha.130/core/asset/plugin/dist/toolbar/css/toolbar.css.map +1 -0
  30. package/framework/v0.1.1-alpha.130/core/asset/plugin/dist/toolbar/js/jquery-3.1.0.min.js +4 -0
  31. package/framework/v0.1.1-alpha.130/core/asset/plugin/dist/toolbar/main.js +1542 -0
  32. package/framework/v0.1.1-alpha.130/core/asset/plugin/dist/toolbar/toolbar.html +251 -0
  33. package/framework/{v0.1.1-alpha.13/core/asset/js → v0.1.1-alpha.130/core/asset}/plugin/readme.md +5 -5
  34. package/framework/{v0.1.1-alpha.13/core/asset/js → v0.1.1-alpha.130/core/asset}/plugin/uuid.json +0 -0
  35. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/core/config.js +0 -0
  36. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/core/connectors/couchbase/index.js +0 -0
  37. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/core/connectors/couchbase/lib/connector.js +0 -0
  38. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/core/connectors/couchbase/lib/connector.v2.js +0 -0
  39. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/core/connectors/couchbase/lib/connector.v3.js +0 -0
  40. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/core/connectors/couchbase/lib/n1ql.js +0 -0
  41. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/core/connectors/couchbase/lib/session-store.js +0 -0
  42. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/core/connectors/couchbase/lib/session-store.v2.js +0 -0
  43. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/core/connectors/couchbase/lib/session-store.v3.js +0 -0
  44. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/core/controller/controller.framework.js +0 -0
  45. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/core/controller/controller.js +664 -664
  46. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/core/controller/index.js +0 -0
  47. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/core/deps/busboy/.travis.yml +0 -0
  48. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/core/deps/busboy/LICENSE +0 -0
  49. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/core/deps/busboy/README.md +0 -0
  50. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/core/deps/busboy/deps/encoding/encoding-indexes.js +0 -0
  51. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/core/deps/busboy/deps/encoding/encoding.js +0 -0
  52. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/core/deps/busboy/lib/main.js +0 -0
  53. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/core/deps/busboy/lib/types/multipart.js +0 -0
  54. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/core/deps/busboy/lib/types/urlencoded.js +0 -0
  55. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/core/deps/busboy/lib/utils.js +0 -0
  56. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/core/deps/busboy/package.json +0 -0
  57. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/core/deps/swig-client/swig-2.0.0.min.js +0 -0
  58. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/core/dev/index.js +0 -0
  59. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/core/dev/lib/class.js +0 -0
  60. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/core/dev/lib/factory.js +0 -0
  61. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/core/dev/lib/tools.js +0 -0
  62. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/core/gna.js +0 -0
  63. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/core/locales/README.md +0 -0
  64. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/core/locales/currency.json +0 -0
  65. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/core/locales/dist/language/en.json +0 -0
  66. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/core/locales/dist/language/fr.json +0 -0
  67. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/core/locales/dist/region/en.json +0 -0
  68. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/core/locales/dist/region/fr.json +0 -0
  69. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/core/locales/index.js +0 -0
  70. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/core/locales/src/make.js +0 -0
  71. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/core/locales/src/resources/currency.csv +0 -0
  72. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/core/locales/src/resources/region.csv +0 -0
  73. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/core/locales/src/resources/region.mapping.json +0 -0
  74. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/core/mime.types +0 -0
  75. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/core/model/entity.js +0 -0
  76. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/core/model/index.js +0 -0
  77. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/core/model/template/entityFactory.js +0 -0
  78. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/core/model/template/index.js +0 -0
  79. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/core/plugins/README.md +0 -0
  80. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/core/plugins/index.js +0 -0
  81. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/core/plugins/lib/file/README.md +0 -0
  82. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/core/plugins/lib/file/build.json +0 -0
  83. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/core/plugins/lib/file/package.json +0 -0
  84. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/core/plugins/lib/intl/README.md +0 -0
  85. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/core/plugins/lib/intl/build.json +0 -0
  86. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/core/plugins/lib/intl/package.json +0 -0
  87. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/core/plugins/lib/intl/src/main.js +0 -0
  88. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/core/plugins/lib/storage/README.md +0 -0
  89. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/core/plugins/lib/storage/build.json +0 -0
  90. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/core/plugins/lib/storage/package.json +0 -0
  91. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/core/plugins/lib/storage/src/main.js +0 -0
  92. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/core/plugins/lib/validator/README.md +0 -0
  93. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/core/plugins/lib/validator/build.json +0 -0
  94. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/core/plugins/lib/validator/package.json +0 -0
  95. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/core/plugins/lib/validator/src/form-validator.js +0 -0
  96. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/core/plugins/lib/validator/src/main.js +0 -0
  97. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/core/router.js +0 -0
  98. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/core/server.express.js +0 -0
  99. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/core/server.isaac.js +0 -0
  100. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/core/server.js +0 -0
  101. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/core/status.codes +0 -0
  102. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/core/template/boilerplate/bundle/config/app.json +0 -0
  103. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/core/template/boilerplate/bundle/config/routing.json +0 -0
  104. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/core/template/boilerplate/bundle/config/settings.json +0 -0
  105. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/core/template/boilerplate/bundle/config/settings.server.json +0 -0
  106. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/core/template/boilerplate/bundle/config/templates.json +4 -4
  107. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/core/template/boilerplate/bundle/controllers/controller.content.js +0 -0
  108. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/core/template/boilerplate/bundle/controllers/controller.js +0 -0
  109. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/core/template/boilerplate/bundle/controllers/setup.js +0 -0
  110. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/core/template/boilerplate/bundle/index.js +0 -0
  111. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/core/template/boilerplate/bundle_namespace/controllers/controller.js +0 -0
  112. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/core/template/boilerplate/bundle_public/css/default.css +0 -0
  113. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/core/template/boilerplate/bundle_public/css/vendor/readme.md +0 -0
  114. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/core/template/boilerplate/bundle_public/favicon.ico +0 -0
  115. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/core/template/boilerplate/bundle_public/js/vendor/readme.md +0 -0
  116. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/core/template/boilerplate/bundle_public/readme.md +0 -0
  117. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/core/template/boilerplate/bundle_templates/handlers/main.js +0 -0
  118. package/framework/v0.1.1-alpha.130/core/template/boilerplate/bundle_templates/html/content/homepage.html +8 -0
  119. package/framework/v0.1.1-alpha.130/core/template/boilerplate/bundle_templates/html/includes/error-msg-noscript.html +11 -0
  120. package/framework/v0.1.1-alpha.130/core/template/boilerplate/bundle_templates/html/includes/error-msg-outdated-browser.html +8 -0
  121. package/framework/{v0.1.1-alpha.13/core/template/boilerplate/bundle_templates/html/layout → v0.1.1-alpha.130/core/template/boilerplate/bundle_templates/html/layouts}/main.html +10 -3
  122. package/framework/v0.1.1-alpha.130/core/template/command/gina.bat.tpl +8 -0
  123. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/core/template/command/gina.tpl +0 -0
  124. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/core/template/conf/env.json +0 -0
  125. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/core/template/conf/manifest.json +0 -0
  126. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/core/template/conf/package.json +0 -0
  127. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/core/template/conf/settings.json +0 -0
  128. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/core/template/conf/statics.json +3 -3
  129. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/core/template/conf/templates.json +2 -2
  130. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/core/template/error/client/json/401.json +0 -0
  131. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/core/template/error/client/json/403.json +0 -0
  132. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/core/template/error/client/json/404.json +0 -0
  133. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/core/template/error/server/html/50x.html +0 -0
  134. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/core/template/error/server/json/500.json +0 -0
  135. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/core/template/error/server/json/503.json +0 -0
  136. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/core/template/extensions/logger/config.json +0 -0
  137. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/helpers/console.js +0 -0
  138. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/helpers/context.js +0 -0
  139. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/helpers/dateFormat.js +0 -0
  140. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/helpers/index.js +0 -0
  141. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/helpers/json/README.md +0 -0
  142. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/helpers/json/package.json +0 -0
  143. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/helpers/json/src/main.js +0 -0
  144. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/helpers/path.js +86 -80
  145. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/helpers/plugins/README.md +0 -0
  146. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/helpers/plugins/package.json +0 -0
  147. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/helpers/plugins/src/api-error.js +0 -0
  148. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/helpers/plugins/src/main.js +0 -0
  149. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/helpers/prototypes.js +35 -36
  150. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/helpers/task.js +21 -14
  151. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/helpers/text.js +0 -0
  152. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/lib/archiver/README.md +0 -0
  153. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/lib/archiver/build.json +0 -0
  154. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/lib/archiver/package.json +0 -0
  155. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/lib/archiver/src/dep/jszip.min.js +0 -0
  156. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/lib/archiver/src/main.js +0 -0
  157. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/lib/cmd/aliases.json +0 -0
  158. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/lib/cmd/bundle/add.js +43 -17
  159. package/framework/v0.1.1-alpha.130/lib/cmd/bundle/arguments.json +6 -0
  160. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/lib/cmd/bundle/copy.js +0 -0
  161. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/lib/cmd/bundle/cp.js +0 -0
  162. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/lib/cmd/bundle/help.js +0 -0
  163. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/lib/cmd/bundle/help.txt +0 -0
  164. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/lib/cmd/bundle/list.js +0 -0
  165. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/lib/cmd/bundle/remove.js +22 -22
  166. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/lib/cmd/bundle/rename.js +0 -0
  167. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/lib/cmd/bundle/restart.js +0 -0
  168. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/lib/cmd/bundle/rm.js +0 -0
  169. package/framework/v0.1.1-alpha.130/lib/cmd/bundle/start.js +408 -0
  170. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/lib/cmd/bundle/status.js +0 -0
  171. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/lib/cmd/bundle/stop.js +89 -74
  172. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/lib/cmd/env/add.js +0 -0
  173. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/lib/cmd/env/get.js +0 -0
  174. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/lib/cmd/env/help.js +0 -0
  175. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/lib/cmd/env/help.txt +0 -0
  176. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/lib/cmd/env/link-dev.js +0 -0
  177. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/lib/cmd/env/list.js +0 -0
  178. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/lib/cmd/env/remove.js +0 -0
  179. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/lib/cmd/env/rm.js +0 -0
  180. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/lib/cmd/env/set.js +0 -0
  181. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/lib/cmd/env/unset.js +0 -0
  182. package/framework/{v0.1.1-alpha.13/lib/cmd/scope → v0.1.1-alpha.130/lib/cmd/env}/use.js +21 -1
  183. package/framework/v0.1.1-alpha.130/lib/cmd/framework/build.js +85 -0
  184. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/lib/cmd/framework/dot.js +0 -0
  185. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/lib/cmd/framework/get.js +0 -0
  186. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/lib/cmd/framework/help.js +0 -0
  187. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/lib/cmd/framework/help.txt +0 -0
  188. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/lib/cmd/framework/init.js +64 -16
  189. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/lib/cmd/framework/msg.json +0 -0
  190. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/lib/cmd/framework/open.js +15 -0
  191. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/lib/cmd/framework/restart.js +53 -25
  192. package/framework/v0.1.1-alpha.130/lib/cmd/framework/set.js +264 -0
  193. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/lib/cmd/framework/start.js +35 -12
  194. package/framework/v0.1.1-alpha.130/lib/cmd/framework/status.js +123 -0
  195. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/lib/cmd/framework/stop.js +44 -28
  196. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/lib/cmd/framework/tail.js +50 -46
  197. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/lib/cmd/framework/update.js +0 -0
  198. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/lib/cmd/framework/version.js +12 -3
  199. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/lib/cmd/gina-dev.1.md +0 -0
  200. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/lib/cmd/gina-framework.1.md +0 -0
  201. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/lib/cmd/gina.1.md +0 -0
  202. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/lib/cmd/helper.js +0 -0
  203. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/lib/cmd/index.js +21 -21
  204. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/lib/cmd/msg.json +0 -0
  205. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/lib/cmd/port/help.js +0 -0
  206. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/lib/cmd/port/help.txt +0 -0
  207. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/lib/cmd/port/inc/scan.js +0 -0
  208. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/lib/cmd/port/list.js +0 -0
  209. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/lib/cmd/port/set.js +0 -0
  210. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/lib/cmd/project/add.js +120 -107
  211. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/lib/cmd/project/arguments.json +0 -0
  212. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/lib/cmd/project/build.js +0 -0
  213. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/lib/cmd/project/help.js +0 -0
  214. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/lib/cmd/project/help.txt +0 -0
  215. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/lib/cmd/project/import.js +0 -0
  216. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/lib/cmd/project/list.js +0 -0
  217. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/lib/cmd/project/move.js +0 -0
  218. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/lib/cmd/project/remove.js +17 -17
  219. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/lib/cmd/project/rename.js +0 -0
  220. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/lib/cmd/project/restart.js +0 -0
  221. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/lib/cmd/project/rm.js +0 -0
  222. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/lib/cmd/project/start.js +0 -0
  223. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/lib/cmd/project/status.js +0 -0
  224. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/lib/cmd/project/stop.js +0 -0
  225. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/lib/cmd/protocol/help.js +0 -0
  226. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/lib/cmd/protocol/help.txt +0 -0
  227. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/lib/cmd/protocol/list.js +0 -0
  228. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/lib/cmd/protocol/set.js +0 -0
  229. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/lib/cmd/scope/help.js +0 -0
  230. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/lib/cmd/scope/help.txt +0 -0
  231. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/lib/cmd/scope/link-local.js +0 -0
  232. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/lib/cmd/scope/list.js +0 -0
  233. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/lib/cmd/scope/remove.js +0 -0
  234. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/lib/cmd/scope/rm.js +0 -0
  235. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/lib/cmd/scope/set.js +0 -0
  236. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/lib/cmd/scope/unset.js +0 -0
  237. package/framework/{v0.1.1-alpha.13/lib/cmd/env → v0.1.1-alpha.130/lib/cmd/scope}/use.js +0 -0
  238. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/lib/cmd/view/add.js +34 -9
  239. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/lib/collection/README.md +0 -0
  240. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/lib/collection/build.json +0 -0
  241. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/lib/collection/package.json +0 -0
  242. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/lib/collection/src/main.js +0 -0
  243. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/lib/config.js +0 -0
  244. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/lib/cron/README.md +0 -0
  245. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/lib/cron/package.json +0 -0
  246. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/lib/cron/src/main.js +0 -0
  247. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/lib/generator/index.js +0 -0
  248. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/lib/index.js +0 -0
  249. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/lib/inherits/LICENSE +0 -0
  250. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/lib/inherits/README.md +0 -0
  251. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/lib/inherits/example/inheriting_eventemitter.js +0 -0
  252. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/lib/inherits/example/protected_inheritance.js +0 -0
  253. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/lib/inherits/example/simple_inheritance.js +0 -0
  254. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/lib/inherits/example/super_attribute_overridden_by_child_on_init.js +0 -0
  255. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/lib/inherits/package.json +0 -0
  256. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/lib/inherits/src/main.js +0 -0
  257. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/lib/logger/README.md +0 -0
  258. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/lib/logger/package.json +0 -0
  259. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/lib/logger/src/containers/default/index.js +0 -2
  260. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/lib/logger/src/containers/file/index.js +8 -6
  261. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/lib/logger/src/containers/file/lib/logrotator/README.md +0 -0
  262. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/lib/logger/src/containers/file/lib/logrotator/index.js +0 -0
  263. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/lib/logger/src/containers/mq/index.js +1 -1
  264. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/lib/logger/src/containers/mq/listener.js +16 -14
  265. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/lib/logger/src/containers/mq/speaker.js +4 -2
  266. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/lib/logger/src/helper.js +0 -0
  267. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/lib/logger/src/main.js +0 -0
  268. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/lib/math/index.js +0 -0
  269. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/lib/merge/README.md +0 -0
  270. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/lib/merge/example/merge.js +0 -0
  271. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/lib/merge/example/merge_2_literal objects.js +0 -0
  272. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/lib/merge/example/merge_and_preserve_first.js +0 -0
  273. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/lib/merge/package.json +0 -0
  274. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/lib/merge/src/main.js +0 -0
  275. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/lib/model.js +0 -0
  276. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/lib/proc.js +70 -43
  277. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/lib/routing/README.md +0 -0
  278. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/lib/routing/build.json +0 -0
  279. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/lib/routing/package.json +0 -0
  280. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/lib/routing/src/main.js +0 -0
  281. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/lib/session-store.js +0 -0
  282. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/lib/shell.js +0 -0
  283. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/lib/swig-filters/README.md +0 -0
  284. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/lib/swig-filters/package.json +0 -0
  285. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/lib/swig-filters/src/main.js +0 -0
  286. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/lib/url/README.md +0 -0
  287. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/lib/url/index.js +0 -0
  288. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/lib/url/mocks.json +0 -0
  289. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/lib/url/routing.json +0 -0
  290. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/lib/url/test.js +0 -0
  291. package/framework/{v0.1.1-alpha.13 → v0.1.1-alpha.130}/lib/validator.js +0 -0
  292. package/framework/v0.1.1-alpha.130/package.json +14 -0
  293. package/package.json +30 -21
  294. package/resources/home/main.json +19 -1
  295. package/resources/home/settings.json +5 -0
  296. package/resources/home/user/extensions/logger/default/config.json +1 -1
  297. package/resources/package.json.template +28 -17
  298. package/script/post_install.js +393 -120
  299. package/script/post_publish.js +185 -0
  300. package/script/pre_install.js +424 -76
  301. package/script/prepare_version.js +151 -21
  302. package/utils/helper.js +223 -41
  303. package/utils/prototypes.js +9 -9
  304. package/utils/prototypes.json_clone.js +31 -31
  305. package/doc/framework/cli/doc.json +0 -9
  306. package/doc/framework/index.md +0 -60
  307. package/framework/v0.1.1-alpha.13/VERSION +0 -1
  308. package/framework/v0.1.1-alpha.13/core/template/boilerplate/bundle_templates/html/homepage.html +0 -4
  309. package/framework/v0.1.1-alpha.13/lib/cmd/bundle/arguments.json +0 -4
  310. package/framework/v0.1.1-alpha.13/lib/cmd/bundle/start.js +0 -394
  311. package/framework/v0.1.1-alpha.13/lib/cmd/framework/set.js +0 -161
  312. package/framework/v0.1.1-alpha.13/lib/cmd/framework/status.js +0 -72
  313. package/framework/v0.1.1-alpha.13/package.json +0 -14
@@ -7,6 +7,7 @@
7
7
  */
8
8
 
9
9
  var fs = require('fs');
10
+ var util = require('util');
10
11
  var Events = require('events');
11
12
  var Path = require('path');
12
13
 
@@ -33,7 +34,7 @@ function PathHelper() {
33
34
 
34
35
  this.paths = [];
35
36
  var _this = this;
36
-
37
+
37
38
  /**
38
39
  * _
39
40
  * PathHelper Constructor
@@ -47,11 +48,11 @@ function PathHelper() {
47
48
  * */
48
49
 
49
50
  _ = function(path, force) {
50
-
51
+
51
52
  if ( typeof(path) == 'undefined' || !path || path == '' || path.length <=2 ) {
52
53
  throw new Error('This source cannot be used: `'+ path +'`')
53
54
  }
54
-
55
+
55
56
  if ( typeof(force) == undefined) {
56
57
  force = _this.force = false
57
58
  }
@@ -115,14 +116,14 @@ function PathHelper() {
115
116
  if (_this.paths.indexOf(path) < 0) {
116
117
  _this.paths.push(path)
117
118
  }
118
- }
119
-
119
+ }
120
+
120
121
  return path
121
122
  }
122
123
  }
123
124
  return null
124
125
  };
125
-
126
+
126
127
 
127
128
  _.prototype.sep = Path.sep;
128
129
  _.prototype.start = (process.platform != "win32") ? "/" : "";
@@ -224,8 +225,8 @@ function PathHelper() {
224
225
  }
225
226
  return self
226
227
  }
227
-
228
- var existsSync = function(value) {
228
+
229
+ var existsSync = function(value) {
229
230
  if ( typeof(fs.accessSync) != 'undefined' ) {
230
231
  try {
231
232
  fs.accessSync(value, fs.constants.F_OK);
@@ -235,12 +236,12 @@ function PathHelper() {
235
236
  }
236
237
  } else { // support for old version of nodejs
237
238
  return fs.existsSync(value);
238
- }
239
+ }
239
240
  }
240
241
  _.prototype.existsSync = function() {
241
242
  return existsSync(this.value);
242
243
  }
243
-
244
+
244
245
  var exists = function(value, callback) {
245
246
  if ( typeof(fs.access) != 'undefined' ) {
246
247
  fs.access(value, fs.constants.F_OK, (err) => {
@@ -250,21 +251,21 @@ function PathHelper() {
250
251
  fs.exists(value, function(found) {
251
252
  callback(found)
252
253
  })
253
- }
254
+ }
254
255
  }
255
- _.prototype.exists = function(callback) {
256
+ _.prototype.exists = function(callback) {
256
257
  exists(this.value, callback);
257
258
  }
258
-
259
+
259
260
  _.prototype.isWritableSync = function() {
260
-
261
+
261
262
  if ( typeof(fs.accessSync) != 'undefined' ) {
262
263
  try {
263
264
  fs.accessSync(this.value, fs.constants.W_OK);
264
- return true
265
+ return true
265
266
  } catch (err) {
266
267
  return false
267
- }
268
+ }
268
269
  } else { // support for old version of nodejs
269
270
  var canWrite = false
270
271
  try {
@@ -273,10 +274,10 @@ function PathHelper() {
273
274
  canWrite = false
274
275
  }
275
276
  return canWrite
276
- }
277
+ }
277
278
  }
278
279
 
279
- _.prototype.isWritable = function(callback) {
280
+ _.prototype.isWritable = function(callback) {
280
281
  if ( typeof(fs.access) != 'undefined' ) {
281
282
  fs.access(this.value, fs.constants.F_OK, (err) => {
282
283
  callback( (err) ? false: true )
@@ -289,7 +290,7 @@ function PathHelper() {
289
290
  }
290
291
  callback( canWrite )
291
292
  })
292
- }
293
+ }
293
294
  }
294
295
 
295
296
  /**
@@ -496,16 +497,16 @@ function PathHelper() {
496
497
  }
497
498
  }
498
499
  }
499
-
500
+
500
501
  /**
501
502
  * symlinkSync
502
- *
503
- * @param {string} source
504
- * @param {string} destination
503
+ *
504
+ * @param {string} source
505
+ * @param {string} destination
505
506
  * @param {string} type - Only available from node v12.0.0 & only available on Windows and ignored on other platforms
506
507
  */
507
508
  var symlinkSync = function(source, destination, type) {
508
- // About junstion for windows (only):
509
+ // About junstion for windows (only):
509
510
  // reminders: creating a symbolic link requires special privilege (by default, only available to elevated processes) whereas creating a junction only requires access to the file system.
510
511
  // https://docs.microsoft.com/en-us/sysinternals/downloads/junction
511
512
  // https://superuser.com/questions/343074/directory-junction-vs-directory-symbolic-link
@@ -513,19 +514,19 @@ function PathHelper() {
513
514
  throw new Error('Cannot complete symlinkSync from `'+ source +'`: the path does not exist.');
514
515
  }
515
516
  var nodeVersion = process.version.replace(/v/, '').split(/\./g)[0];
516
-
517
+
517
518
  if (
518
- process.platform == "win32"
519
- && ~~nodeVersion >= 12
519
+ process.platform == "win32"
520
+ && ~~nodeVersion >= 12
520
521
  && typeof(type) == 'undefined'
521
522
  ||
522
- process.platform == "win32"
523
- && ~~nodeVersion >= 12
523
+ process.platform == "win32"
524
+ && ~~nodeVersion >= 12
524
525
  && !type
525
526
  ||
526
- process.platform == "win32"
527
- && ~~nodeVersion >= 12
528
- && type == ''
527
+ process.platform == "win32"
528
+ && ~~nodeVersion >= 12
529
+ && type == ''
529
530
  ) {
530
531
  // check source type
531
532
  if ( fs.lstatSync( source ).isDirectory() ) {
@@ -535,49 +536,49 @@ function PathHelper() {
535
536
  type = 'file'
536
537
  }
537
538
  }
538
-
539
- if (
540
- process.platform == "win32"
541
- && ~~nodeVersion >= 12
542
- && typeof(type) != 'undefined'
543
- && type != 'null'
539
+
540
+ if (
541
+ process.platform == "win32"
542
+ && ~~nodeVersion >= 12
543
+ && typeof(type) != 'undefined'
544
+ && type != 'null'
544
545
  && type != ''
545
546
  ) { // can use type
546
-
547
+
547
548
  if ( ['dir', 'file', 'junction'].indexOf(type) < 0 ) {
548
549
  throw new Error('Wrong symlink type: '+ type);
549
550
  }
550
551
  }
551
-
552
+
552
553
  fs.symlinkSync(source, destination, type);
553
554
  }
554
555
  _.prototype.symlinkSync = function(destination, type) {
555
556
  var self = this;
556
557
  var source = self.value;
557
-
558
+
558
559
  // if ( !existsSync(source) ) {
559
560
  // throw new Error('Cannot complete symlink from `'+ source +'`: the path does not exist.');
560
561
  // }
561
562
  symlinkSync(source, destination, type);
562
-
563
+
563
564
  }
564
-
565
+
565
566
  _.prototype.renameSync = function(destination) {
566
567
  var self = this;
567
568
  var source = self.value;
568
-
569
+
569
570
  if ( !existsSync(source) ) {
570
571
  throw new Error('Cannot complete rename from `'+ source +'`: the path does not exist.');
571
572
  }
572
-
573
+
573
574
  try {
574
575
  fs.renameSync(source, destination);
575
576
  } catch (err) {
576
577
  throw err
577
- }
578
+ }
578
579
  }
579
-
580
-
580
+
581
+
581
582
  /**
582
583
  * copy, file or entire folder
583
584
  *
@@ -600,21 +601,22 @@ function PathHelper() {
600
601
  * */
601
602
 
602
603
  _.prototype.cp = function(target, excluded, cb) {
603
-
604
- if ( typeof(target) == 'undefined' || !target || target == '' || target.length <=2 ) {
605
- cb( new Error('This target cannot be used: `'+ target +'`'));
606
- return;
607
- }
608
-
604
+
609
605
  if ( typeof(excluded) == 'function') {
610
606
  cb = excluded;
611
607
  excluded = undefined
612
608
  }
609
+
610
+ if ( typeof(target) == 'undefined' || !target || target == '' || target.length <=2 ) {
611
+ cb( new Error('This target cannot be used: `'+ target +'`'));
612
+ return;
613
+ }
614
+
613
615
  var self = this;
614
616
  //Enter dir & start rm.
615
617
  var p = self.value;
616
618
  //console.debug("starting copying ", p, " => ", target);
617
-
619
+
618
620
  cp(p, target, excluded)
619
621
  .onComplete( function(err, destination, method) {
620
622
  cb(err, destination);
@@ -623,11 +625,11 @@ function PathHelper() {
623
625
  }
624
626
 
625
627
  var cp = function(source, destination, excluded) {
626
-
628
+
627
629
  if ( !existsSync(source) ) {
628
630
  throw new Error('Cannot complete copy from `'+ source +'`: the path does not exist.');
629
631
  }
630
-
632
+
631
633
  /**
632
634
  * BO Targeting folder content
633
635
  * This only matters when copy is done Folder To Folder.
@@ -665,12 +667,12 @@ function PathHelper() {
665
667
  // 1) File => Dir (add if exist else, throw error).
666
668
  // 2) File => File (create or replace if exists).
667
669
  // 3) Dir => Dir (create or replace if exists).
668
-
670
+
669
671
  if (err) {
670
672
  e.emit("cp#complete", err);
671
673
  return;
672
674
  }
673
-
675
+
674
676
  if ( stats.isSymbolicLink() ) {
675
677
  //console.debug('#1 ('+process.version+') Found symlink: '+ source,'\n', JSON.stringify(stats, null, 4));
676
678
  try {
@@ -679,7 +681,7 @@ function PathHelper() {
679
681
  e.emit("cp#complete", realPathError, destination);
680
682
  return;
681
683
  }
682
-
684
+
683
685
  e.emit("cp#complete", err, destination)
684
686
  } else if ( !stats.isDirectory() ) {
685
687
  // 1) & 2) File => Dir (add if exist else, throw error).
@@ -877,12 +879,12 @@ function PathHelper() {
877
879
  list = ( typeof(list) != 'undefined' ) ? list : [];
878
880
  listTo = ( typeof(listTo) != 'undefined' ) ? listTo : [];
879
881
  i = ( typeof(i) != 'undefined' ) ? i : 0;
880
-
882
+
881
883
  //console.debug('[browseCopy]', list.length, i, sourceDir, destinationDir);
882
884
  if (
883
- sourceDir == undefined
884
- || sourceDir == ''
885
- || destinationDir == undefined
885
+ sourceDir == undefined
886
+ || sourceDir == ''
887
+ || destinationDir == undefined
886
888
  || destinationDir == ''
887
889
  ) {
888
890
  var copyError = false;
@@ -893,7 +895,7 @@ function PathHelper() {
893
895
  end(callback, copyError);
894
896
  } else {
895
897
  fs.lstat(sourceDir, function(err, stats) {
896
-
898
+
897
899
  if ( stats.isSymbolicLink() ) {
898
900
  //console.debug('real path: ', fs.realpathSync(list[i]));
899
901
  //console.debug('#2 ('+process.version+') Found symlink: '+ sourceDir,'\n', JSON.stringify(stats, null, 4));
@@ -902,7 +904,7 @@ function PathHelper() {
902
904
  } catch (realPathError) {
903
905
  throw realPathError;
904
906
  }
905
-
907
+
906
908
  ++i;
907
909
  browseCopy(list[i], listTo[i], excluded, callback, list, listTo, i)
908
910
  } else if ( stats.isDirectory() ) {
@@ -1007,7 +1009,7 @@ function PathHelper() {
1007
1009
  var path = '/'+ (str = source.split(/\//g))[str.length-1];
1008
1010
  destination += path
1009
1011
  }
1010
-
1012
+
1011
1013
  exists(destination, function(replaceFlag) {
1012
1014
  if (replaceFlag) {
1013
1015
  fs.unlink(destination, function(err) {
@@ -1093,20 +1095,20 @@ function PathHelper() {
1093
1095
  }
1094
1096
  })
1095
1097
  }
1096
- })
1098
+ })
1097
1099
  }
1098
1100
 
1099
1101
  var mv = function(self, target) {
1100
1102
  console.debug("starting mv/copy from ", self.value, " to ", target);
1101
1103
  cp(self.value, target)
1102
1104
  .onComplete(function onCpMv(err) {
1103
- console.debug("cp done... now unlinking source ", self.value);
1105
+ console.debug("cp done... now unlinking source ", self.value);
1104
1106
  if (err) {
1105
1107
  e.emit('mv#complete', err);
1106
1108
  return;
1107
1109
  }
1108
-
1109
-
1110
+
1111
+
1110
1112
  rm(self.value).onComplete( function(err, path){
1111
1113
  console.debug('rm() complete');
1112
1114
  e.emit('mv#complete', err, path)
@@ -1140,14 +1142,18 @@ function PathHelper() {
1140
1142
  *
1141
1143
  * */
1142
1144
  _.prototype.rmSync = function() {
1143
-
1145
+
1144
1146
  if ( !existsSync(this.value) ) {
1145
1147
  return this // always return the instance for sync
1146
1148
  }
1147
1149
  cleanSlashes(this);
1148
1150
 
1149
1151
  try {
1150
-
1152
+
1153
+ if ( fs.lstatSync(this.value).isSymbolicLink() ) {
1154
+ fs.unlinkSync(this.value);
1155
+ return this;
1156
+ }
1151
1157
  browseRemoveSync(this.value);
1152
1158
  return this // always return the instance for sync
1153
1159
  } catch (err) {
@@ -1219,7 +1225,7 @@ function PathHelper() {
1219
1225
  err = removeFileSync(source);
1220
1226
  if (err instanceof Error)
1221
1227
  return err;
1222
-
1228
+
1223
1229
  ++i;
1224
1230
  browseRemoveSync(list[i], list, folders, i)
1225
1231
  } else if ( stats.isDirectory() ) {
@@ -1500,7 +1506,7 @@ function PathHelper() {
1500
1506
  }
1501
1507
  }
1502
1508
 
1503
-
1509
+
1504
1510
 
1505
1511
  var parseCtxObject = function (o, obj) {
1506
1512
 
@@ -1518,12 +1524,12 @@ function PathHelper() {
1518
1524
  /**
1519
1525
  * setPath
1520
1526
  * Set path by name
1521
- *
1527
+ *
1522
1528
  * @param {String} name - Path name
1523
1529
  * @returns {String} path
1524
1530
  * */
1525
- setPath = function(name, path) {
1526
-
1531
+ setPath = function(name, path) {
1532
+
1527
1533
  if ( !path || typeof(path) == 'undefined' || path == '' ) {
1528
1534
  throw new Error('setPath(name, path): path cannot be empty or undefined')
1529
1535
  }
@@ -1531,8 +1537,8 @@ function PathHelper() {
1531
1537
  // var stats = fs.lstatSync(path);
1532
1538
  // if (stats instanceof Error) {
1533
1539
  // throw new stats
1534
- // }
1535
- // if ( stats.isSymbolicLink() ) {
1540
+ // }
1541
+ // if ( stats.isSymbolicLink() ) {
1536
1542
  // path = fs.realpathSync(path)
1537
1543
  // }
1538
1544
  var paths = null;
@@ -1,14 +1,14 @@
1
1
  function PrototypesHelper(instance) {
2
-
2
+
3
3
  var isGFFCtx = ( ( typeof(module) !== 'undefined' ) && module.exports ) ? false : true;
4
-
4
+
5
5
  var local = instance || null;
6
6
  var envVars = null;
7
7
  // since for some cases we cannot use gina envVars directly
8
- if (
8
+ if (
9
9
  typeof(GINA_DIR) == 'undefined'
10
10
  && !isGFFCtx
11
- && typeof(process) != 'undefined'
11
+ && typeof(process) != 'undefined'
12
12
  && process.argv.length > 3
13
13
  ) {
14
14
  if ( /^\{/.test(process.argv[2]) ) {
@@ -20,27 +20,27 @@ function PrototypesHelper(instance) {
20
20
  var envVarFile = process.argv[2].split(/\-\-argv\-filename\=/)[1];
21
21
  envVars = JSON.parse(fs.readFileSync(envVarFile).toString()).envVars;
22
22
  }
23
-
23
+
24
24
  }
25
25
  // else if (isGFFCtx) {
26
26
  // envVars = window;
27
27
  // }
28
-
29
-
28
+
29
+
30
30
  // dateFormat proto
31
31
  if ( local && typeof(local) != 'undefined' && typeof(local.dateFormat) != 'undefined' ) {
32
32
  for (let method in local.dateFormat) {
33
-
33
+
34
34
  if ( typeof(Date[method]) != 'undefined' )
35
35
  continue;
36
-
36
+
37
37
  Object.defineProperty( Date.prototype, method, {
38
38
  writable: false,
39
39
  enumerable: false,
40
40
  //If loaded several times, it can lead to an exception. That's why I put this.
41
41
  configurable: true,
42
- value: function() {
43
-
42
+ value: function() {
43
+
44
44
  var newArgs = { 0: this }, i = 1;
45
45
  for (var a in arguments) {
46
46
  newArgs[i] = arguments[a];
@@ -49,20 +49,20 @@ function PrototypesHelper(instance) {
49
49
  newArgs.length = i;
50
50
  // don't touch this, we need the name
51
51
  const name = method;
52
-
52
+
53
53
  return local.dateFormat[name].apply(this, newArgs );
54
54
  }
55
55
  });
56
-
56
+
57
57
  }
58
58
  }
59
-
60
-
59
+
60
+
61
61
 
62
62
  if ( typeof(Array.clone) == 'undefined' ) {
63
63
  /**
64
64
  * clone array
65
- *
65
+ *
66
66
  * @returns {array} Return cloned array
67
67
  * @supress {misplacedTypeAnnotation}
68
68
  **/
@@ -74,27 +74,27 @@ function PrototypesHelper(instance) {
74
74
  value: function(){ return this.slice(0); }
75
75
  });
76
76
  }
77
-
77
+
78
78
  if ( typeof(JSON.clone) == 'undefined' && !isGFFCtx ) {
79
79
  if ( typeof(envVars) != 'undefined' ) {
80
80
  JSON.clone = require( envVars.GINA_DIR +'/utils/prototypes.json_clone');
81
81
  } else {
82
82
  JSON.clone = require( GINA_DIR +'/utils/prototypes.json_clone');
83
- }
83
+ }
84
84
  }
85
-
85
+
86
86
  if ( typeof(JSON.escape) == 'undefined' ) {
87
87
  /**
88
88
  * JSON.escape
89
89
  * Escape special characters
90
- *
91
- * Changes made here must be reflected in:
90
+ *
91
+ * Changes made here must be reflected in:
92
92
  * - gina/utils/prototypes.js
93
93
  * - gina/framework/version/helpers/prototypes.js
94
- * - gina/framework/version/core/asset/js/plugin/src/gina/utils/polyfill.js
95
- *
94
+ * - gina/framework/version/core/asset/plugin/src/gina/utils/polyfill.js
95
+ *
96
96
  * @param {object} jsonStr
97
- *
97
+ *
98
98
  * @returns {object} escaped JSON string
99
99
  **/
100
100
  var escape = function(jsonStr){
@@ -104,14 +104,14 @@ function PrototypesHelper(instance) {
104
104
  .replace(/\r/g, "\\r")
105
105
  .replace(/\t/g, "\\t")
106
106
  ;
107
- } catch (err) {
107
+ } catch (err) {
108
108
  throw err;
109
109
  }
110
110
  };
111
-
111
+
112
112
  JSON.escape = escape;
113
113
  }
114
-
114
+
115
115
 
116
116
  if ( typeof(Array.toString) == 'undefined' ) {
117
117
  Array.prototype.toString = function(){
@@ -128,7 +128,7 @@ function PrototypesHelper(instance) {
128
128
  value: function(o){ return this.indexOf(o)!=-1 }
129
129
  });
130
130
  }
131
-
131
+
132
132
  if ( typeof(Array.from) == 'undefined' ) { // if not under ES6
133
133
 
134
134
  Object.defineProperty( Array.prototype, 'from', {
@@ -154,7 +154,7 @@ function PrototypesHelper(instance) {
154
154
  }
155
155
  });
156
156
  }
157
-
157
+
158
158
  if ( typeof(Object.count) == 'undefined' ) {
159
159
  Object.defineProperty( Object.prototype, 'count', {
160
160
  writable: true,
@@ -166,7 +166,7 @@ function PrototypesHelper(instance) {
166
166
  try {
167
167
  var self = this;
168
168
  if (this instanceof String) self = JSON.parse(this);
169
-
169
+
170
170
  for (var prop in this)
171
171
  if (this.hasOwnProperty(prop)) ++i;
172
172
 
@@ -177,10 +177,10 @@ function PrototypesHelper(instance) {
177
177
 
178
178
  }
179
179
  });
180
- }
180
+ }
181
+
182
+
181
183
 
182
-
183
-
184
184
  if ( typeof(global) != 'undefined' && typeof(global.__stack) == 'undefined' ) {
185
185
  /**
186
186
  * __stack Get current stack
@@ -204,8 +204,8 @@ function PrototypesHelper(instance) {
204
204
  }
205
205
  });
206
206
  }
207
-
208
-
207
+
208
+
209
209
  }
210
210
 
211
211
  if ( ( typeof(module) !== 'undefined' ) && module.exports ) {
@@ -215,4 +215,3 @@ if ( ( typeof(module) !== 'undefined' ) && module.exports ) {
215
215
  // Publish as AMD module
216
216
  define( function() { return PrototypesHelper })
217
217
  }
218
-