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
|
@@ -0,0 +1,631 @@
|
|
|
1
|
+
var fs = require('fs');
|
|
2
|
+
var readline = require('readline');
|
|
3
|
+
var rl = readline.createInterface({ input: process.stdin, output: process.stdout });
|
|
4
|
+
var CmdHelper = require('./../helper');
|
|
5
|
+
var console = lib.logger;
|
|
6
|
+
var scan = require('../port/inc/scan');
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Set a protocol to your project
|
|
10
|
+
*
|
|
11
|
+
* e.g.
|
|
12
|
+
* gina protocol:set
|
|
13
|
+
* gina protocol:set @<project_name>
|
|
14
|
+
* gina protocol:set <bundle> @<project_name>
|
|
15
|
+
*
|
|
16
|
+
* */
|
|
17
|
+
function Set(opt, cmd) {
|
|
18
|
+
|
|
19
|
+
// self will be pre filled if you call `new CmdHelper(self, opt.client, { port: opt.debugPort, brkEnabled: opt.debugBrkEnabled })`
|
|
20
|
+
var self = {}, local = { portsAvailable: [] };
|
|
21
|
+
|
|
22
|
+
var init = function() {
|
|
23
|
+
|
|
24
|
+
// import CMD helpers
|
|
25
|
+
new CmdHelper(self, opt.client, { port: opt.debugPort, brkEnabled: opt.debugBrkEnabled });
|
|
26
|
+
|
|
27
|
+
// check CMD configuration
|
|
28
|
+
if (!isCmdConfigured()) return false;
|
|
29
|
+
|
|
30
|
+
// backup in case of rolllover
|
|
31
|
+
local.ports = requireJSON(_(self.portsPath));
|
|
32
|
+
local.portsReverse = requireJSON(_(self.portsReversePath));
|
|
33
|
+
local.mainConfig = JSON.clone(self.mainConfig);
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
// find available port
|
|
37
|
+
options = {
|
|
38
|
+
ignore : merge(self.portsGlobalList, local.ports),
|
|
39
|
+
// get for each bundle ports for available protocol, scheme & env
|
|
40
|
+
len : ( self.protocolsAvailable.length * self.schemesAvailable.length * self.envs.length * self.bundles.length )
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
scan(options, function(err, ports){
|
|
44
|
+
|
|
45
|
+
if (err) {
|
|
46
|
+
console.error(err.stack|err.message);
|
|
47
|
+
process.exit(1);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
for (var p = 0; p < ports.length; ++p) {
|
|
52
|
+
local.portsAvailable.push(ports[p]);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
local.portsAvailable.sort();
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
if (!self.name && !self.projectName) {
|
|
59
|
+
// this case is allways catched excepted for `LIST` command
|
|
60
|
+
} else if (self.projectName && isDefined(self.projectName) && !self.name) {
|
|
61
|
+
local.projectConfig = JSON.clone(self.projects);
|
|
62
|
+
check('project');
|
|
63
|
+
} else if (typeof (self.name) != 'undefined' && isValidName(self.name)) {
|
|
64
|
+
local.projectConfig = JSON.clone(self.projects);
|
|
65
|
+
check('bunlde');
|
|
66
|
+
} else {
|
|
67
|
+
console.error('[ ' + self.name + ' ] is not a valid project name.');
|
|
68
|
+
process.exit(1);
|
|
69
|
+
}
|
|
70
|
+
});
|
|
71
|
+
};
|
|
72
|
+
|
|
73
|
+
// check if bundle is defined
|
|
74
|
+
var isDefined = function(name) {
|
|
75
|
+
if (typeof (self.projects[name]) != 'undefined') {
|
|
76
|
+
return true;
|
|
77
|
+
}
|
|
78
|
+
return false;
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
var isValidName = function(name) {
|
|
82
|
+
if (name == undefined) return false;
|
|
83
|
+
|
|
84
|
+
self.name = name.replace(/\@/, '');
|
|
85
|
+
var patt = /^[a-z0-9_.]/;
|
|
86
|
+
return patt.test(self.name);
|
|
87
|
+
};
|
|
88
|
+
|
|
89
|
+
var check = function(actionType) {
|
|
90
|
+
|
|
91
|
+
self.actionType = actionType;
|
|
92
|
+
|
|
93
|
+
var phrase = null
|
|
94
|
+
, list = ''
|
|
95
|
+
, choices = {} // protocol choice
|
|
96
|
+
, choices2 = {} // scheme choice
|
|
97
|
+
, opt = JSON.clone(self.protocolsAvailable)
|
|
98
|
+
;
|
|
99
|
+
|
|
100
|
+
opt.push('cancel');
|
|
101
|
+
|
|
102
|
+
for (var p = 0, len = opt.length; p < len; ++p) {
|
|
103
|
+
|
|
104
|
+
if (p < len-1) {
|
|
105
|
+
choices[p+1] = opt[p];
|
|
106
|
+
choices[opt[p]] = opt[p];
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
if (p == len-1) {
|
|
110
|
+
list += '\n';
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
if ( self.defaultProtocol == opt[p]) {
|
|
114
|
+
list += '\n ('+ (p+1) +') '+ opt[p] + ' - default';
|
|
115
|
+
} else {
|
|
116
|
+
list += '\n ('+ ( (p == len-1) ? 'c' : (p+1) ) +') '+ opt[p];
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
var name = (actionType == 'project') ? self.projectName : self.name;
|
|
120
|
+
|
|
121
|
+
phrase = 'Choose among the following protocols the new default setting for your ' + actionType +' ('+ name +').\n'+ list +'\r\n> ';
|
|
122
|
+
rl.setPrompt(phrase);
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
var choice = null, choice2 = null;
|
|
127
|
+
rl
|
|
128
|
+
.on('line', function(line) {
|
|
129
|
+
|
|
130
|
+
if (!choice || typeof(choices[choice]) == 'undefined') { // protocol definition
|
|
131
|
+
choice = line.trim().toLowerCase();
|
|
132
|
+
|
|
133
|
+
if ( typeof(choices[choice]) != 'undefined') {
|
|
134
|
+
rl.clearLine();
|
|
135
|
+
|
|
136
|
+
// to the next question
|
|
137
|
+
list = '';
|
|
138
|
+
opt = JSON.clone(self.schemesAvailable);
|
|
139
|
+
opt.push('cancel');
|
|
140
|
+
|
|
141
|
+
for (var p = 0, len = opt.length; p < len; ++p) {
|
|
142
|
+
|
|
143
|
+
if (p < len-1) {
|
|
144
|
+
choices2[p+1] = opt[p];
|
|
145
|
+
choices2[opt[p]] = opt[p];
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
if (p == len-1) {
|
|
149
|
+
list += '\n';
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
if ( self.defaultScheme == opt[p]) {
|
|
153
|
+
list += '\n ('+ (p+1) +') '+ opt[p] + ' - default';
|
|
154
|
+
} else {
|
|
155
|
+
list += '\n ('+ ( (p == len-1) ? 'c' : (p+1) ) +') '+ opt[p];
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
phrase = 'Choose among the following schemes the new default setting for your ' + actionType +' ('+ name +').\n'+ list +'\r\n> ';
|
|
160
|
+
rl.setPrompt(phrase);
|
|
161
|
+
rl.prompt();
|
|
162
|
+
|
|
163
|
+
} else {
|
|
164
|
+
|
|
165
|
+
if ( /^(c|cancel)$/.test(choice) ) {
|
|
166
|
+
rl.clearLine();
|
|
167
|
+
rl.close();
|
|
168
|
+
} else {
|
|
169
|
+
console.log('Please, write '+ self.protocolsAvailable.join(', ') +' or "c" (cancel) to proceed.');
|
|
170
|
+
rl.prompt();
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
} else { // scheme definition
|
|
175
|
+
choice2 = line.trim().toLowerCase();
|
|
176
|
+
if ( typeof(choices2[choice2]) != 'undefined') {
|
|
177
|
+
rl.clearLine();
|
|
178
|
+
|
|
179
|
+
console.debug('[ '+ actionType +' ] Picked: '+ choices[choice] +' - '+ choices2[choice2]);
|
|
180
|
+
|
|
181
|
+
if (/project/.test(actionType))
|
|
182
|
+
setProjectOnly(choices[choice], choices2[choice2]);
|
|
183
|
+
else
|
|
184
|
+
setBundleOnly(choices[choice], choices2[choice2]);
|
|
185
|
+
|
|
186
|
+
} else {
|
|
187
|
+
if ( /^(c|cancel)$/.test(choice2) ) {
|
|
188
|
+
rl.clearLine();
|
|
189
|
+
rl.close();
|
|
190
|
+
} else {
|
|
191
|
+
console.log('Please, write '+ self.schemesAvailable.join(', ') +' or "c" (cancel) to proceed.');
|
|
192
|
+
rl.prompt();
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
|
|
198
|
+
})
|
|
199
|
+
.on('close', function() {
|
|
200
|
+
rl.clearLine();
|
|
201
|
+
console.log('Exiting protocol setup');
|
|
202
|
+
//rl.close();
|
|
203
|
+
});
|
|
204
|
+
|
|
205
|
+
rl.prompt();
|
|
206
|
+
// to debug, comment the line above & uncomment one of the 2 lines below
|
|
207
|
+
//setProjectOnly('http/2')
|
|
208
|
+
//setBundleOnly('http/2')
|
|
209
|
+
|
|
210
|
+
|
|
211
|
+
};
|
|
212
|
+
|
|
213
|
+
|
|
214
|
+
var setProjectOnly = function(protocol, scheme) {
|
|
215
|
+
loadAssets();
|
|
216
|
+
|
|
217
|
+
// are selected protocol & scheme allowed ?
|
|
218
|
+
if ( self.protocolsAvailable.indexOf(protocol) < 0 ) {
|
|
219
|
+
console.error('Scheme [ '+scheme+' ] is not an allowed scheme: check your framework configuration (~/main.json)');
|
|
220
|
+
process.exit(1);
|
|
221
|
+
}
|
|
222
|
+
if ( self.schemesAvailable.indexOf(scheme) < 0 ) {
|
|
223
|
+
console.error('Scheme [ '+scheme+' ] is not an allowed scheme: check your framework configuration (~/main.json)');
|
|
224
|
+
process.exit(1);
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
|
|
228
|
+
// get user protocols list
|
|
229
|
+
var protocols = JSON.clone(self.protocols);
|
|
230
|
+
// get user schemes list
|
|
231
|
+
var schemes = JSON.clone(self.schemes);
|
|
232
|
+
|
|
233
|
+
|
|
234
|
+
var projectConfig = JSON.clone(local.projectConfig);
|
|
235
|
+
|
|
236
|
+
if ( protocols.indexOf(protocol) < 0 ) {
|
|
237
|
+
protocols.push(protocol);
|
|
238
|
+
self.protocols = protocols;
|
|
239
|
+
projectConfig[self.projectName].protocols = protocols;
|
|
240
|
+
}
|
|
241
|
+
if ( schemes.indexOf(scheme) < 0 ) {
|
|
242
|
+
schemes.push(scheme);
|
|
243
|
+
self.schemes = schemes;
|
|
244
|
+
projectConfig[self.projectName].schemes = schemes;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
//console.debug('Setting project protocol & scheme: '+ protocol +' - '+scheme + '\n\r protocols: '+ self.protocols + '\n\r schemes: '+ self.schemes);
|
|
248
|
+
//process.exit(0);
|
|
249
|
+
|
|
250
|
+
// update default protocol & scheme
|
|
251
|
+
self.defaultProtocol = protocol;
|
|
252
|
+
self.defaultScheme = scheme;
|
|
253
|
+
projectConfig[self.projectName].def_protocol = self.defaultProtocol;
|
|
254
|
+
projectConfig[self.projectName].def_scheme = self.defaultScheme;
|
|
255
|
+
projectConfig[self.projectName].protocols = self.protocols;
|
|
256
|
+
projectConfig[self.projectName].schemes = self.schemes;
|
|
257
|
+
|
|
258
|
+
var re = new RegExp('\@'+ self.projectName +'$', '');
|
|
259
|
+
var bundles = self.bundles;
|
|
260
|
+
var envs = self.envs;
|
|
261
|
+
|
|
262
|
+
var ports = JSON.clone(local.ports);
|
|
263
|
+
var portsReverse = JSON.clone(local.portsReverse);
|
|
264
|
+
|
|
265
|
+
// to fixe bundle settings inconsistency
|
|
266
|
+
var bundleConfig = null;
|
|
267
|
+
var settingsPath = null;
|
|
268
|
+
var bundleSettingsUpdate = false;
|
|
269
|
+
|
|
270
|
+
if ( typeof(ports[protocol]) == 'undefined' ) {
|
|
271
|
+
ports[protocol] = {};
|
|
272
|
+
}
|
|
273
|
+
if ( typeof(ports[protocol][scheme]) == 'undefined' ) {
|
|
274
|
+
ports[protocol][scheme] = {};
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
// setup new for the whole project
|
|
278
|
+
var port = null
|
|
279
|
+
, portsAvailable = local.portsAvailable
|
|
280
|
+
, b = null
|
|
281
|
+
, len = null
|
|
282
|
+
, e = null
|
|
283
|
+
, eLen = null
|
|
284
|
+
, i = null
|
|
285
|
+
, s = null
|
|
286
|
+
, p = null
|
|
287
|
+
, found = null
|
|
288
|
+
;
|
|
289
|
+
|
|
290
|
+
|
|
291
|
+
// ports
|
|
292
|
+
b = 0; len = bundles.length;
|
|
293
|
+
for (; b < len; ++b ) { // for each bundle
|
|
294
|
+
e = 0; eLen = envs.length
|
|
295
|
+
for (; e < eLen; ++e) { // for each env
|
|
296
|
+
// check if already set
|
|
297
|
+
found = false;
|
|
298
|
+
for (i in ports) {
|
|
299
|
+
if (i != protocol) continue;
|
|
300
|
+
|
|
301
|
+
for (s in ports[protocol]) {
|
|
302
|
+
if (s != scheme) continue;
|
|
303
|
+
|
|
304
|
+
for (p in ports[protocol][s]) {
|
|
305
|
+
if ( ports[protocol][s][p] == bundles[b] +'@'+ self.projectName +'/'+ envs[e] ) {
|
|
306
|
+
found = true;
|
|
307
|
+
break
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
if (found) break;
|
|
311
|
+
}
|
|
312
|
+
if (found) break;
|
|
313
|
+
}
|
|
314
|
+
if (!found) {
|
|
315
|
+
port = portsAvailable.splice(0, 1)[0];
|
|
316
|
+
ports[protocol][scheme][port] = bundles[b] +'@'+ self.projectName +'/'+ envs[e];
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
// updating reverse ports
|
|
322
|
+
var arr = []
|
|
323
|
+
, key = null
|
|
324
|
+
, env = null
|
|
325
|
+
;
|
|
326
|
+
b = 0;
|
|
327
|
+
for (i in ports) { // each protocol
|
|
328
|
+
if (i != protocol) continue;
|
|
329
|
+
|
|
330
|
+
for (s in ports[protocol]) { // each scheme
|
|
331
|
+
if (s != scheme) continue;
|
|
332
|
+
|
|
333
|
+
for (var port in ports[protocol][scheme]) { // for each port
|
|
334
|
+
|
|
335
|
+
key = ports[protocol][scheme][port];
|
|
336
|
+
|
|
337
|
+
arr = key.split(/\//g);
|
|
338
|
+
env = arr.pop();
|
|
339
|
+
b = arr.join(); //bundle
|
|
340
|
+
|
|
341
|
+
if ( typeof(portsReverse[b]) == 'undefined' )
|
|
342
|
+
portsReverse[b] = {};
|
|
343
|
+
|
|
344
|
+
if ( typeof(portsReverse[b][env]) == 'undefined' )
|
|
345
|
+
portsReverse[b][ env ] = {};
|
|
346
|
+
|
|
347
|
+
if ( typeof(portsReverse[b][env][protocol]) == 'undefined' )
|
|
348
|
+
portsReverse[b][ env ][ protocol ] = {};
|
|
349
|
+
|
|
350
|
+
if ( typeof(portsReverse[b][env][protocol][scheme]) == 'undefined' )
|
|
351
|
+
portsReverse[b][ env ][ protocol ][ scheme ] = {};
|
|
352
|
+
|
|
353
|
+
if ( re.test(b)) {
|
|
354
|
+
//console.log(b, ' [ ' + protocol + ' ] -> ', ~~port);
|
|
355
|
+
portsReverse[b][ env ][ protocol ][ scheme ] = ~~port;
|
|
356
|
+
|
|
357
|
+
// bundle settings inconsistency check & fix
|
|
358
|
+
bundleName = b.split(/\@/)[0];
|
|
359
|
+
bundleConfig = self.bundlesByProject[self.projectName][bundleName];
|
|
360
|
+
settingsPath = _(bundleConfig.configPaths.settings, true);
|
|
361
|
+
bundleSettingsUpdate = false;
|
|
362
|
+
|
|
363
|
+
if ( fs.existsSync(settingsPath) ) {
|
|
364
|
+
|
|
365
|
+
bundleSettings = requireJSON(settingsPath);
|
|
366
|
+
|
|
367
|
+
if ( typeof(bundleSettings.server) != 'undefined' ) {
|
|
368
|
+
// update only if given bundle protocol setting not in project protocols list
|
|
369
|
+
// use project def_protocol by default in that case
|
|
370
|
+
if (
|
|
371
|
+
typeof(bundleSettings.server.protocol) == 'undefined'
|
|
372
|
+
|| typeof(bundleSettings.server.protocol) != 'undefined'
|
|
373
|
+
&& protocols.indexOf(bundleSettings.server.protocol) < 0
|
|
374
|
+
|| typeof(bundleSettings.server.protocol) != 'undefined'
|
|
375
|
+
&& bundleSettings.server.protocol != protocol
|
|
376
|
+
) {
|
|
377
|
+
bundleSettings.server.protocol = protocol;
|
|
378
|
+
bundleSettingsUpdate = true
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
// update only if given bundle scheme setting not in project schemes list
|
|
382
|
+
// use project def_scheme by default in that case
|
|
383
|
+
if (
|
|
384
|
+
typeof(bundleSettings.server.scheme) == 'undefined'
|
|
385
|
+
|| typeof(bundleSettings.server.scheme) != 'undefined'
|
|
386
|
+
&& schemes.indexOf(bundleSettings.server.scheme) < 0
|
|
387
|
+
|| typeof(bundleSettings.server.scheme) != 'undefined'
|
|
388
|
+
&& bundleSettings.server.scheme != scheme
|
|
389
|
+
) {
|
|
390
|
+
bundleSettings.server.scheme = scheme;
|
|
391
|
+
bundleSettingsUpdate = true
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
if (bundleSettingsUpdate) {
|
|
395
|
+
// updating bundle internal config/settings
|
|
396
|
+
bundleSettings.server.protocol = protocol;
|
|
397
|
+
bundleSettings.server.scheme = scheme;
|
|
398
|
+
if ( /http\/2/.test(protocol) && typeof(bundleSettings.server.allowHTTP1) == 'undefined' ) {
|
|
399
|
+
bundleSettings.server.allowHTTP1 = true;
|
|
400
|
+
} else if ( typeof(bundleSettings.server.allowHTTP1) != 'undefined' ) {
|
|
401
|
+
delete bundleSettings.server.allowHTTP1
|
|
402
|
+
}
|
|
403
|
+
lib.generator.createFileFromDataSync(bundleSettings, settingsPath);
|
|
404
|
+
}
|
|
405
|
+
}
|
|
406
|
+
}
|
|
407
|
+
}
|
|
408
|
+
}
|
|
409
|
+
}
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
|
|
413
|
+
|
|
414
|
+
// save to ~/.gina/projects.json
|
|
415
|
+
lib.generator.createFileFromDataSync(projectConfig, self.projectConfigPath);
|
|
416
|
+
// save to ~/.gina/ports.json
|
|
417
|
+
lib.generator.createFileFromDataSync(ports, self.portsPath);
|
|
418
|
+
// save to ~/.gina/ports.reverse.json
|
|
419
|
+
lib.generator.createFileFromDataSync(portsReverse, self.portsReversePath);
|
|
420
|
+
|
|
421
|
+
self.mainConfigUpdated = true;
|
|
422
|
+
end()
|
|
423
|
+
|
|
424
|
+
};
|
|
425
|
+
|
|
426
|
+
var setBundleOnly = function(protocol, scheme) {
|
|
427
|
+
loadAssets();
|
|
428
|
+
|
|
429
|
+
// are selected protocol & scheme allowed ?
|
|
430
|
+
if ( self.protocolsAvailable.indexOf(protocol) < 0 ) {
|
|
431
|
+
console.error('Protocol [ '+scheme+' ] is not an allowed protocol: check your framework configuration (~/main.json)');
|
|
432
|
+
process.exit(1);
|
|
433
|
+
}
|
|
434
|
+
if ( self.schemesAvailable.indexOf(scheme) < 0 ) {
|
|
435
|
+
console.error('Scheme [ '+scheme+' ] is not an allowed scheme: check your framework configuration (~/main.json)');
|
|
436
|
+
process.exit(1);
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
// get user protocols list
|
|
440
|
+
var protocols = JSON.clone(self.protocols);
|
|
441
|
+
// get user schemes list
|
|
442
|
+
var schemes = JSON.clone(self.schemes);
|
|
443
|
+
|
|
444
|
+
var projectConfig = JSON.clone(local.projectConfig);
|
|
445
|
+
|
|
446
|
+
if ( protocols.indexOf(protocol) < 0 ) {
|
|
447
|
+
protocols.push(protocol);
|
|
448
|
+
self.protocols = protocols;
|
|
449
|
+
projectConfig[self.projectName].protocols = protocols;
|
|
450
|
+
}
|
|
451
|
+
if ( schemes.indexOf(scheme) < 0 ) {
|
|
452
|
+
schemes.push(scheme);
|
|
453
|
+
self.schemes = schemes;
|
|
454
|
+
projectConfig[self.projectName].schemes = schemes;
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
//console.debug('Setting project protocol & scheme: '+ protocol +' - '+scheme + '\n\r protocols: '+ self.protocols + '\n\r schemes: '+ self.schemes);
|
|
458
|
+
//process.exit(0);
|
|
459
|
+
// is existing ?
|
|
460
|
+
//var found = protocols.indexOf(protocol);
|
|
461
|
+
//if ( found < 0 || schemes.indexOf(scheme) < 0 ) exit(); // not possible in theory
|
|
462
|
+
|
|
463
|
+
//var bundles = self.bundles;
|
|
464
|
+
var envs = self.envs;
|
|
465
|
+
var re = new RegExp('\@'+ self.projectName +'$', '');
|
|
466
|
+
var ports = JSON.clone(local.ports);
|
|
467
|
+
var portsReverse = JSON.clone(local.portsReverse);
|
|
468
|
+
if ( typeof(ports[protocol]) == 'undefined' ) {
|
|
469
|
+
ports[protocol] = {};
|
|
470
|
+
}
|
|
471
|
+
if ( typeof(ports[protocol][scheme]) == 'undefined' ) {
|
|
472
|
+
ports[protocol][scheme] = {};
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
var bundleConfig = self.bundlesByProject[self.projectName][self.name];
|
|
476
|
+
var settingsPath = _(bundleConfig.configPaths.settings, true);
|
|
477
|
+
//var envSettingsPath = _(settingsPath.replace(/\.json/, '.'+ env +'.json'), true);
|
|
478
|
+
//var env = bundleConfig.defaultEnv;
|
|
479
|
+
|
|
480
|
+
var settings = {};
|
|
481
|
+
|
|
482
|
+
if ( fs.existsSync(settingsPath) ) {
|
|
483
|
+
settings = requireJSON(settingsPath);
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
if ( typeof(settings.server) == 'undefined' ) {
|
|
487
|
+
settings.server = {}
|
|
488
|
+
}
|
|
489
|
+
|
|
490
|
+
var port = null
|
|
491
|
+
, portsAvailable = local.portsAvailable
|
|
492
|
+
, portValue = null
|
|
493
|
+
, b = null // bundle@project
|
|
494
|
+
, e = 0 // env
|
|
495
|
+
, eLen = envs.length
|
|
496
|
+
, found = null
|
|
497
|
+
, i = null // port
|
|
498
|
+
, s = null //scheme
|
|
499
|
+
, p = null // protocol
|
|
500
|
+
;
|
|
501
|
+
|
|
502
|
+
|
|
503
|
+
// bundle ports
|
|
504
|
+
e = 0;
|
|
505
|
+
for (; e < eLen; ++e) { // for each env
|
|
506
|
+
|
|
507
|
+
// check if already set
|
|
508
|
+
found = false;
|
|
509
|
+
for (i in ports) {
|
|
510
|
+
if (i != protocol) continue;
|
|
511
|
+
|
|
512
|
+
for (s in ports[protocol]) {
|
|
513
|
+
if (s != scheme) continue;
|
|
514
|
+
|
|
515
|
+
for (p in ports[protocol][s]) {
|
|
516
|
+
if ( ports[protocol][s][p] == self.name +'@'+ self.projectName +'/'+ envs[e] ) {
|
|
517
|
+
found = true;
|
|
518
|
+
break
|
|
519
|
+
}
|
|
520
|
+
}
|
|
521
|
+
if (found) break;
|
|
522
|
+
}
|
|
523
|
+
if (found) break;
|
|
524
|
+
}
|
|
525
|
+
|
|
526
|
+
if (!found) {
|
|
527
|
+
portValue = self.name +'@'+ self.projectName +'/'+ envs[e];
|
|
528
|
+
// ports
|
|
529
|
+
port = portsAvailable.splice(0, 1)[0];
|
|
530
|
+
ports[protocol][scheme][port] = portValue;
|
|
531
|
+
|
|
532
|
+
b = portValue.split(/\//)[0];
|
|
533
|
+
// portReverse
|
|
534
|
+
if ( typeof(portsReverse[b]) == 'undefined' )
|
|
535
|
+
portsReverse[b] = {};
|
|
536
|
+
|
|
537
|
+
if ( typeof(portsReverse[b][ envs[e] ]) == 'undefined' )
|
|
538
|
+
portsReverse[b][ envs[e] ] = {};
|
|
539
|
+
|
|
540
|
+
if ( typeof(portsReverse[b][ envs[e] ][protocol]) == 'undefined' )
|
|
541
|
+
portsReverse[b][ envs[e] ][ protocol ] = {};
|
|
542
|
+
|
|
543
|
+
if ( typeof(portsReverse[b][ envs[e] ][protocol][scheme]) == 'undefined' )
|
|
544
|
+
portsReverse[b][ envs[e] ][ protocol ][ scheme ] = {};
|
|
545
|
+
|
|
546
|
+
if ( re.test(b)) {
|
|
547
|
+
portsReverse[b][ envs[e] ][ protocol ][ scheme ] = ~~port;
|
|
548
|
+
}
|
|
549
|
+
}
|
|
550
|
+
}
|
|
551
|
+
|
|
552
|
+
|
|
553
|
+
// save to ~/.gina/ports.json
|
|
554
|
+
lib.generator.createFileFromDataSync(ports, self.portsPath);
|
|
555
|
+
// save to ~/.gina/ports.reverse.json
|
|
556
|
+
lib.generator.createFileFromDataSync(portsReverse, self.portsReversePath);
|
|
557
|
+
|
|
558
|
+
|
|
559
|
+
// updating bundle internal config/settings
|
|
560
|
+
settings.server.protocol = protocol;
|
|
561
|
+
settings.server.scheme = scheme;
|
|
562
|
+
if ( /http\/2/.test(protocol) && typeof(settings.server.allowHTTP1) == 'undefined' ) {
|
|
563
|
+
settings.server.allowHTTP1 = true;
|
|
564
|
+
} else if ( typeof(settings.server.allowHTTP1) != 'undefined' ) {
|
|
565
|
+
delete settings.server.allowHTTP1
|
|
566
|
+
}
|
|
567
|
+
// save to bundle's /config/settings.json
|
|
568
|
+
lib.generator.createFileFromDataSync(settings, settingsPath);
|
|
569
|
+
|
|
570
|
+
self.bundleConfigUpdated = true;
|
|
571
|
+
|
|
572
|
+
end()
|
|
573
|
+
};
|
|
574
|
+
|
|
575
|
+
var end = function () {
|
|
576
|
+
|
|
577
|
+
console.log('Protocol updated with success ;)');
|
|
578
|
+
if ( self.mainConfigUpdated || self.portsUpdated || self.portsReverseUpdated || self.bundleConfigUpdated )
|
|
579
|
+
console.log('You need to restart your ' + self.actionType);
|
|
580
|
+
|
|
581
|
+
exit()
|
|
582
|
+
}
|
|
583
|
+
|
|
584
|
+
var rollback = function(err) {
|
|
585
|
+
console.error('[ CLI ] could not complete protocol creation: ', (err.stack||err.message));
|
|
586
|
+
console.info('[ CLI ] rolling back...');
|
|
587
|
+
|
|
588
|
+
var writeFiles = function() {
|
|
589
|
+
|
|
590
|
+
//restore env.json
|
|
591
|
+
if ( typeof(local.envDataWrote) == 'undefined' ) {
|
|
592
|
+
lib.generator.createFileFromDataSync(self.envData, self.envPath);
|
|
593
|
+
}
|
|
594
|
+
//restore project.json
|
|
595
|
+
if ( typeof(local.projectDataWrote) == 'undefined' ) {
|
|
596
|
+
if ( typeof(self.projectData.bundles[local.bundle]) != 'undefined') {
|
|
597
|
+
delete self.projectData.bundles[local.bundle];
|
|
598
|
+
}
|
|
599
|
+
lib.generator.createFileFromDataSync(self.projectData, self.projectConfigPath);
|
|
600
|
+
}
|
|
601
|
+
|
|
602
|
+
//restore ports.json
|
|
603
|
+
if ( typeof(local.portsDataWrote) == 'undefined' ) {
|
|
604
|
+
lib.generator.createFileFromDataSync(self.portsData, self.portsPath);
|
|
605
|
+
}
|
|
606
|
+
|
|
607
|
+
//restore ports.reverse.json
|
|
608
|
+
if ( typeof(local.portsReverseDataWrote) == 'undefined' ) {
|
|
609
|
+
lib.generator.createFileFromDataSync(self.portsReverseData, self.portsReversePath);
|
|
610
|
+
}
|
|
611
|
+
|
|
612
|
+
|
|
613
|
+
process.exit(1);
|
|
614
|
+
};
|
|
615
|
+
|
|
616
|
+
// var bundle = new _(local.source);
|
|
617
|
+
// if ( bundle.existsSync() ) {
|
|
618
|
+
// bundle.rm( function(err) {//remove folder
|
|
619
|
+
// if (err) {
|
|
620
|
+
// throw err
|
|
621
|
+
// }
|
|
622
|
+
// writeFiles()
|
|
623
|
+
// })
|
|
624
|
+
// } else {
|
|
625
|
+
// writeFiles()
|
|
626
|
+
// }
|
|
627
|
+
};
|
|
628
|
+
|
|
629
|
+
init();
|
|
630
|
+
}
|
|
631
|
+
module.exports = Set;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
var fs = require('fs');
|
|
2
|
+
|
|
3
|
+
var CmdHelper = require('./../helper');
|
|
4
|
+
var console = lib.logger;
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Help
|
|
8
|
+
*
|
|
9
|
+
* */
|
|
10
|
+
function Help(opt, cmd) {
|
|
11
|
+
var self = {};
|
|
12
|
+
|
|
13
|
+
var init = function() {
|
|
14
|
+
|
|
15
|
+
// import CMD helpers
|
|
16
|
+
new CmdHelper(self, opt.client, { port: opt.debugPort, brkEnabled: opt.debugBrkEnabled });
|
|
17
|
+
|
|
18
|
+
// check CMD configuration
|
|
19
|
+
if ( !isCmdConfigured() ) return false;
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
getHelp()
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
init()
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
module.exports = Help
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
******************************
|
|
2
|
+
* Scope command lines e.g. *
|
|
3
|
+
******************************
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
[ Adding a new scope ]
|
|
7
|
+
|
|
8
|
+
Adding/refreshing scope to a project
|
|
9
|
+
----------
|
|
10
|
+
|
|
11
|
+
To add a new scope or to refresh an existing one, use the following command line.
|
|
12
|
+
|
|
13
|
+
$ gina scope:add <scope_name> @<project_name>
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
Adding/refreshing scope to a bundle
|
|
17
|
+
----------
|
|
18
|
+
|
|
19
|
+
$ gina env:add <bundle_name>/<scope_name> @<project_name>
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
[ Removing an existing scope ]
|
|
23
|
+
|
|
24
|
+
$ gina scope:remove <scope_name> @<project_name>
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
[ Listing all scopes inside your project ]
|
|
28
|
+
|
|
29
|
+
$ gina scope:list @<project_name>
|
|
30
|
+
|
|
31
|
+
or to list all projects scopes
|
|
32
|
+
|
|
33
|
+
$ gina scope:list
|