gina 0.0.9-p91b → 0.1.1-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/INSTALL.md +46 -0
- package/{core/asset/html/static.html → Icon/r} +0 -0
- package/LICENSE +1 -1
- package/README-4Contributors.md +96 -0
- package/README.md +296 -104
- package/bin/cli +287 -0
- package/bin/cli-debug +60 -0
- package/bin/cmd +184 -0
- package/bin/gina +180 -0
- package/config/logger.json +17 -0
- package/doc/framework/cli/doc.json +9 -0
- package/doc/framework/index.md +60 -0
- package/framework/v0.1.1-alpha.2/AUTHORS +7 -0
- package/{core/utils/lib/inherits → framework/v0.1.1-alpha.2}/LICENSE +1 -1
- package/framework/v0.1.1-alpha.2/VERSION +1 -0
- package/{core/locales/dist/language/en.json → framework/v0.1.1-alpha.2/core/asset/html/nolayout.html} +0 -0
- package/{core/locales/dist/language/fr.json → framework/v0.1.1-alpha.2/core/asset/html/static.html} +0 -0
- package/{core → framework/v0.1.1-alpha.2/core}/asset/img/android-chrome-192x192.png +0 -0
- package/{core → framework/v0.1.1-alpha.2/core}/asset/img/android-chrome-512x512.png +0 -0
- package/{core → framework/v0.1.1-alpha.2/core}/asset/img/apple-touch-icon.png +0 -0
- package/{core → framework/v0.1.1-alpha.2/core}/asset/img/favicon-16x16.png +0 -0
- package/{core → framework/v0.1.1-alpha.2/core}/asset/img/favicon-32x32.png +0 -0
- package/{core → framework/v0.1.1-alpha.2/core}/asset/img/favicon.ico +0 -0
- package/framework/v0.1.1-alpha.2/core/asset/js/plugin/dist/gina.js +20904 -0
- package/framework/v0.1.1-alpha.2/core/asset/js/plugin/dist/gina.js.map +56 -0
- package/framework/v0.1.1-alpha.2/core/asset/js/plugin/dist/gina.min.css +1 -0
- package/framework/v0.1.1-alpha.2/core/asset/js/plugin/dist/gina.min.css.map +1 -0
- package/framework/v0.1.1-alpha.2/core/asset/js/plugin/dist/gina.min.js +736 -0
- package/framework/v0.1.1-alpha.2/core/asset/js/plugin/dist/gina.min.js.map +56 -0
- package/framework/v0.1.1-alpha.2/core/asset/js/plugin/dist/gina.onload.min.js +5 -0
- package/framework/v0.1.1-alpha.2/core/asset/js/plugin/dist/gina.onload.min.js.map +8 -0
- package/framework/v0.1.1-alpha.2/core/asset/js/plugin/readme.md +192 -0
- package/framework/v0.1.1-alpha.2/core/asset/js/plugin/uuid.json +23 -0
- package/framework/v0.1.1-alpha.2/core/config.js +2308 -0
- package/framework/v0.1.1-alpha.2/core/connectors/couchbase/index.js +757 -0
- package/framework/v0.1.1-alpha.2/core/connectors/couchbase/lib/connector.js +20 -0
- package/framework/v0.1.1-alpha.2/core/connectors/couchbase/lib/connector.v2.js +429 -0
- package/framework/v0.1.1-alpha.2/core/connectors/couchbase/lib/connector.v3.js +432 -0
- package/framework/v0.1.1-alpha.2/core/connectors/couchbase/lib/n1ql.js +14 -0
- package/framework/v0.1.1-alpha.2/core/connectors/couchbase/lib/session-store.js +21 -0
- package/framework/v0.1.1-alpha.2/core/connectors/couchbase/lib/session-store.v2.js +258 -0
- package/framework/v0.1.1-alpha.2/core/connectors/couchbase/lib/session-store.v3.js +341 -0
- package/{core → framework/v0.1.1-alpha.2/core}/controller/controller.framework.js +3 -2
- package/framework/v0.1.1-alpha.2/core/controller/controller.js +3990 -0
- package/{core → framework/v0.1.1-alpha.2/core}/controller/index.js +5 -5
- package/framework/v0.1.1-alpha.2/core/deps/busboy/.travis.yml +17 -0
- package/framework/v0.1.1-alpha.2/core/deps/busboy/LICENSE +19 -0
- package/framework/v0.1.1-alpha.2/core/deps/busboy/README.md +225 -0
- package/framework/v0.1.1-alpha.2/core/deps/busboy/deps/encoding/encoding-indexes.js +73 -0
- package/framework/v0.1.1-alpha.2/core/deps/busboy/deps/encoding/encoding.js +2391 -0
- package/framework/v0.1.1-alpha.2/core/deps/busboy/lib/main.js +89 -0
- package/framework/v0.1.1-alpha.2/core/deps/busboy/lib/types/multipart.js +328 -0
- package/framework/v0.1.1-alpha.2/core/deps/busboy/lib/types/urlencoded.js +214 -0
- package/framework/v0.1.1-alpha.2/core/deps/busboy/lib/utils.js +191 -0
- package/framework/v0.1.1-alpha.2/core/deps/busboy/package.json +69 -0
- package/framework/v0.1.1-alpha.2/core/deps/swig-client/swig-2.0.0.min.js +5 -0
- package/{core → framework/v0.1.1-alpha.2/core}/dev/index.js +5 -5
- package/{core → framework/v0.1.1-alpha.2/core}/dev/lib/class.js +1 -1
- package/{core → framework/v0.1.1-alpha.2/core}/dev/lib/factory.js +1 -1
- package/{core → framework/v0.1.1-alpha.2/core}/dev/lib/tools.js +0 -0
- package/framework/v0.1.1-alpha.2/core/gna.js +1070 -0
- package/{core → framework/v0.1.1-alpha.2/core}/locales/README.md +41 -2
- package/{core → framework/v0.1.1-alpha.2/core}/locales/currency.json +0 -0
- package/{core/plugins/README.md → framework/v0.1.1-alpha.2/core/locales/dist/language/en.json} +0 -0
- package/{core/plugins/lib/intl/README.md → framework/v0.1.1-alpha.2/core/locales/dist/language/fr.json} +0 -0
- package/{core → framework/v0.1.1-alpha.2/core}/locales/dist/region/en.json +0 -0
- package/framework/v0.1.1-alpha.2/core/locales/dist/region/fr.json +9492 -0
- package/{core → framework/v0.1.1-alpha.2/core}/locales/index.js +5 -4
- package/{core → framework/v0.1.1-alpha.2/core}/locales/src/make.js +15 -12
- package/{core → framework/v0.1.1-alpha.2/core}/locales/src/resources/currency.csv +0 -0
- package/{core → framework/v0.1.1-alpha.2/core}/locales/src/resources/region.csv +0 -0
- package/{core → framework/v0.1.1-alpha.2/core}/locales/src/resources/region.mapping.json +0 -0
- package/{core → framework/v0.1.1-alpha.2/core}/mime.types +0 -0
- package/{core → framework/v0.1.1-alpha.2/core}/model/entity.js +156 -196
- package/{core → framework/v0.1.1-alpha.2/core}/model/index.js +67 -48
- package/{core → framework/v0.1.1-alpha.2/core}/model/template/entityFactory.js +2 -2
- package/{core → framework/v0.1.1-alpha.2/core}/model/template/index.js +8 -10
- package/{core/plugins/lib/storage → framework/v0.1.1-alpha.2/core/plugins}/README.md +0 -0
- package/{core → framework/v0.1.1-alpha.2/core}/plugins/index.js +3 -3
- package/{core/plugins/lib/validator → framework/v0.1.1-alpha.2/core/plugins/lib/file}/README.md +0 -0
- package/{core/plugins/lib/intl → framework/v0.1.1-alpha.2/core/plugins/lib/file}/build.json +0 -0
- package/framework/v0.1.1-alpha.2/core/plugins/lib/file/package.json +25 -0
- package/{core/utils/lib/collection → framework/v0.1.1-alpha.2/core/plugins/lib/intl}/README.md +0 -0
- package/{core/plugins/lib/storage → framework/v0.1.1-alpha.2/core/plugins/lib/intl}/build.json +0 -0
- package/{core → framework/v0.1.1-alpha.2/core}/plugins/lib/intl/package.json +3 -3
- package/{core → framework/v0.1.1-alpha.2/core}/plugins/lib/intl/src/main.js +17 -1
- package/{core/utils/lib/routing → framework/v0.1.1-alpha.2/core/plugins/lib/storage}/README.md +0 -0
- package/{core/plugins/lib/validator → framework/v0.1.1-alpha.2/core/plugins/lib/storage}/build.json +0 -0
- package/{core → framework/v0.1.1-alpha.2/core}/plugins/lib/storage/package.json +2 -2
- package/{core → framework/v0.1.1-alpha.2/core}/plugins/lib/storage/src/main.js +91 -85
- package/{core/utils/lib/url → framework/v0.1.1-alpha.2/core/plugins/lib/validator}/README.md +0 -0
- package/{core/utils/lib/collection → framework/v0.1.1-alpha.2/core/plugins/lib/validator}/build.json +0 -0
- package/{core → framework/v0.1.1-alpha.2/core}/plugins/lib/validator/package.json +3 -3
- package/framework/v0.1.1-alpha.2/core/plugins/lib/validator/src/form-validator.js +1762 -0
- package/framework/v0.1.1-alpha.2/core/plugins/lib/validator/src/main.js +6917 -0
- package/framework/v0.1.1-alpha.2/core/router.js +664 -0
- package/framework/v0.1.1-alpha.2/core/server.express.js +213 -0
- package/framework/v0.1.1-alpha.2/core/server.isaac.js +386 -0
- package/framework/v0.1.1-alpha.2/core/server.js +3010 -0
- package/{core → framework/v0.1.1-alpha.2/core}/status.codes +8 -0
- package/framework/v0.1.1-alpha.2/core/template/boilerplate/bundle/config/app.json +6 -0
- package/framework/v0.1.1-alpha.2/core/template/boilerplate/bundle/config/routing.json +11 -0
- package/framework/v0.1.1-alpha.2/core/template/boilerplate/bundle/config/settings.json +9 -0
- package/framework/v0.1.1-alpha.2/core/template/boilerplate/bundle/config/settings.server.json +30 -0
- package/framework/v0.1.1-alpha.2/core/template/boilerplate/bundle/config/templates.json +42 -0
- package/framework/v0.1.1-alpha.2/core/template/boilerplate/bundle/controllers/controller.content.js +39 -0
- package/framework/v0.1.1-alpha.2/core/template/boilerplate/bundle/controllers/controller.js +30 -0
- package/framework/v0.1.1-alpha.2/core/template/boilerplate/bundle/controllers/setup.js +111 -0
- package/{core/template/samples → framework/v0.1.1-alpha.2/core/template/boilerplate}/bundle/index.js +0 -0
- package/{core/template/samples/bundle → framework/v0.1.1-alpha.2/core/template/boilerplate/bundle_namespace}/controllers/controller.js +9 -7
- package/{core/template/views → framework/v0.1.1-alpha.2/core/template/boilerplate/bundle_public}/css/default.css +0 -0
- package/{core/template/views → framework/v0.1.1-alpha.2/core/template/boilerplate/bundle_public}/css/vendor/readme.md +0 -0
- package/{core/template/views → framework/v0.1.1-alpha.2/core/template/boilerplate/bundle_public}/favicon.ico +0 -0
- package/framework/v0.1.1-alpha.2/core/template/boilerplate/bundle_public/js/vendor/readme.md +1 -0
- package/framework/v0.1.1-alpha.2/core/template/boilerplate/bundle_public/readme.md +1 -0
- package/framework/v0.1.1-alpha.2/core/template/boilerplate/bundle_templates/handlers/main.js +24 -0
- package/{core/template/views/html/default.html → framework/v0.1.1-alpha.2/core/template/boilerplate/bundle_templates/html/homepage.html} +0 -0
- package/{core/template/views/html/layout.html → framework/v0.1.1-alpha.2/core/template/boilerplate/bundle_templates/html/layout/main.html} +2 -2
- package/{core → framework/v0.1.1-alpha.2/core}/template/command/gina.bat.tpl +0 -0
- package/{core → framework/v0.1.1-alpha.2/core}/template/command/gina.tpl +1 -1
- package/framework/v0.1.1-alpha.2/core/template/conf/env.json +76 -0
- package/{core/template/conf/project.json → framework/v0.1.1-alpha.2/core/template/conf/manifest.json} +1 -0
- package/{core → framework/v0.1.1-alpha.2/core}/template/conf/package.json +2 -2
- package/framework/v0.1.1-alpha.2/core/template/conf/settings.json +92 -0
- package/framework/v0.1.1-alpha.2/core/template/conf/statics.json +10 -0
- package/framework/v0.1.1-alpha.2/core/template/conf/templates.json +37 -0
- package/{core → framework/v0.1.1-alpha.2/core}/template/error/client/json/401.json +0 -0
- package/{core → framework/v0.1.1-alpha.2/core}/template/error/client/json/403.json +0 -0
- package/{core → framework/v0.1.1-alpha.2/core}/template/error/client/json/404.json +0 -0
- package/{core → framework/v0.1.1-alpha.2/core}/template/error/server/html/50x.html +0 -0
- package/{core → framework/v0.1.1-alpha.2/core}/template/error/server/json/500.json +0 -0
- package/{core → framework/v0.1.1-alpha.2/core}/template/error/server/json/503.json +0 -0
- package/{core/utils/lib/routing/build.json → framework/v0.1.1-alpha.2/core/template/extensions/logger/config.json} +0 -0
- package/{core/utils → framework/v0.1.1-alpha.2}/helpers/console.js +3 -3
- package/{core/utils → framework/v0.1.1-alpha.2}/helpers/context.js +240 -49
- package/framework/v0.1.1-alpha.2/helpers/dateFormat.js +528 -0
- package/framework/v0.1.1-alpha.2/helpers/index.js +79 -0
- package/framework/v0.1.1-alpha.2/helpers/json/README.md +0 -0
- package/framework/v0.1.1-alpha.2/helpers/json/package.json +20 -0
- package/framework/v0.1.1-alpha.2/helpers/json/src/main.js +97 -0
- package/{core/utils → framework/v0.1.1-alpha.2}/helpers/path.js +342 -140
- package/framework/v0.1.1-alpha.2/helpers/plugins/README.md +4 -0
- package/framework/v0.1.1-alpha.2/helpers/plugins/package.json +20 -0
- package/framework/v0.1.1-alpha.2/helpers/plugins/src/api-error.js +160 -0
- package/framework/v0.1.1-alpha.2/helpers/plugins/src/main.js +32 -0
- package/framework/v0.1.1-alpha.2/helpers/prototypes.js +218 -0
- package/{core/utils → framework/v0.1.1-alpha.2}/helpers/task.js +49 -29
- package/{core/utils → framework/v0.1.1-alpha.2}/helpers/text.js +7 -7
- package/framework/v0.1.1-alpha.2/lib/archiver/README.md +0 -0
- package/framework/v0.1.1-alpha.2/lib/archiver/build.json +0 -0
- package/framework/v0.1.1-alpha.2/lib/archiver/package.json +20 -0
- package/framework/v0.1.1-alpha.2/lib/archiver/src/dep/jszip.min.js +15 -0
- package/framework/v0.1.1-alpha.2/lib/archiver/src/main.js +499 -0
- package/framework/v0.1.1-alpha.2/lib/cmd/aliases.json +13 -0
- package/framework/v0.1.1-alpha.2/lib/cmd/bundle/add.js +507 -0
- package/framework/v0.1.1-alpha.2/lib/cmd/bundle/arguments.json +4 -0
- package/framework/v0.1.1-alpha.2/lib/cmd/bundle/copy.js +15 -0
- package/framework/v0.1.1-alpha.2/lib/cmd/bundle/cp.js +2 -0
- package/framework/v0.1.1-alpha.2/lib/cmd/bundle/help.js +28 -0
- package/framework/v0.1.1-alpha.2/lib/cmd/bundle/help.txt +67 -0
- package/framework/v0.1.1-alpha.2/lib/cmd/bundle/list.js +129 -0
- package/framework/v0.1.1-alpha.2/lib/cmd/bundle/remove.js +229 -0
- package/framework/v0.1.1-alpha.2/lib/cmd/bundle/rename.js +4 -0
- package/framework/v0.1.1-alpha.2/lib/cmd/bundle/restart.js +235 -0
- package/framework/v0.1.1-alpha.2/lib/cmd/bundle/rm.js +2 -0
- package/framework/v0.1.1-alpha.2/lib/cmd/bundle/start.js +394 -0
- package/framework/v0.1.1-alpha.2/lib/cmd/bundle/status.js +3 -0
- package/framework/v0.1.1-alpha.2/lib/cmd/bundle/stop.js +232 -0
- package/framework/v0.1.1-alpha.2/lib/cmd/env/add.js +436 -0
- package/framework/v0.1.1-alpha.2/lib/cmd/env/get.js +62 -0
- package/framework/v0.1.1-alpha.2/lib/cmd/env/help.js +28 -0
- package/framework/v0.1.1-alpha.2/lib/cmd/env/help.txt +33 -0
- package/framework/v0.1.1-alpha.2/lib/cmd/env/link-dev.js +80 -0
- package/framework/v0.1.1-alpha.2/lib/cmd/env/list.js +111 -0
- package/framework/v0.1.1-alpha.2/lib/cmd/env/remove.js +150 -0
- package/framework/v0.1.1-alpha.2/lib/cmd/env/rm.js +2 -0
- package/framework/v0.1.1-alpha.2/lib/cmd/env/set.js +57 -0
- package/framework/v0.1.1-alpha.2/lib/cmd/env/unset.js +44 -0
- package/framework/v0.1.1-alpha.2/lib/cmd/env/use.js +79 -0
- package/framework/v0.1.1-alpha.2/lib/cmd/framework/dot.js +70 -0
- package/framework/v0.1.1-alpha.2/lib/cmd/framework/get.js +0 -0
- package/framework/v0.1.1-alpha.2/lib/cmd/framework/help.js +39 -0
- package/framework/v0.1.1-alpha.2/lib/cmd/framework/help.txt +31 -0
- package/framework/v0.1.1-alpha.2/lib/cmd/framework/init.js +514 -0
- package/{core/utils/lib/cmd → framework/v0.1.1-alpha.2/lib/cmd/framework}/msg.json +3 -3
- package/framework/v0.1.1-alpha.2/lib/cmd/framework/open.js +50 -0
- package/framework/v0.1.1-alpha.2/lib/cmd/framework/restart.js +124 -0
- package/framework/v0.1.1-alpha.2/lib/cmd/framework/set.js +161 -0
- package/framework/v0.1.1-alpha.2/lib/cmd/framework/start.js +96 -0
- package/framework/v0.1.1-alpha.2/lib/cmd/framework/status.js +72 -0
- package/framework/v0.1.1-alpha.2/lib/cmd/framework/stop.js +159 -0
- package/framework/v0.1.1-alpha.2/lib/cmd/framework/tail.js +183 -0
- package/framework/v0.1.1-alpha.2/lib/cmd/framework/update.js +0 -0
- package/framework/v0.1.1-alpha.2/lib/cmd/framework/version.js +44 -0
- package/framework/v0.1.1-alpha.2/lib/cmd/gina-dev.1.md +66 -0
- package/framework/v0.1.1-alpha.2/lib/cmd/gina-framework.1.md +100 -0
- package/framework/v0.1.1-alpha.2/lib/cmd/gina.1.md +79 -0
- package/framework/v0.1.1-alpha.2/lib/cmd/helper.js +1147 -0
- package/framework/v0.1.1-alpha.2/lib/cmd/index.js +170 -0
- package/framework/v0.1.1-alpha.2/lib/cmd/msg.json +20 -0
- package/framework/v0.1.1-alpha.2/lib/cmd/port/help.js +28 -0
- package/framework/v0.1.1-alpha.2/lib/cmd/port/help.txt +31 -0
- package/framework/v0.1.1-alpha.2/lib/cmd/port/inc/scan.js +108 -0
- package/framework/v0.1.1-alpha.2/lib/cmd/port/list.js +176 -0
- package/framework/v0.1.1-alpha.2/lib/cmd/port/set.js +0 -0
- package/framework/v0.1.1-alpha.2/lib/cmd/project/add.js +528 -0
- package/framework/v0.1.1-alpha.2/lib/cmd/project/arguments.json +9 -0
- package/framework/v0.1.1-alpha.2/lib/cmd/project/build.js +115 -0
- package/framework/v0.1.1-alpha.2/lib/cmd/project/help.js +28 -0
- package/framework/v0.1.1-alpha.2/lib/cmd/project/help.txt +76 -0
- package/framework/v0.1.1-alpha.2/lib/cmd/project/import.js +2 -0
- package/framework/v0.1.1-alpha.2/lib/cmd/project/list.js +55 -0
- package/framework/v0.1.1-alpha.2/lib/cmd/project/move.js +0 -0
- package/framework/v0.1.1-alpha.2/lib/cmd/project/remove.js +144 -0
- package/framework/v0.1.1-alpha.2/lib/cmd/project/rename.js +162 -0
- package/framework/v0.1.1-alpha.2/lib/cmd/project/restart.js +0 -0
- package/framework/v0.1.1-alpha.2/lib/cmd/project/rm.js +2 -0
- package/framework/v0.1.1-alpha.2/lib/cmd/project/start.js +0 -0
- package/framework/v0.1.1-alpha.2/lib/cmd/project/status.js +3 -0
- package/framework/v0.1.1-alpha.2/lib/cmd/project/stop.js +0 -0
- package/framework/v0.1.1-alpha.2/lib/cmd/protocol/help.js +27 -0
- package/framework/v0.1.1-alpha.2/lib/cmd/protocol/help.txt +57 -0
- package/framework/v0.1.1-alpha.2/lib/cmd/protocol/list.js +239 -0
- package/framework/v0.1.1-alpha.2/lib/cmd/protocol/set.js +631 -0
- package/framework/v0.1.1-alpha.2/lib/cmd/scope/help.js +28 -0
- package/framework/v0.1.1-alpha.2/lib/cmd/scope/help.txt +33 -0
- package/framework/v0.1.1-alpha.2/lib/cmd/scope/link-local.js +80 -0
- package/framework/v0.1.1-alpha.2/lib/cmd/scope/list.js +116 -0
- package/framework/v0.1.1-alpha.2/lib/cmd/scope/remove.js +150 -0
- package/framework/v0.1.1-alpha.2/lib/cmd/scope/rm.js +2 -0
- package/framework/v0.1.1-alpha.2/lib/cmd/scope/set.js +57 -0
- package/framework/v0.1.1-alpha.2/lib/cmd/scope/unset.js +44 -0
- package/framework/v0.1.1-alpha.2/lib/cmd/scope/use.js +79 -0
- package/framework/v0.1.1-alpha.2/lib/cmd/view/add.js +311 -0
- package/framework/v0.1.1-alpha.2/lib/collection/README.md +5 -0
- package/framework/v0.1.1-alpha.2/lib/collection/build.json +0 -0
- package/{core/utils → framework/v0.1.1-alpha.2}/lib/collection/package.json +2 -2
- package/framework/v0.1.1-alpha.2/lib/collection/src/main.js +1459 -0
- package/{core/utils → framework/v0.1.1-alpha.2}/lib/config.js +49 -34
- package/framework/v0.1.1-alpha.2/lib/cron/README.md +7 -0
- package/framework/v0.1.1-alpha.2/lib/cron/package.json +20 -0
- package/framework/v0.1.1-alpha.2/lib/cron/src/main.js +176 -0
- package/{core/utils → framework/v0.1.1-alpha.2}/lib/generator/index.js +8 -4
- package/framework/v0.1.1-alpha.2/lib/index.js +116 -0
- package/framework/v0.1.1-alpha.2/lib/inherits/LICENSE +19 -0
- package/{core/utils → framework/v0.1.1-alpha.2}/lib/inherits/README.md +0 -0
- package/{core/utils → framework/v0.1.1-alpha.2}/lib/inherits/example/inheriting_eventemitter.js +0 -0
- package/{core/utils → framework/v0.1.1-alpha.2}/lib/inherits/example/protected_inheritance.js +0 -0
- package/{core/utils → framework/v0.1.1-alpha.2}/lib/inherits/example/simple_inheritance.js +0 -0
- package/{core/utils → framework/v0.1.1-alpha.2}/lib/inherits/example/super_attribute_overridden_by_child_on_init.js +0 -0
- package/{core/utils → framework/v0.1.1-alpha.2}/lib/inherits/package.json +2 -2
- package/{core/utils → framework/v0.1.1-alpha.2}/lib/inherits/src/main.js +18 -19
- package/framework/v0.1.1-alpha.2/lib/logger/README.md +7 -0
- package/framework/v0.1.1-alpha.2/lib/logger/package.json +20 -0
- package/framework/v0.1.1-alpha.2/lib/logger/src/containers/default/index.js +55 -0
- package/framework/v0.1.1-alpha.2/lib/logger/src/containers/file/index.js +251 -0
- package/framework/v0.1.1-alpha.2/lib/logger/src/containers/file/lib/logrotator/README.md +100 -0
- package/framework/v0.1.1-alpha.2/lib/logger/src/containers/file/lib/logrotator/index.js +274 -0
- package/framework/v0.1.1-alpha.2/lib/logger/src/containers/mq/index.js +52 -0
- package/framework/v0.1.1-alpha.2/lib/logger/src/containers/mq/listener.js +302 -0
- package/framework/v0.1.1-alpha.2/lib/logger/src/containers/mq/speaker.js +118 -0
- package/framework/v0.1.1-alpha.2/lib/logger/src/helper.js +131 -0
- package/framework/v0.1.1-alpha.2/lib/logger/src/main.js +734 -0
- package/{core/utils → framework/v0.1.1-alpha.2}/lib/math/index.js +58 -35
- package/{core/utils → framework/v0.1.1-alpha.2}/lib/merge/README.md +5 -0
- package/{core/utils → framework/v0.1.1-alpha.2}/lib/merge/example/merge.js +1 -1
- package/{core/utils → framework/v0.1.1-alpha.2}/lib/merge/example/merge_2_literal objects.js +0 -0
- package/{core/utils → framework/v0.1.1-alpha.2}/lib/merge/example/merge_and_preserve_first.js +2 -0
- package/{core/utils → framework/v0.1.1-alpha.2}/lib/merge/package.json +2 -2
- package/framework/v0.1.1-alpha.2/lib/merge/src/main.js +531 -0
- package/{core/utils → framework/v0.1.1-alpha.2}/lib/model.js +42 -19
- package/framework/v0.1.1-alpha.2/lib/proc.js +518 -0
- package/framework/v0.1.1-alpha.2/lib/routing/README.md +0 -0
- package/framework/v0.1.1-alpha.2/lib/routing/build.json +0 -0
- package/{core/utils → framework/v0.1.1-alpha.2}/lib/routing/package.json +2 -2
- package/framework/v0.1.1-alpha.2/lib/routing/src/main.js +1492 -0
- package/framework/v0.1.1-alpha.2/lib/session-store.js +33 -0
- package/{core/utils → framework/v0.1.1-alpha.2}/lib/shell.js +43 -30
- package/framework/v0.1.1-alpha.2/lib/swig-filters/README.md +0 -0
- package/framework/v0.1.1-alpha.2/lib/swig-filters/package.json +20 -0
- package/framework/v0.1.1-alpha.2/lib/swig-filters/src/main.js +322 -0
- package/framework/v0.1.1-alpha.2/lib/url/README.md +0 -0
- package/{core/utils → framework/v0.1.1-alpha.2}/lib/url/index.js +2 -1
- package/{core/utils → framework/v0.1.1-alpha.2}/lib/url/mocks.json +0 -0
- package/{core/utils → framework/v0.1.1-alpha.2}/lib/url/routing.json +9 -9
- package/{core/utils → framework/v0.1.1-alpha.2}/lib/url/test.js +0 -0
- package/{core/utils → framework/v0.1.1-alpha.2}/lib/validator.js +7 -7
- package/framework/v0.1.1-alpha.2/package.json +14 -0
- package/package.json +35 -33
- package/resources/etc/init.d/debian/gina +117 -0
- package/resources/home/framework/env.json +34 -0
- package/resources/home/framework/locals.json +14 -0
- package/resources/home/framework/project.json +48 -0
- package/resources/home/framework/projects.json +6 -0
- package/resources/home/main.json +47 -0
- package/resources/home/settings.json +22 -0
- package/resources/home/user/extensions/logger/default/config.json +77 -0
- package/resources/home/user/extensions/logger/file/config.json +11 -0
- package/resources/img/android-chrome-192x192.png +0 -0
- package/resources/img/android-chrome-512x512.png +0 -0
- package/resources/img/apple-touch-icon.png +0 -0
- package/resources/img/favicon-16x16.png +0 -0
- package/resources/img/favicon-32x32.png +0 -0
- package/resources/img/favicon.ico +0 -0
- package/resources/package.json.template +50 -0
- package/script/lib.js +24 -0
- package/script/post_install.js +449 -157
- package/script/pre_install.js +277 -36
- package/script/prepare_version.js +425 -0
- package/utils/helper.js +438 -0
- package/utils/prototypes.js +239 -0
- package/utils/prototypes.json_clone.js +175 -0
- package/.npmignore +0 -6
- package/MIDDLEWARE +0 -1
- package/SUCCESS +0 -1
- package/VERSION +0 -1
- package/core/asset/html/nolayout.html +0 -1
- package/core/asset/js/plugin/build.dev.json +0 -28
- package/core/asset/js/plugin/build.json +0 -31
- package/core/asset/js/plugin/dist/gina.min.css +0 -1
- package/core/asset/js/plugin/dist/gina.min.css.map +0 -1
- package/core/asset/js/plugin/dist/gina.min.js +0 -13731
- package/core/asset/js/plugin/dist/gina.min.js.map +0 -42
- package/core/asset/js/plugin/dist/gina.onload.min.js +0 -3
- package/core/asset/js/plugin/dist/gina.onload.min.js.map +0 -8
- package/core/asset/js/plugin/readme.md +0 -152
- package/core/asset/js/plugin/src/gina/main.js +0 -132
- package/core/asset/js/plugin/src/gina/popin/css/design.css +0 -23
- package/core/asset/js/plugin/src/gina/popin/css/main.css +0 -1112
- package/core/asset/js/plugin/src/gina/popin/css/popin.css +0 -3
- package/core/asset/js/plugin/src/gina/popin/css/popin.css.map +0 -1
- package/core/asset/js/plugin/src/gina/popin/doc/TOC.md +0 -29
- package/core/asset/js/plugin/src/gina/popin/doc/css.md +0 -162
- package/core/asset/js/plugin/src/gina/popin/doc/extend.md +0 -663
- package/core/asset/js/plugin/src/gina/popin/doc/faq.md +0 -46
- package/core/asset/js/plugin/src/gina/popin/doc/html.md +0 -227
- package/core/asset/js/plugin/src/gina/popin/doc/js.md +0 -37
- package/core/asset/js/plugin/src/gina/popin/doc/misc.md +0 -178
- package/core/asset/js/plugin/src/gina/popin/doc/usage.md +0 -130
- package/core/asset/js/plugin/src/gina/popin/main.js +0 -783
- package/core/asset/js/plugin/src/gina/popin/sass/config.sass +0 -37
- package/core/asset/js/plugin/src/gina/popin/sass/gina-design.sass +0 -622
- package/core/asset/js/plugin/src/gina/popin/sass/gina-popin.sass +0 -54
- package/core/asset/js/plugin/src/gina/popin/sass/helper.scss +0 -73
- package/core/asset/js/plugin/src/gina/toolbar/.npmignore +0 -19
- package/core/asset/js/plugin/src/gina/toolbar/css/toolbar.css +0 -433
- package/core/asset/js/plugin/src/gina/toolbar/css/toolbar.css.map +0 -1
- package/core/asset/js/plugin/src/gina/toolbar/index.html +0 -285
- package/core/asset/js/plugin/src/gina/toolbar/index.kit +0 -120
- package/core/asset/js/plugin/src/gina/toolbar/jquery-3.1.0.min.js +0 -4
- package/core/asset/js/plugin/src/gina/toolbar/main.js +0 -693
- package/core/asset/js/plugin/src/gina/toolbar/mock.gina.json +0 -1
- package/core/asset/js/plugin/src/gina/toolbar/mock.user.json +0 -1
- package/core/asset/js/plugin/src/gina/toolbar/readme.md +0 -7
- package/core/asset/js/plugin/src/gina/toolbar/sass/toolbar.sass +0 -563
- package/core/asset/js/plugin/src/gina/toolbar/svg-src/Info-color.svg +0 -1
- package/core/asset/js/plugin/src/gina/toolbar/svg-src/Info-grey.svg +0 -1
- package/core/asset/js/plugin/src/gina/toolbar/svg-src/error-color.svg +0 -1
- package/core/asset/js/plugin/src/gina/toolbar/svg-src/error-grey.svg +0 -1
- package/core/asset/js/plugin/src/gina/toolbar/svg-src/info-optim.svg +0 -13
- package/core/asset/js/plugin/src/gina/toolbar/svg-src/logo-gina.svg +0 -1
- package/core/asset/js/plugin/src/gina/toolbar/svg-src/settings-big.svg +0 -1
- package/core/asset/js/plugin/src/gina/toolbar/svg-src/settings.afdesign +0 -0
- package/core/asset/js/plugin/src/gina/toolbar/svg-src/settings.svg +0 -1
- package/core/asset/js/plugin/src/gina/toolbar/svg-src/stripe-calendar-optim.svg +0 -1
- package/core/asset/js/plugin/src/gina/toolbar/svg-src/stripe-calendar.svg +0 -1
- package/core/asset/js/plugin/src/gina/toolbar/svg-src/stripe-card-optim.svg +0 -1
- package/core/asset/js/plugin/src/gina/toolbar/svg-src/stripe-card.svg +0 -1
- package/core/asset/js/plugin/src/gina/toolbar/svg-src/stripe-lock-optim.svg +0 -1
- package/core/asset/js/plugin/src/gina/toolbar/svg-src/stripe-lock.svg +0 -1
- package/core/asset/js/plugin/src/gina/toolbar/svg-src/warning-color.svg +0 -1
- package/core/asset/js/plugin/src/gina/toolbar/svg-src/warning-grey.svg +0 -1
- package/core/asset/js/plugin/src/gina/toolbar/test.jpg +0 -0
- package/core/asset/js/plugin/src/gina/toolbar/toolbar.html +0 -104
- package/core/asset/js/plugin/src/gina/utils/dom.js +0 -24
- package/core/asset/js/plugin/src/gina/utils/events.js +0 -201
- package/core/asset/js/plugin/src/gina/utils/loader.js +0 -57
- package/core/asset/js/plugin/src/main.js +0 -235
- package/core/asset/js/plugin/src/vendor/jquery/1.11.1-css-event_alias.min.js +0 -5
- package/core/asset/js/plugin/src/vendor/jquery/1.12.4.min.js +0 -5
- package/core/asset/js/plugin/src/vendor/jquery/2.1.1-css-event_alias-sizzle.min.js +0 -4
- package/core/asset/js/plugin/src/vendor/jquery/README.md +0 -14
- package/core/asset/js/plugin/src/vendor/jquery/slim-3.1.1.min.js +0 -4
- package/core/config.js +0 -1225
- package/core/controller/controller.js +0 -1860
- package/core/gna.js +0 -908
- package/core/plugins/lib/validator/src/form-validator.js +0 -788
- package/core/plugins/lib/validator/src/main.js +0 -2056
- package/core/router.js +0 -717
- package/core/server.js +0 -1363
- package/core/template/conf/env.json +0 -70
- package/core/template/conf/settings.json +0 -48
- package/core/template/conf/statics.json +0 -6
- package/core/template/conf/views.json +0 -16
- package/core/template/samples/bundle/config/app.json +0 -4
- package/core/template/samples/bundle/config/routing.json +0 -9
- package/core/template/samples/bundle/controllers/setup.js +0 -33
- package/core/template/views/js/vendor/readme.md +0 -1
- package/core/template/views/readme.md +0 -1
- package/core/utils/helpers/dateFormat.js +0 -264
- package/core/utils/helpers/index.js +0 -202
- package/core/utils/index.js +0 -75
- package/core/utils/lib/cmd/app.js +0 -686
- package/core/utils/lib/cmd/basic.help.txt +0 -40
- package/core/utils/lib/cmd/basic.js +0 -141
- package/core/utils/lib/cmd/gina-add-bundle.js +0 -328
- package/core/utils/lib/cmd/gina-add-views.js +0 -99
- package/core/utils/lib/cmd/gina-build.js +0 -218
- package/core/utils/lib/cmd/gina-clean.js +0 -26
- package/core/utils/lib/cmd/gina-connect.js +0 -176
- package/core/utils/lib/cmd/gina-delete-bundle.js +0 -176
- package/core/utils/lib/cmd/gina-deploy.js +0 -452
- package/core/utils/lib/cmd/gina-init-project.js +0 -83
- package/core/utils/lib/cmd/gina-start-bundle.js +0 -3
- package/core/utils/lib/cmd/gina-start.js +0 -3
- package/core/utils/lib/cmd/index.js +0 -157
- package/core/utils/lib/cmd/project.js +0 -14
- package/core/utils/lib/collection/src/main.js +0 -650
- package/core/utils/lib/logger/containers/file.js +0 -11
- package/core/utils/lib/logger/index.js +0 -260
- package/core/utils/lib/merge/src/main.js +0 -344
- package/core/utils/lib/proc.js +0 -416
- package/core/utils/lib/routing/src/main.js +0 -165
- package/documentation/css/default.css +0 -3
- package/documentation/html/home.html +0 -6
- package/documentation/html/inc/_footer.html +0 -5
- package/documentation/html/layout.html +0 -21
- package/documentation/img/debug-conf1.png +0 -0
- package/documentation/img/debug-conf2.png +0 -0
- package/documentation/img/debug-conf3.png +0 -0
- package/documentation/img/debug-conf4.png +0 -0
- package/documentation/img/debug-conf5.png +0 -0
- package/documentation/img/debug-conf6.png +0 -0
- package/documentation/img/debug-conf7.png +0 -0
- package/documentation/img/debug-new1.png +0 -0
- package/documentation/img/debug-new2.png +0 -0
- package/documentation/img/debug-start.png +0 -0
- package/documentation/md/api/controller/main.md +0 -74
- package/migration_note.md +0 -7
- package/package-lock.json +0 -611
- package/script/pre_publish.js +0 -207
- package/tutorial/Commands/README.md +0 -56
- package/tutorial/Commands/add-bundle-result.png +0 -0
- package/tutorial/Commands/add-bundle.png +0 -0
- package/tutorial/Commands/delete-bundle.png +0 -0
- package/tutorial/Commands/help.png +0 -0
- package/tutorial/Commands/init-project.png +0 -0
- package/tutorial/Commands/start-bundle-result.png +0 -0
- package/tutorial/Commands/start-bundle-stop.png +0 -0
- package/tutorial/Commands/start-bundle.png +0 -0
- package/tutorial/Commands/version.png +0 -0
- package/tutorial/ETC/README.md +0 -74
- package/tutorial/ETC/add-bundle-result.png +0 -0
- package/tutorial/ETC/add-bundle.png +0 -0
- package/tutorial/ETC/init-project.png +0 -0
- package/tutorial/Install/README.md +0 -54
- package/tutorial/Install/git-get.png +0 -0
- package/tutorial/Install/git-install-end.png +0 -0
- package/tutorial/Install/git-install-result.png +0 -0
- package/tutorial/Install/git-install-start.png +0 -0
- package/tutorial/Install/install-end.png +0 -0
- package/tutorial/Install/install-result.png +0 -0
- package/tutorial/Install/install-start.png +0 -0
- package/tutorial/WebStorm/README.md +0 -30
- package/tutorial/WebStorm/closure-compiler.png +0 -0
- package/tutorial/WebStorm/sass.png +0 -0
package/script/post_install.js
CHANGED
|
@@ -1,24 +1,25 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file is part of the gina package.
|
|
3
|
-
* Copyright (c)
|
|
3
|
+
* Copyright (c) 2017 Rhinostone <contact@gina.io>
|
|
4
4
|
*
|
|
5
5
|
* For the full copyright and license information, please view the LICENSE
|
|
6
6
|
* file that was distributed with this source code.
|
|
7
7
|
*/
|
|
8
|
-
process.env.IS_SCRIPT_MODE = true;
|
|
9
|
-
//Imports
|
|
10
|
-
var fs = require('fs');
|
|
11
|
-
var os = require('os');
|
|
12
8
|
|
|
13
|
-
//
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
9
|
+
//Imports
|
|
10
|
+
var fs = require('fs');
|
|
11
|
+
var util = require('util');
|
|
12
|
+
var promisify = util.promisify;
|
|
13
|
+
const { execSync } = require('child_process');
|
|
18
14
|
|
|
19
|
-
var
|
|
20
|
-
var console
|
|
15
|
+
var lib = require('./lib');
|
|
16
|
+
var console = lib.logger;
|
|
21
17
|
|
|
18
|
+
var scriptPath = __dirname;
|
|
19
|
+
var ginaPath = (scriptPath.replace(/\\/g, '/')).replace('/script', '');
|
|
20
|
+
var help = require(ginaPath + '/utils/helper.js');
|
|
21
|
+
var pack = ginaPath + '/package.json';
|
|
22
|
+
pack = (isWin32()) ? pack.replace(/\//g, '\\') : pack;
|
|
22
23
|
|
|
23
24
|
|
|
24
25
|
/**
|
|
@@ -27,47 +28,185 @@ var console = utils.logger;
|
|
|
27
28
|
* */
|
|
28
29
|
function PostInstall() {
|
|
29
30
|
|
|
30
|
-
var self = this;
|
|
31
|
+
var self = {}, _this = this;
|
|
31
32
|
|
|
32
33
|
//Initialize post installation scripts.
|
|
33
34
|
var init = function() {
|
|
34
|
-
self.isWin32 = (
|
|
35
|
-
self.path =
|
|
36
|
-
self.
|
|
35
|
+
self.isWin32 = isWin32();//getEnvVar('GINA_IS_WIN32');
|
|
36
|
+
self.path = getEnvVar('GINA_FRAMEWORK');
|
|
37
|
+
self.gina = getEnvVar('GINA_DIR');
|
|
38
|
+
self.root = self.gina; // by default
|
|
39
|
+
self.isGlobalInstall = false;
|
|
40
|
+
self.prefix = execSync('npm config get prefix');
|
|
41
|
+
|
|
42
|
+
var args = process.argv, i = 0, len = args.length;
|
|
43
|
+
for (; i < len; ++i) {
|
|
44
|
+
if (args[i] == '-g' ) {
|
|
45
|
+
self.isGlobalInstall = true;
|
|
46
|
+
break;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
37
49
|
|
|
50
|
+
console.debug('Is this for Windows ? ' + self.isWin32);
|
|
38
51
|
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
52
|
+
if ( !self.isGlobalInstall ) { //global install
|
|
53
|
+
self.root = process.cwd(); // project path
|
|
54
|
+
console.error('local installation is not supported for this version at the moment.');
|
|
55
|
+
console.info('please use `npm install -g gina`');
|
|
56
|
+
process.exit(1);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
console.debug('prefix path: ' + self.prefix);
|
|
60
|
+
console.debug('framework path: ' + self.gina);
|
|
61
|
+
console.debug('framework version path: ' + self.path);
|
|
62
|
+
console.debug('cwd path: ' + self.root );
|
|
63
|
+
console.debug('this is a global install ...');
|
|
64
|
+
|
|
65
|
+
begin(0);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* Bebin - Will run checking tasks in order of declaration
|
|
70
|
+
* */
|
|
71
|
+
var begin = async function(i) {
|
|
72
|
+
//console.debug('i is ', i);
|
|
73
|
+
var n = 0, funct = null, functName = null;
|
|
74
|
+
for (let t in self) {
|
|
75
|
+
if ( typeof(self[t]) == 'function') {
|
|
76
|
+
if (n == i) {
|
|
77
|
+
//let func = 'self.' + t + '()';
|
|
78
|
+
let func = 'self.' + t;
|
|
79
|
+
console.debug('Running [ ' + func + '() ]');
|
|
80
|
+
funct = func;
|
|
81
|
+
functName = t;
|
|
82
|
+
break;
|
|
83
|
+
}
|
|
84
|
+
n++;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
// to handle sync vs async to allow execution in order of declaration
|
|
89
|
+
if (funct) {
|
|
90
|
+
eval('async function on'+functName+'(){ await promisify('+ funct + ')().catch(function(e){ console.error(e.toString()); process.exit(-1);}).then(function(){ begin('+(i+1)+')});}; on'+functName+'();'); // jshint ignore:line
|
|
91
|
+
} else {
|
|
92
|
+
process.exit(0);
|
|
93
|
+
}
|
|
43
94
|
}
|
|
44
95
|
|
|
45
|
-
|
|
46
|
-
|
|
96
|
+
// self.checkIfIsContributorEnv = function(done) {
|
|
97
|
+
// var isContribEnv = false;
|
|
98
|
+
// if ( new _(self.gina + '/.git', true).existsSync() ) {
|
|
99
|
+
// isContribEnv = true;
|
|
100
|
+
// }
|
|
101
|
+
// var homeDir = getUserHome() || null;
|
|
102
|
+
// if (!homeDir) {
|
|
103
|
+
// return done(new Error('No $HOME path found !'))
|
|
104
|
+
// }
|
|
105
|
+
// var ginaHomeDir = homeDir.replace(/\n/g, '') + '/.gina';
|
|
106
|
+
// setEnvVar('GINA_HOMEDIR', ginaHomeDir);
|
|
107
|
+
|
|
108
|
+
// var npmGlobal = homeDir.replace(/\n/g, '') + '/.npm-global';
|
|
109
|
+
// var IsNpmGlobalFound = false;
|
|
110
|
+
// if ( new _(npmGlobal, true).existsSync() ) {
|
|
111
|
+
// IsNpmGlobalFound = true;
|
|
112
|
+
|
|
113
|
+
// if ( ! new _(npmGlobal +'/bin', true).existsSync() ) {
|
|
114
|
+
// new _(npmGlobal +'/bin', true).mkdirSync()
|
|
115
|
+
// }
|
|
116
|
+
// if ( ! new _(npmGlobal +'/lib/node_modules', true).existsSync() ) {
|
|
117
|
+
// new _(npmGlobal +'/lib/node_modules', true).mkdirSync()
|
|
118
|
+
// }
|
|
119
|
+
// }
|
|
120
|
+
|
|
121
|
+
// console.debug(self.gina, ' | ', ginaHomeDir);
|
|
122
|
+
// console.debug('Is contributor‘s env ? : '+ isContribEnv);
|
|
123
|
+
|
|
124
|
+
// // Fixing `npm link` VS `.npm-global` issue on contributors env
|
|
125
|
+
// /**
|
|
126
|
+
// * Patch designed to use `npm link gina` in your project
|
|
127
|
+
// * without taking the risk to get the wrong package version
|
|
128
|
+
// *
|
|
129
|
+
// * See.:
|
|
130
|
+
// * 4 reasons to avoid using `npm link` - https://hirok.io/posts/avoid-npm-link
|
|
131
|
+
// * */
|
|
132
|
+
// if (isContribEnv && IsNpmGlobalFound) {
|
|
133
|
+
// console.debug('Contributor case detected ...\n', JSON.stringify(process.env, null, 2));
|
|
134
|
+
|
|
135
|
+
// lib.generator.createFileFromDataSync(isContribEnv +'\n'+ '\n'+ IsNpmGlobalFound +'\n'+ JSON.stringify(process.env, null, 2), npmGlobal+'/npm_out.txt');
|
|
136
|
+
|
|
137
|
+
// // symlink the lib
|
|
138
|
+
// // ln -s /usr/local/lib/node_modules/gina ~/.npm-global/lib/node_modules/gina
|
|
139
|
+
// // symlink the bin
|
|
140
|
+
// // ln -s ~/.npm-global/lib/node_modules/gina/bin/gina ~/.npm-global/bin/gina
|
|
141
|
+
// }
|
|
142
|
+
|
|
143
|
+
// done();
|
|
144
|
+
// }
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
self.createVersionFile = function(done) {
|
|
148
|
+
var version = require( _(self.gina + '/package.json') ).version;
|
|
149
|
+
console.debug('writting version number: '+ version);
|
|
150
|
+
|
|
47
151
|
var target = _(self.path + '/VERSION');
|
|
48
152
|
try {
|
|
49
153
|
if ( fs.existsSync(target) ) {
|
|
50
|
-
fs.unlinkSync(target)
|
|
51
|
-
|
|
52
|
-
|
|
154
|
+
fs.unlinkSync(target)
|
|
155
|
+
}
|
|
156
|
+
fs.writeFileSync(target, version);
|
|
157
|
+
} catch(err) {
|
|
158
|
+
return done(err)
|
|
159
|
+
}
|
|
53
160
|
|
|
161
|
+
done();
|
|
162
|
+
}
|
|
54
163
|
|
|
164
|
+
var configureGina = function(callback) {
|
|
165
|
+
// link to ./bin/cli to binaries dir
|
|
166
|
+
if (!self.isWin32) {
|
|
167
|
+
var binPath = _(self.prefix+'/bin', true);
|
|
168
|
+
var cli = _(binPath +'/gina');
|
|
169
|
+
// TODO - remove this part for the next version
|
|
170
|
+
var cliDebug = _(binPath +'/gina-debug');
|
|
55
171
|
|
|
56
|
-
|
|
57
|
-
|
|
172
|
+
if ( fs.existsSync(cli) ) {
|
|
173
|
+
fs.unlinkSync(cli)
|
|
174
|
+
}
|
|
175
|
+
// TODO - remove this part for the next version
|
|
176
|
+
if ( fs.existsSync(cliDebug) ) {
|
|
177
|
+
fs.unlinkSync(cliDebug)
|
|
178
|
+
}
|
|
58
179
|
|
|
59
|
-
|
|
60
|
-
|
|
180
|
+
var cmd = 'ln -s '+ self.gina +'/bin/gina '+ binPath +'/gina';
|
|
181
|
+
console.debug('running: '+ cmd);
|
|
182
|
+
run(cmd, { cwd: _(self.path), tmp: _(self.root +'/tmp'), outToProcessSTD: true })
|
|
183
|
+
.onData(function(data){
|
|
184
|
+
console.info(data)
|
|
185
|
+
})
|
|
186
|
+
.onComplete( function onDone(err, data){
|
|
187
|
+
if (err) {
|
|
188
|
+
console.error(err);
|
|
189
|
+
console.warn('try to run : sudo ' + cmd);
|
|
61
190
|
}
|
|
62
|
-
}
|
|
191
|
+
});
|
|
192
|
+
// To debug, you just need to run:
|
|
193
|
+
// gina <topic>:<task> --inspect-gina
|
|
194
|
+
//
|
|
195
|
+
// TODO - remove this part for the next version
|
|
196
|
+
// cmd = 'ln -s '+ self.gina +'/bin/cli-debug '+ binPath +'/gina-debug';
|
|
197
|
+
// run(cmd, { cwd: _(self.path), tmp: _(self.root +'/tmp'), outToProcessSTD: true })
|
|
198
|
+
// .onData(function(data){
|
|
199
|
+
// console.info(data)
|
|
200
|
+
// })
|
|
201
|
+
// .onComplete( function onDone(err, data){
|
|
202
|
+
// if (err) {
|
|
203
|
+
// console.error(err);
|
|
204
|
+
// console.warn('try to run : sudo ' + cmd);
|
|
205
|
+
// }
|
|
206
|
+
// });
|
|
63
207
|
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
} catch(err) {
|
|
69
|
-
throw err;
|
|
70
|
-
process.exit(0)
|
|
208
|
+
} else {
|
|
209
|
+
console.warn('linking gina binary is not supported yet for Windows.');
|
|
71
210
|
}
|
|
72
211
|
}
|
|
73
212
|
|
|
@@ -80,55 +219,78 @@ function PostInstall() {
|
|
|
80
219
|
if ( typeof(win32Name) != 'undefined') {
|
|
81
220
|
target = _(appPath +'/'+ win32Name)
|
|
82
221
|
}
|
|
83
|
-
|
|
84
222
|
//Will override.
|
|
223
|
+
console.info('linking to binaries dir ... ');
|
|
85
224
|
if ( typeof(callback) != 'undefined') {
|
|
225
|
+
if ( !self.isGlobalInstall ) { // local install only
|
|
226
|
+
lib.generator.createFileFromTemplate(source, target, function onGinaFileCreated(err) {
|
|
227
|
+
callback(err)
|
|
86
228
|
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
} catch (err) {
|
|
93
|
-
callback(err)
|
|
229
|
+
})
|
|
230
|
+
} else {
|
|
231
|
+
|
|
232
|
+
configureGina();
|
|
233
|
+
callback(false)
|
|
94
234
|
}
|
|
95
235
|
} else {
|
|
96
|
-
|
|
236
|
+
if ( !self.isGlobalInstall ) {
|
|
237
|
+
lib.generator.createFileFromTemplate(source, target)
|
|
238
|
+
} else {
|
|
239
|
+
|
|
240
|
+
configureGina();
|
|
241
|
+
}
|
|
97
242
|
}
|
|
98
243
|
}
|
|
99
244
|
|
|
100
|
-
|
|
101
|
-
console.
|
|
102
|
-
//console.log('[ debug ] about to open ' + _(self.path + '/package.json'));
|
|
245
|
+
self.createGinaFileForPlatform = async function(done) {
|
|
246
|
+
console.info('Creating platform file');
|
|
103
247
|
var name = require( _(self.path + '/package.json') ).name;
|
|
104
248
|
|
|
105
249
|
var filename = ( (self.isWin32) ? '.' : '' ) + name;
|
|
106
250
|
|
|
107
251
|
var keepGoing = function(filename) {
|
|
108
252
|
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
createGinaFile(filename, function onGinaFileCreated(err){
|
|
112
|
-
|
|
253
|
+
createGinaFile(filename, function onFileCreated(err) {
|
|
113
254
|
if (err) {
|
|
114
|
-
|
|
115
|
-
return false
|
|
255
|
+
return done(err)
|
|
116
256
|
}
|
|
257
|
+
|
|
117
258
|
// this is done to allow multiple calls of post_install.js
|
|
118
259
|
var filename = _(self.path + '/SUCCESS');
|
|
119
260
|
var installed = fs.existsSync( filename );
|
|
120
|
-
if (
|
|
121
|
-
fs.
|
|
261
|
+
if (installed) {
|
|
262
|
+
fs.unlinkSync( filename );
|
|
122
263
|
}
|
|
123
264
|
|
|
124
|
-
//
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
//
|
|
129
|
-
|
|
265
|
+
// if ( /node_modules\/gina/.test( new _(process.cwd()).toUnixStyle() ) ) {
|
|
266
|
+
// var msg = "Gina's command line tool has been installed.";
|
|
267
|
+
// console.info(msg);
|
|
268
|
+
// process.exit(0)
|
|
269
|
+
// }
|
|
270
|
+
|
|
271
|
+
console.debug('Writting '+ filename);
|
|
272
|
+
fs.writeFileSync(filename, 'true' );
|
|
273
|
+
|
|
274
|
+
// do something that can be called after the first time installation
|
|
275
|
+
|
|
276
|
+
|
|
277
|
+
// Check if npm install has been done
|
|
278
|
+
if ( !hasNodeModulesSync() ) {
|
|
279
|
+
return npmInstall(done)
|
|
280
|
+
} else {
|
|
281
|
+
var target = new _(self.path + '/node_modules');
|
|
282
|
+
console.debug('replacing: ', target.toString() );
|
|
283
|
+
return target
|
|
284
|
+
.rm( function onRemove(err) {
|
|
285
|
+
if (err) {
|
|
286
|
+
return done(err);
|
|
287
|
+
} else {
|
|
288
|
+
return npmInstall(done)
|
|
289
|
+
}
|
|
290
|
+
})
|
|
291
|
+
}
|
|
130
292
|
|
|
131
|
-
})
|
|
293
|
+
})
|
|
132
294
|
}
|
|
133
295
|
|
|
134
296
|
if (self.isWin32) {
|
|
@@ -138,147 +300,277 @@ function PostInstall() {
|
|
|
138
300
|
if ( fs.existsSync(target) ) {
|
|
139
301
|
fs.unlinkSync(target);
|
|
140
302
|
// have to wait for windows to complete this
|
|
141
|
-
setTimeout( function(){
|
|
142
|
-
|
|
143
|
-
keepGoing(filename)
|
|
303
|
+
setTimeout( async function(){
|
|
304
|
+
lib.generator.createFileFromTemplate(source, target);
|
|
305
|
+
await keepGoing(filename)
|
|
144
306
|
}, 1000)
|
|
145
307
|
} else {
|
|
146
|
-
|
|
147
|
-
keepGoing(filename)
|
|
308
|
+
lib.generator.createFileFromTemplate(source, target);
|
|
309
|
+
await keepGoing(filename)
|
|
148
310
|
}
|
|
311
|
+
|
|
149
312
|
} else {
|
|
150
|
-
filename
|
|
151
|
-
keepGoing(filename)
|
|
313
|
+
await keepGoing(filename)
|
|
152
314
|
}
|
|
153
315
|
}
|
|
154
316
|
|
|
155
317
|
|
|
156
|
-
var
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
process.exit(0)
|
|
160
|
-
}
|
|
318
|
+
var hasNodeModulesSync = function() {
|
|
319
|
+
return fs.existsSync( _(self.path + '/node_modules') )
|
|
320
|
+
}
|
|
161
321
|
|
|
322
|
+
|
|
323
|
+
var npmInstall = function(done) {
|
|
324
|
+
console.info('now installing modules: please, wait ...');
|
|
162
325
|
var cmd = ( isWin32() ) ? 'npm.cmd install' : 'npm install';
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
326
|
+
|
|
327
|
+
run(cmd, { cwd: _(self.path), tmp: _(self.root +'/tmp'), outToProcessSTD: true })
|
|
328
|
+
.onData(function onData(data){
|
|
329
|
+
console.info(data)
|
|
330
|
+
})
|
|
331
|
+
.onComplete( function onDone(err, data){
|
|
332
|
+
if (!err) {
|
|
333
|
+
return done()
|
|
334
|
+
}
|
|
335
|
+
done(err)
|
|
336
|
+
})
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
self.cleanupIfNeeded = function(done) {
|
|
340
|
+
|
|
341
|
+
var frameworkPath = self.gina;
|
|
342
|
+
console.debug('Framework path is: ' + frameworkPath);
|
|
343
|
+
|
|
344
|
+
// Let's cleanup `colors` from `GINA_DIR`
|
|
345
|
+
if ( new _(frameworkPath +'/node_modules/colors', true).existsSync() ) {
|
|
346
|
+
var initialDir = process.cwd();
|
|
347
|
+
process.chdir(frameworkPath);
|
|
348
|
+
var cmd = ( isWin32() ) ? 'npm.cmd rm colors' : 'npm rm colors';
|
|
349
|
+
try {
|
|
350
|
+
execSync(cmd);
|
|
351
|
+
console.debug('Removed default `colors` module from `GINA_DIR`... This is normal ;)');
|
|
352
|
+
} catch (npmErr) {
|
|
353
|
+
return done(npmErr);
|
|
172
354
|
}
|
|
173
355
|
|
|
174
|
-
|
|
356
|
+
process.chdir(initialDir);
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
done()
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
self.checkUserExtensions = async function(done) {
|
|
363
|
+
|
|
364
|
+
var userDir = _(getUserHome() + '/.gina/user', true);
|
|
365
|
+
// var userDirObj = new _(userDir);
|
|
366
|
+
// if ( ! userDirObj.existsSync() ) {
|
|
367
|
+
// userDirObj.mkdirSync();
|
|
368
|
+
// }
|
|
369
|
+
// var extDir = _(userDir +'/extensions', true);
|
|
370
|
+
// var extDirObj = new _(extDir);
|
|
371
|
+
// if ( ! extDirObj.existsSync() ) {
|
|
372
|
+
// extDirObj.mkdirSync();
|
|
373
|
+
// }
|
|
374
|
+
|
|
375
|
+
// // logger
|
|
376
|
+
// var extLogger = _(extDir +'/logger', true);
|
|
377
|
+
|
|
378
|
+
// reading default extensions
|
|
379
|
+
var ext = _(self.gina +'/resources/home/user/extensions', true);
|
|
380
|
+
var folders = [];
|
|
381
|
+
try {
|
|
382
|
+
console.debug('Reading : '+ ext + ' - isDirectory ? '+ fs.lstatSync( ext ).isDirectory() );
|
|
383
|
+
folders = fs.readdirSync(ext);
|
|
384
|
+
|
|
385
|
+
} catch(readErr) {
|
|
386
|
+
throw readErr
|
|
175
387
|
}
|
|
176
388
|
|
|
177
|
-
|
|
389
|
+
for (let i = 0, len = folders.length; i < len; i++) {
|
|
390
|
+
let dir = folders[i];
|
|
391
|
+
// skip junk
|
|
392
|
+
if ( /^\./i.test(dir) || /(\s+copy|\.old)$/i.test(dir) ) {
|
|
393
|
+
continue;
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
// skip symlinks
|
|
397
|
+
try {
|
|
398
|
+
console.debug('Checking: '+ _(ext +'/'+ dir, true) + ' - isSymbolicLink ? '+ fs.lstatSync( _(ext +'/'+ dir, true) ).isSymbolicLink() );
|
|
399
|
+
if ( fs.lstatSync( _(ext +'/'+ dir, true) ).isSymbolicLink() ) {
|
|
400
|
+
continue;
|
|
401
|
+
}
|
|
402
|
+
} catch (e) {
|
|
403
|
+
continue;
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
let userExtPath = _(userDir +'/extensions/'+ dir, true);
|
|
407
|
+
let userExtPathObj = new _(userExtPath)
|
|
408
|
+
if ( !userExtPathObj.existsSync() ) {
|
|
409
|
+
userExtPathObj.mkdirSync()
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
let files = []
|
|
413
|
+
, extDir = _(ext +'/'+ dir, true)
|
|
414
|
+
, extDirObj = new _(extDir)
|
|
415
|
+
;
|
|
416
|
+
try {
|
|
417
|
+
|
|
418
|
+
console.debug('Reading extDir: '+ extDir + ' - isDirectory ? '+ fs.lstatSync( extDir ).isDirectory() );
|
|
419
|
+
if ( !fs.lstatSync( extDir ).isDirectory() ) {
|
|
420
|
+
continue;
|
|
421
|
+
}
|
|
178
422
|
|
|
179
|
-
|
|
180
|
-
|
|
423
|
+
|
|
424
|
+
files = fs.readdirSync( extDir );
|
|
425
|
+
|
|
426
|
+
} catch(fileReadErr) {}
|
|
427
|
+
|
|
428
|
+
console.debug("What about files ? " + files);
|
|
429
|
+
|
|
430
|
+
for (let n = 0, nLen = files.length; n < nLen; n++) {
|
|
431
|
+
let file = files[n];
|
|
432
|
+
console.debug('file --> ', file);
|
|
433
|
+
let extentionPath = _(extDir +'/'+ file, true);
|
|
434
|
+
let extensionPathObj = new _(extentionPath);
|
|
435
|
+
// redefined
|
|
436
|
+
let userExtPathObj = new _(userExtPath + '/'+ file, true);
|
|
437
|
+
if ( !userExtPathObj.existsSync() ) {
|
|
438
|
+
let f = function(destination, cb) {// jshint ignore:line
|
|
439
|
+
extensionPathObj.cp(destination, cb);
|
|
440
|
+
};
|
|
441
|
+
let err = false;
|
|
442
|
+
await promisify(f)( _(userExtPath + '/'+ file, true) )
|
|
443
|
+
.catch( function onCopyError(_err) {// jshint ignore:line
|
|
444
|
+
err = _err;
|
|
445
|
+
})
|
|
446
|
+
.then( function onCopy(_destination) {// jshint ignore:line
|
|
447
|
+
console.info('Copy '+ extentionPath +' to '+ _destination +' done !');
|
|
448
|
+
});
|
|
449
|
+
|
|
450
|
+
if (err) {
|
|
451
|
+
throw err;
|
|
452
|
+
}
|
|
453
|
+
}
|
|
454
|
+
}
|
|
181
455
|
}
|
|
182
456
|
|
|
183
|
-
|
|
184
|
-
|
|
457
|
+
|
|
458
|
+
done()
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
var restoreSymlinks = function() {
|
|
462
|
+
var archivesPath = _(getUserHome() + '/.gina/archives/framework', true);
|
|
463
|
+
var frameworkPath = _(self.gina +'/framework', true);
|
|
464
|
+
|
|
465
|
+
if ( !new _(archivesPath).existsSync() ) {
|
|
466
|
+
return;
|
|
185
467
|
}
|
|
468
|
+
// get current framework version
|
|
469
|
+
var package = require(pack);
|
|
470
|
+
var currentVersion = 'v'+ package.version.replace(/^v/, '');
|
|
471
|
+
|
|
472
|
+
// cleanup first
|
|
473
|
+
var versionsFolders = fs.readdirSync(frameworkPath);
|
|
474
|
+
for (let i = 0, len = versionsFolders.length; i < len; i++) {
|
|
475
|
+
let dir = versionsFolders[i];
|
|
476
|
+
// skip junk
|
|
477
|
+
if ( /^\./i.test(dir) || /(\s+copy|\.old)$/i.test(dir) ) {
|
|
478
|
+
continue;
|
|
479
|
+
}
|
|
186
480
|
|
|
187
|
-
|
|
188
|
-
|
|
481
|
+
// intercept & remove existing symlinks or old versions dir
|
|
482
|
+
try {
|
|
483
|
+
if ( fs.lstatSync( _(frameworkPath +'/'+ dir, true) ).isSymbolicLink() ) {
|
|
484
|
+
new _(frameworkPath +'/'+ dir, true).rmSync();
|
|
485
|
+
console.debug('Removing Symlink: '+ dir);
|
|
486
|
+
continue;
|
|
487
|
+
}
|
|
488
|
+
else if (
|
|
489
|
+
dir != currentVersion
|
|
490
|
+
&& fs.lstatSync( _(frameworkPath +'/'+ dir, true) ).isDirectory()
|
|
491
|
+
) {
|
|
492
|
+
console.debug('Removing old version: '+ dir);
|
|
493
|
+
new _(frameworkPath +'/'+ dir, true).rmSync()
|
|
494
|
+
}
|
|
495
|
+
} catch (e) {
|
|
496
|
+
continue;
|
|
497
|
+
}
|
|
189
498
|
}
|
|
190
499
|
|
|
191
|
-
//
|
|
192
|
-
|
|
500
|
+
// restoring symlinks from archives
|
|
501
|
+
versionsFolders = fs.readdirSync(archivesPath);
|
|
502
|
+
for (let i = 0, len = versionsFolders.length; i < len; i++) {
|
|
503
|
+
let dir = versionsFolders[i];
|
|
504
|
+
// skip junk
|
|
505
|
+
if ( /^\./i.test(dir) || /(\s+copy|\.old)$/i.test(dir) ) {
|
|
506
|
+
continue;
|
|
507
|
+
}
|
|
193
508
|
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
npmInstall(modules)
|
|
208
|
-
})
|
|
509
|
+
// skip selected - for dev team only
|
|
510
|
+
if ( new _(frameworkPath +'/'+ dir, true).existsSync() ) {
|
|
511
|
+
continue;
|
|
512
|
+
}
|
|
513
|
+
|
|
514
|
+
// creating symlinks
|
|
515
|
+
try {
|
|
516
|
+
console.debug( 'Creating symlink: '+ _(archivesPath +'/'+ dir, true) +' -> '+ _(frameworkPath +'/'+ dir, true));
|
|
517
|
+
new _(archivesPath +'/'+ dir, true).symlinkSync(_(frameworkPath +'/'+ dir, true) );
|
|
518
|
+
} catch (e) {
|
|
519
|
+
throw e
|
|
520
|
+
}
|
|
521
|
+
}
|
|
209
522
|
}
|
|
210
523
|
|
|
211
|
-
|
|
524
|
+
self.end = function(done) {
|
|
525
|
+
|
|
526
|
+
restoreSymlinks();
|
|
527
|
+
|
|
212
528
|
// Update middleware file
|
|
213
529
|
var filename = _(self.path) + '/MIDDLEWARE';
|
|
214
|
-
var msg = "Gina's command line tool has been installed
|
|
530
|
+
var msg = "Gina's command line tool has been installed.";
|
|
215
531
|
|
|
216
532
|
var deps = require(_(self.path) + '/package.json').dependecies;
|
|
217
533
|
|
|
534
|
+
var version = require( _(self.gina + '/package.json') ).version;
|
|
535
|
+
var middleware = 'isaac@'+version; // by default
|
|
218
536
|
|
|
219
|
-
for (
|
|
537
|
+
for (let d in deps) {
|
|
220
538
|
if (d === 'express' && deps[d] != '') {
|
|
221
|
-
|
|
539
|
+
middleware = d +'@'+ deps[d]
|
|
222
540
|
}
|
|
223
541
|
}
|
|
224
542
|
|
|
225
543
|
var expressPackage = _(self.path + '/node_modules/express/package.json');
|
|
226
544
|
if ( typeof(middleware) == 'undefined' && fs.existsSync(expressPackage) ) {
|
|
227
|
-
|
|
545
|
+
middleware = require(expressPackage).version;
|
|
228
546
|
middleware = 'express@' + middleware;
|
|
229
547
|
} else if (typeof(middleware) == 'undefined') {
|
|
230
|
-
|
|
231
|
-
process.exit(0)
|
|
548
|
+
return done( new Error('No middleware found !!') );
|
|
232
549
|
}
|
|
233
550
|
|
|
234
551
|
if ( fs.existsSync(filename) ) { // update
|
|
235
552
|
var def = fs.readFileSync(filename).toString;
|
|
236
553
|
// TODO - uninstall old if installed ??
|
|
237
554
|
if (def !== middleware) {
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
console.
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
process.exit(0)
|
|
246
|
-
}
|
|
247
|
-
|
|
248
|
-
// fs.writeFile(filename, middleware, function onWrote(err){
|
|
249
|
-
// if (err) {
|
|
250
|
-
// throw new Error(err.stack||err.message||err);
|
|
251
|
-
// process.exit(1)
|
|
252
|
-
// } else {
|
|
253
|
-
// console.log(msg)
|
|
254
|
-
// }
|
|
255
|
-
// })
|
|
555
|
+
fs.writeFile(filename, middleware, function onWrote(err){
|
|
556
|
+
if (err) {
|
|
557
|
+
return done(err)
|
|
558
|
+
}
|
|
559
|
+
console.info(msg);
|
|
560
|
+
done()
|
|
561
|
+
})
|
|
256
562
|
} // else, nothing to do
|
|
257
563
|
} else { // create
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
console.
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
process.exit(0)
|
|
266
|
-
}
|
|
267
|
-
|
|
268
|
-
// fs.writeFile(filename, middleware, function onWrote(err){
|
|
269
|
-
// if (err) {
|
|
270
|
-
// throw new Error(err.stack||err.message||err);
|
|
271
|
-
// process.exit(1)
|
|
272
|
-
// } else {
|
|
273
|
-
// console.log(msg)
|
|
274
|
-
// }
|
|
275
|
-
// })
|
|
564
|
+
fs.writeFile(filename, middleware, function onWrote(err){
|
|
565
|
+
if (err) {
|
|
566
|
+
return done(err)
|
|
567
|
+
}
|
|
568
|
+
console.info(msg);
|
|
569
|
+
done()
|
|
570
|
+
})
|
|
276
571
|
}
|
|
277
572
|
}
|
|
278
573
|
|
|
279
|
-
//var createGinaHome = function() { };
|
|
280
|
-
|
|
281
|
-
|
|
282
574
|
init()
|
|
283
|
-
}
|
|
575
|
+
}
|
|
284
576
|
new PostInstall()
|