gina 0.1.1-alpha.157 → 0.1.1-alpha.159
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/LICENSE +1 -1
- package/README-4Contributors.md +30 -0
- package/README.md +36 -17
- package/bin/cli +41 -18
- package/bin/cli-debug +46 -15
- package/bin/gina +8 -3
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/AUTHORS +0 -0
- package/framework/{v0.1.1-alpha.157/lib/inherits → v0.1.1-alpha.159}/LICENSE +1 -1
- package/framework/v0.1.1-alpha.159/VERSION +1 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/core/asset/html/nolayout.html +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/core/asset/html/static.html +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/core/asset/img/android-chrome-192x192.png +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/core/asset/img/android-chrome-512x512.png +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/core/asset/img/apple-touch-icon.png +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/core/asset/img/favicon-16x16.png +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/core/asset/img/favicon-32x32.png +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/core/asset/img/favicon.ico +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/core/asset/plugin/dist/gina.js +779 -769
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/core/asset/plugin/dist/gina.js.map +3 -3
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/core/asset/plugin/dist/gina.min.css +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/core/asset/plugin/dist/gina.min.css.map +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/core/asset/plugin/dist/gina.min.js +138 -138
- package/framework/v0.1.1-alpha.159/core/asset/plugin/dist/gina.min.js.map +8 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/core/asset/plugin/dist/gina.onload.min.js +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/core/asset/plugin/dist/gina.onload.min.js.map +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/core/asset/plugin/dist/toolbar/css/toolbar-min.css +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/core/asset/plugin/dist/toolbar/css/toolbar.css +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/core/asset/plugin/dist/toolbar/css/toolbar.css.map +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/core/asset/plugin/dist/toolbar/js/jquery-3.1.0.min.js +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/core/asset/plugin/dist/toolbar/main.js +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/core/asset/plugin/dist/toolbar/toolbar.html +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/core/asset/plugin/readme.md +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/core/asset/plugin/uuid.json +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/core/config.js +1 -1
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/core/connectors/couchbase/index.js +21 -7
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/core/connectors/couchbase/lib/connector.js +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/core/connectors/couchbase/lib/connector.v2.js +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/core/connectors/couchbase/lib/connector.v3.js +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/core/connectors/couchbase/lib/connector.v4.js +9 -2
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/core/connectors/couchbase/lib/n1ql.js +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/core/connectors/couchbase/lib/session-store.js +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/core/connectors/couchbase/lib/session-store.v2.js +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/core/connectors/couchbase/lib/session-store.v3.js +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/core/connectors/couchbase/lib/session-store.v4.js +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/core/controller/controller.framework.js +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/core/controller/controller.js +5 -2
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/core/controller/index.js +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/core/deps/busboy/.travis.yml +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/core/deps/busboy/LICENSE +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/core/deps/busboy/README.md +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/core/deps/busboy/deps/encoding/encoding-indexes.js +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/core/deps/busboy/deps/encoding/encoding.js +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/core/deps/busboy/lib/main.js +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/core/deps/busboy/lib/types/multipart.js +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/core/deps/busboy/lib/types/urlencoded.js +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/core/deps/busboy/lib/utils.js +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/core/deps/busboy/package.json +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/core/deps/swig-client/swig-2.0.0.min.js +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/core/dev/index.js +1 -1
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/core/dev/lib/class.js +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/core/dev/lib/factory.js +1 -1
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/core/dev/lib/tools.js +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/core/gna.js +1 -1
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/core/locales/README.md +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/core/locales/currency.json +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/core/locales/dist/language/en.json +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/core/locales/dist/language/fr.json +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/core/locales/dist/region/en.json +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/core/locales/dist/region/fr.json +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/core/locales/index.js +2 -2
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/core/locales/src/make.js +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/core/locales/src/resources/currency.csv +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/core/locales/src/resources/region.csv +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/core/locales/src/resources/region.mapping.json +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/core/mime.types +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/core/model/entity.js +1 -1
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/core/model/index.js +4 -3
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/core/model/template/entityFactory.js +1 -1
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/core/model/template/index.js +1 -1
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/core/plugins/README.md +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/core/plugins/index.js +1 -1
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/core/plugins/lib/file/README.md +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/core/plugins/lib/file/build.json +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/core/plugins/lib/file/package.json +1 -1
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/core/plugins/lib/intl/README.md +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/core/plugins/lib/intl/build.json +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/core/plugins/lib/intl/package.json +1 -1
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/core/plugins/lib/intl/src/main.js +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/core/plugins/lib/storage/README.md +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/core/plugins/lib/storage/build.json +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/core/plugins/lib/storage/package.json +1 -1
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/core/plugins/lib/storage/src/main.js +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/core/plugins/lib/validator/README.md +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/core/plugins/lib/validator/build.json +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/core/plugins/lib/validator/package.json +1 -1
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/core/plugins/lib/validator/src/form-validator.js +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/core/plugins/lib/validator/src/main.js +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/core/router.js +1 -1
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/core/server.express.js +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/core/server.isaac.js +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/core/server.js +25 -24
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/core/status.codes +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/core/template/boilerplate/bundle/config/app.json +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/core/template/boilerplate/bundle/config/routing.json +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/core/template/boilerplate/bundle/config/settings.json +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/core/template/boilerplate/bundle/config/settings.server.json +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/core/template/boilerplate/bundle/config/templates.json +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/core/template/boilerplate/bundle/controllers/controller.content.js +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/core/template/boilerplate/bundle/controllers/controller.js +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/core/template/boilerplate/bundle/controllers/setup.js +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/core/template/boilerplate/bundle/index.js +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/core/template/boilerplate/bundle_namespace/controllers/controller.js +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/core/template/boilerplate/bundle_public/css/default.css +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/core/template/boilerplate/bundle_public/css/vendor/readme.md +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/core/template/boilerplate/bundle_public/favicon.ico +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/core/template/boilerplate/bundle_public/js/vendor/readme.md +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/core/template/boilerplate/bundle_public/readme.md +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/core/template/boilerplate/bundle_templates/handlers/main.js +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/core/template/boilerplate/bundle_templates/html/content/homepage.html +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/core/template/boilerplate/bundle_templates/html/includes/error-msg-noscript.html +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/core/template/boilerplate/bundle_templates/html/includes/error-msg-outdated-browser.html +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/core/template/boilerplate/bundle_templates/html/layouts/main.html +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/core/template/command/gina.bat.tpl +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/core/template/command/gina.tpl +1 -1
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/core/template/conf/env.json +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/core/template/conf/manifest.json +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/core/template/conf/package.json +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/core/template/conf/settings.json +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/core/template/conf/statics.json +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/core/template/conf/templates.json +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/core/template/error/client/json/401.json +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/core/template/error/client/json/403.json +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/core/template/error/client/json/404.json +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/core/template/error/server/html/50x.html +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/core/template/error/server/json/500.json +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/core/template/error/server/json/503.json +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/core/template/extensions/logger/config.json +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/helpers/console.js +1 -1
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/helpers/context.js +1 -1
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/helpers/dateFormat.js +1 -1
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/helpers/index.js +1 -1
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/helpers/json/README.md +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/helpers/json/package.json +1 -1
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/helpers/json/src/main.js +22 -22
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/helpers/path.js +1 -1
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/helpers/plugins/README.md +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/helpers/plugins/package.json +1 -1
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/helpers/plugins/src/api-error.js +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/helpers/plugins/src/main.js +2 -2
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/helpers/prototypes.js +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/helpers/task.js +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/helpers/text.js +1 -1
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/lib/archiver/README.md +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/lib/archiver/build.json +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/lib/archiver/package.json +1 -1
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/lib/archiver/src/dep/jszip.min.js +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/lib/archiver/src/main.js +167 -167
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/lib/cmd/aliases.json +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/lib/cmd/bundle/add.js +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/lib/cmd/bundle/arguments.json +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/lib/cmd/bundle/copy.js +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/lib/cmd/bundle/cp.js +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/lib/cmd/bundle/help.js +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/lib/cmd/bundle/help.txt +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/lib/cmd/bundle/list.js +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/lib/cmd/bundle/remove.js +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/lib/cmd/bundle/rename.js +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/lib/cmd/bundle/restart.js +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/lib/cmd/bundle/rm.js +0 -0
- package/framework/v0.1.1-alpha.159/lib/cmd/bundle/start.js +605 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/lib/cmd/bundle/status.js +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/lib/cmd/bundle/stop.js +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/lib/cmd/env/add.js +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/lib/cmd/env/get.js +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/lib/cmd/env/help.js +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/lib/cmd/env/help.txt +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/lib/cmd/env/link-dev.js +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/lib/cmd/env/list.js +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/lib/cmd/env/remove.js +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/lib/cmd/env/rm.js +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/lib/cmd/env/set.js +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/lib/cmd/env/unset.js +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/lib/cmd/env/use.js +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/lib/cmd/framework/build.js +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/lib/cmd/framework/dot.js +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/lib/cmd/framework/get.js +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/lib/cmd/framework/help.js +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/lib/cmd/framework/help.txt +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/lib/cmd/framework/init.js +147 -4
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/lib/cmd/framework/link-node-modules.js +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/lib/cmd/framework/link.js +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/lib/cmd/framework/msg.json +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/lib/cmd/framework/open.js +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/lib/cmd/framework/restart.js +6 -2
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/lib/cmd/framework/set.js +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/lib/cmd/framework/start.js +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/lib/cmd/framework/status.js +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/lib/cmd/framework/stop.js +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/lib/cmd/framework/tail.js +36 -3
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/lib/cmd/framework/update.js +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/lib/cmd/framework/version.js +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/lib/cmd/gina-dev.1.md +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/lib/cmd/gina-framework.1.md +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/lib/cmd/gina.1.md +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/lib/cmd/helper.js +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/lib/cmd/index.js +1 -1
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/lib/cmd/msg.json +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/lib/cmd/port/help.js +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/lib/cmd/port/help.txt +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/lib/cmd/port/inc/scan.js +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/lib/cmd/port/list.js +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/lib/cmd/port/reset.js +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/lib/cmd/port/set.js +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/lib/cmd/project/add.js +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/lib/cmd/project/arguments.json +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/lib/cmd/project/build.js +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/lib/cmd/project/help.js +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/lib/cmd/project/help.txt +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/lib/cmd/project/import.js +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/lib/cmd/project/list.js +16 -2
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/lib/cmd/project/move.js +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/lib/cmd/project/remove.js +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/lib/cmd/project/rename.js +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/lib/cmd/project/restart.js +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/lib/cmd/project/rm.js +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/lib/cmd/project/start.js +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/lib/cmd/project/status.js +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/lib/cmd/project/stop.js +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/lib/cmd/protocol/help.js +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/lib/cmd/protocol/help.txt +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/lib/cmd/protocol/list.js +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/lib/cmd/protocol/set.js +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/lib/cmd/scope/help.js +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/lib/cmd/scope/help.txt +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/lib/cmd/scope/link-local.js +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/lib/cmd/scope/list.js +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/lib/cmd/scope/remove.js +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/lib/cmd/scope/rm.js +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/lib/cmd/scope/set.js +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/lib/cmd/scope/unset.js +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/lib/cmd/scope/use.js +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/lib/cmd/view/add.js +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/lib/collection/README.md +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/lib/collection/build.json +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/lib/collection/package.json +1 -1
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/lib/collection/src/main.js +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/lib/config.js +2 -1
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/lib/cron/README.md +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/lib/cron/package.json +1 -1
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/lib/cron/src/main.js +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/lib/generator/index.js +1 -1
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/lib/index.js +1 -1
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159/lib/inherits}/LICENSE +1 -1
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/lib/inherits/README.md +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/lib/inherits/example/inheriting_eventemitter.js +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/lib/inherits/example/protected_inheritance.js +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/lib/inherits/example/simple_inheritance.js +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/lib/inherits/example/super_attribute_overridden_by_child_on_init.js +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/lib/inherits/package.json +1 -1
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/lib/inherits/src/main.js +1 -1
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/lib/logger/README.md +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/lib/logger/package.json +1 -1
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/lib/logger/src/containers/default/index.js +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/lib/logger/src/containers/file/index.js +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/lib/logger/src/containers/file/lib/logrotator/README.md +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/lib/logger/src/containers/file/lib/logrotator/index.js +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/lib/logger/src/containers/mq/index.js +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/lib/logger/src/containers/mq/listener.js +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/lib/logger/src/containers/mq/speaker.js +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/lib/logger/src/helper.js +1 -1
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/lib/logger/src/main.js +1 -1
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/lib/math/index.js +7 -7
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/lib/merge/README.md +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/lib/merge/example/merge.js +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/lib/merge/example/merge_2_literal objects.js +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/lib/merge/example/merge_and_preserve_first.js +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/lib/merge/package.json +1 -1
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/lib/merge/src/main.js +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/lib/model.js +9 -9
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/lib/proc.js +8 -4
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/lib/routing/README.md +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/lib/routing/build.json +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/lib/routing/package.json +1 -1
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/lib/routing/src/main.js +258 -258
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/lib/session-store.js +6 -6
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/lib/shell.js +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/lib/swig-filters/README.md +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/lib/swig-filters/package.json +1 -1
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/lib/swig-filters/src/main.js +1 -1
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/lib/url/README.md +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/lib/url/index.js +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/lib/url/mocks.json +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/lib/url/routing.json +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/lib/url/test.js +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/lib/validator.js +0 -0
- package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/package.json +0 -0
- package/package.json +6 -6
- package/resources/home/main.json +25 -0
- package/resources/home/settings.json +2 -0
- package/resources/package.json.template +1 -1
- package/script/post_install.js +1 -1
- package/script/post_publish.js +1 -1
- package/script/pre_install.js +1 -1
- package/script/prepare_version.js +1 -1
- package/utils/helper.js +0 -141
- package/framework/v0.1.1-alpha.157/VERSION +0 -1
- package/framework/v0.1.1-alpha.157/core/asset/plugin/dist/gina.min.js.map +0 -8
- package/framework/v0.1.1-alpha.157/lib/cmd/bundle/start.js +0 -420
|
@@ -2,6 +2,7 @@ var fs = require('fs');
|
|
|
2
2
|
var EventEmitter = require('events').EventEmitter;
|
|
3
3
|
var e = new EventEmitter();
|
|
4
4
|
const { execSync } = require('child_process');
|
|
5
|
+
const { arch } = require('os');
|
|
5
6
|
|
|
6
7
|
var console = lib.logger;
|
|
7
8
|
var ginaPath = getPath('gina').root;
|
|
@@ -66,6 +67,9 @@ function Initialize(opt) {
|
|
|
66
67
|
require(path)(opt, cmd)
|
|
67
68
|
} catch(err) {
|
|
68
69
|
console.crit('Gina has some troubles with command [ ', process.argv.join(' ') + ' ]\n' + err.stack);
|
|
70
|
+
if (opt.client) {
|
|
71
|
+
opt.client.write('Gina has some troubles with command [ ', process.argv.join(' ') + ' ]\n' + err.stack);
|
|
72
|
+
}
|
|
69
73
|
process.exit(-1);
|
|
70
74
|
}
|
|
71
75
|
}
|
|
@@ -162,7 +166,8 @@ function Initialize(opt) {
|
|
|
162
166
|
mainConfig[k] = ( typeof(data[k]) == 'object' ) ? JSON.clone(data[k]) : data[k];
|
|
163
167
|
}
|
|
164
168
|
}
|
|
165
|
-
|
|
169
|
+
// arch
|
|
170
|
+
mainConfig.archs = merge(mainConfig.archs, data.archs, true);
|
|
166
171
|
// envs
|
|
167
172
|
mainConfig.envs = merge(mainConfig.envs, data.envs, true);
|
|
168
173
|
// scopes
|
|
@@ -229,6 +234,93 @@ function Initialize(opt) {
|
|
|
229
234
|
setEnvVar('GINA_GLOBAL_MODE', defGlobalMode);
|
|
230
235
|
}
|
|
231
236
|
|
|
237
|
+
/**
|
|
238
|
+
* Check arch
|
|
239
|
+
*
|
|
240
|
+
* */
|
|
241
|
+
self.checkArch = function() {
|
|
242
|
+
|
|
243
|
+
var currentArch = process.arch;
|
|
244
|
+
var currentPlatform = process.platform;
|
|
245
|
+
// ignored for framework:set
|
|
246
|
+
var mainConfig = require( self.opt.homedir + '/main.json' );
|
|
247
|
+
var defaultMainConfig = requireJSON( getPath('gina').root + '/resources/home/main.json' );
|
|
248
|
+
//has registered arch ?
|
|
249
|
+
var arch = getEnvVar('GINA_ARCH') || mainConfig['def_arch'][self.release] || null; // arch by default
|
|
250
|
+
if ( typeof(mainConfig.archs) == 'undefined' ) {
|
|
251
|
+
mainConfig.archs = {};
|
|
252
|
+
mainConfig.archs[self.release] = defaultMainConfig.archs['{release}'];
|
|
253
|
+
mainConfig['def_arch'] = {}
|
|
254
|
+
mainConfig['def_arch'][self.release] = currentArch;
|
|
255
|
+
isUpdateNeeded = true;
|
|
256
|
+
}
|
|
257
|
+
if ( mainConfig.archs[self.release].indexOf(arch) < 0 ) {
|
|
258
|
+
console.error('Arch [ ' + arch + ' ] not registered. Gina is not support your architecture `'+ process.arch +'` at this moment.');
|
|
259
|
+
process.exit(1);
|
|
260
|
+
}
|
|
261
|
+
var platform = getEnvVar('GINA_PLATFORM') || mainConfig['def_platform'][self.release] || null; // arch by default
|
|
262
|
+
if ( typeof(mainConfig.platforms) == 'undefined' ) {
|
|
263
|
+
mainConfig.platforms = {};
|
|
264
|
+
mainConfig.platforms[self.release] = defaultMainConfig.platforms['{release}'];
|
|
265
|
+
mainConfig['def_platform'] = {}
|
|
266
|
+
mainConfig['def_platform'][self.release] = currentPlatform;
|
|
267
|
+
isUpdateNeeded = true;
|
|
268
|
+
}
|
|
269
|
+
if ( mainConfig.platforms[self.release].indexOf(platform) < 0 ) {
|
|
270
|
+
console.error('Platform [ ' + platform + ' ] not registered. Gina is not support your platform `'+ process.platform +'` at this moment.');
|
|
271
|
+
process.exit(1);
|
|
272
|
+
}
|
|
273
|
+
var isUpdateNeeded = false;
|
|
274
|
+
if (arch != currentArch) {
|
|
275
|
+
// updating arch
|
|
276
|
+
arch = currentArch;
|
|
277
|
+
if ( mainConfig.archs[self.release].indexOf(arch) < 0 ) {
|
|
278
|
+
console.error('Arch [ ' + arch + ' ] not registered. Gina is not support your architecture `'+ process.arch +'` at this moment.');
|
|
279
|
+
process.exit(1);
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
isUpdateNeeded = true;
|
|
283
|
+
mainConfig['def_arch'][self.release] = arch;
|
|
284
|
+
}
|
|
285
|
+
if (platform != currentPlatform) {
|
|
286
|
+
// updating platform
|
|
287
|
+
platform = currentPlatform;
|
|
288
|
+
if ( mainConfig.platforms[self.release].indexOf(platform) < 0 ) {
|
|
289
|
+
console.error('Platform [ ' + arch + ' ] not registered. Gina is not support your platform `'+ process.platform +'` at this moment.');
|
|
290
|
+
process.exit(1);
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
isUpdateNeeded = true;
|
|
294
|
+
mainConfig['def_platform'][self.release] = platform;
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
|
|
298
|
+
// has arch & platform ?
|
|
299
|
+
if (
|
|
300
|
+
isUpdateNeeded
|
|
301
|
+
||
|
|
302
|
+
typeof(mainConfig['def_arch']) == 'undefined'
|
|
303
|
+
||
|
|
304
|
+
typeof(mainConfig['def_platform']) == 'undefined'
|
|
305
|
+
||
|
|
306
|
+
typeof(mainConfig['def_arch']) != 'undefined'
|
|
307
|
+
&& typeof(mainConfig['def_arch'][self.release]) != 'undefined'
|
|
308
|
+
&& mainConfig.archs[self.release].indexOf(mainConfig['def_arch'][self.release]) < 0
|
|
309
|
+
||
|
|
310
|
+
typeof(mainConfig['def_platform']) != 'undefined'
|
|
311
|
+
&& typeof(mainConfig['def_platform'][self.release]) != 'undefined'
|
|
312
|
+
&& mainConfig.platforms[self.release].indexOf(mainConfig['def_platform'][self.release]) < 0
|
|
313
|
+
) {
|
|
314
|
+
var target = _(self.opt.homedir +'/main.json');
|
|
315
|
+
lib.generator.createFileFromDataSync(
|
|
316
|
+
mainConfig,
|
|
317
|
+
target
|
|
318
|
+
)
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
// scanning project
|
|
322
|
+
}
|
|
323
|
+
|
|
232
324
|
/**
|
|
233
325
|
* Checking ports
|
|
234
326
|
*
|
|
@@ -334,6 +426,7 @@ function Initialize(opt) {
|
|
|
334
426
|
}
|
|
335
427
|
|
|
336
428
|
|
|
429
|
+
|
|
337
430
|
/**
|
|
338
431
|
* Checking settings, defining constants
|
|
339
432
|
* Also done during bin/cmd init() ... so if you change here ...
|
|
@@ -345,6 +438,8 @@ function Initialize(opt) {
|
|
|
345
438
|
, version = getEnvVar('GINA_VERSION')
|
|
346
439
|
, prefix = getEnvVar('GINA_PREFIX') || main['def_prefix'][self.release]
|
|
347
440
|
, globalMode = getEnvVar('GINA_GLOBAL_MODE') || main['def_global_mode'][self.release]
|
|
441
|
+
, arch = getEnvVar('GINA_ARCH') || main['def_arch'][self.release]
|
|
442
|
+
, platform = getEnvVar('GINA_PLATFORM') || main['def_platform'][self.release]
|
|
348
443
|
, env = getEnvVar('GINA_ENV') || main['def_env'][self.release]
|
|
349
444
|
, scope = getEnvVar('GINA_SCOPE') || main['def_scope'][self.release]
|
|
350
445
|
, settings = requireJSON( _( getPath('gina').root + '/resources/home/settings.json', true ) )
|
|
@@ -405,6 +500,8 @@ function Initialize(opt) {
|
|
|
405
500
|
'prefix' : prefix,
|
|
406
501
|
'global_mode': globalMode,
|
|
407
502
|
'version' : version,
|
|
503
|
+
'arch' : arch,
|
|
504
|
+
'platform': platform,
|
|
408
505
|
'env' : env,
|
|
409
506
|
'env_is_dev' : (main['dev_env'][self.release] == env) ? true : false,
|
|
410
507
|
'dev_env' : main['dev_env'][self.release],
|
|
@@ -493,9 +590,6 @@ function Initialize(opt) {
|
|
|
493
590
|
|
|
494
591
|
}
|
|
495
592
|
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
593
|
self.checkIfCertificatesDir = function() {
|
|
500
594
|
var certsDir = new _( getEnvVar('GINA_HOMEDIR') + '/certificates', true);
|
|
501
595
|
var theRSARootCertsDir = new _(certsDir.toString() + '/RSARootCerts', true);
|
|
@@ -540,6 +634,55 @@ function Initialize(opt) {
|
|
|
540
634
|
}
|
|
541
635
|
}
|
|
542
636
|
|
|
637
|
+
/**
|
|
638
|
+
* Checking PIDs for cleanup
|
|
639
|
+
*
|
|
640
|
+
**/
|
|
641
|
+
self.checkRunningPids = function() {
|
|
642
|
+
console.debug('Checking PIDs for cleanup...');
|
|
643
|
+
if ( /true/.test(getEnvVar('GINA_IS_WIN32')) ) {
|
|
644
|
+
console.debug(' Skipping for windows...');
|
|
645
|
+
}
|
|
646
|
+
var runDirObj = new _( getEnvVar('GINA_RUNDIR'), true );
|
|
647
|
+
var runDir = runDirObj.toString();
|
|
648
|
+
|
|
649
|
+
if ( runDirObj.existsSync() ) {
|
|
650
|
+
console.debug('Run dir: ', runDir );
|
|
651
|
+
var files = fs.readdirSync(runDir);
|
|
652
|
+
for (let f in files) {
|
|
653
|
+
if ( /^\./.test(files[f]) ) {
|
|
654
|
+
continue;
|
|
655
|
+
}
|
|
656
|
+
let filenameObj = new _( runDir +'/'+ files[f], true );
|
|
657
|
+
let filename = filenameObj.toString();
|
|
658
|
+
let pid = fs.readFileSync(filename).toString();
|
|
659
|
+
if (!pid) {
|
|
660
|
+
filenameObj.rmSync();
|
|
661
|
+
continue;
|
|
662
|
+
}
|
|
663
|
+
let isRunnung = true;
|
|
664
|
+
try {
|
|
665
|
+
let found = execSync("ps -p "+ pid +" -o pid="); //.replace(/\n$/g, '') || null;
|
|
666
|
+
if (!found) {
|
|
667
|
+
isRunnung = false;
|
|
668
|
+
}
|
|
669
|
+
} catch (err) {
|
|
670
|
+
isRunnung = false;
|
|
671
|
+
}
|
|
672
|
+
|
|
673
|
+
if (!isRunnung) {
|
|
674
|
+
filenameObj.rmSync();
|
|
675
|
+
continue;
|
|
676
|
+
}
|
|
677
|
+
|
|
678
|
+
|
|
679
|
+
console.debug(' Running: '+ filename +' ['+ pid +'] ['+ isRunnung +']');
|
|
680
|
+
} // EO for (let f in files) {
|
|
681
|
+
} else {
|
|
682
|
+
console.warn('Run directory `'+ runDir +'` not found !')
|
|
683
|
+
}
|
|
684
|
+
}
|
|
685
|
+
|
|
543
686
|
self.end = function() {
|
|
544
687
|
defineDefault(process.gina)
|
|
545
688
|
}
|
package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/lib/cmd/framework/link-node-modules.js
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -61,7 +61,11 @@ function Restart(opt, cmd) {
|
|
|
61
61
|
|
|
62
62
|
var restart = function(opt, cmd) {
|
|
63
63
|
stop();
|
|
64
|
-
|
|
64
|
+
// if previous debug session
|
|
65
|
+
setTimeout(() => {
|
|
66
|
+
start(opt);
|
|
67
|
+
}, 100);
|
|
68
|
+
|
|
65
69
|
}
|
|
66
70
|
|
|
67
71
|
var stop = function() {
|
|
@@ -81,7 +85,7 @@ function Restart(opt, cmd) {
|
|
|
81
85
|
* because of the `process.kill(..., 'SIGABRT')` used inside the orginal `start` script
|
|
82
86
|
* or else, the restart script will be pending forever.
|
|
83
87
|
*/
|
|
84
|
-
var start = async function() {
|
|
88
|
+
var start = async function(opt) {
|
|
85
89
|
console.debug('continue with start now');
|
|
86
90
|
try {
|
|
87
91
|
// var child = spawn('gina', ['start', '@'+self.version],
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -14,6 +14,7 @@ var LoggerHelper = require( _(GINA_FRAMEWORK_DIR + '/lib/logger/src/helper.js
|
|
|
14
14
|
* Framework tail
|
|
15
15
|
* By default, tail will exit when a bundle is exiting. If you want to prevent
|
|
16
16
|
* tail from exiting, you should use `--keep-alive`
|
|
17
|
+
* This will also will restart bundle in case of crach
|
|
17
18
|
*
|
|
18
19
|
* e.g.
|
|
19
20
|
* gina framework:tail
|
|
@@ -24,6 +25,8 @@ var LoggerHelper = require( _(GINA_FRAMEWORK_DIR + '/lib/logger/src/helper.js
|
|
|
24
25
|
*
|
|
25
26
|
* */
|
|
26
27
|
function Tail(opt, cmd) {
|
|
28
|
+
|
|
29
|
+
process.title = 'gina-tail';
|
|
27
30
|
var self = {};
|
|
28
31
|
var nIntervId = null;
|
|
29
32
|
var mqPortFile = _(getTmpDir() +'/mq-listener-v'+ GINA_VERSION +'.port', true);
|
|
@@ -182,10 +185,40 @@ function Tail(opt, cmd) {
|
|
|
182
185
|
process.stdout.write( format(pl.group, pl.level, pl.content) );
|
|
183
186
|
if (
|
|
184
187
|
/(exiting|Got exit code)(.*)(SIGKILL|SIGTERM|SIGINT)/.test(pl.content)
|
|
185
|
-
|
|
188
|
+
||
|
|
189
|
+
// killed by terminal signal or activity monitor
|
|
190
|
+
// Received SIGTERM or Received SIGINT)
|
|
191
|
+
/(SIGTERM|SIGINT)/.test(pl.content)
|
|
192
|
+
||
|
|
193
|
+
/JavaScript heap out of memory/.test(pl.content)
|
|
186
194
|
) {
|
|
187
|
-
|
|
188
|
-
|
|
195
|
+
|
|
196
|
+
let bundleDesc = pl.content.match(/\`(.*)\@(.*\`)/);
|
|
197
|
+
let bundle = null;
|
|
198
|
+
let project = null;
|
|
199
|
+
if ( Array.isArray(bundleDesc) && bundleDesc.length > 0) {
|
|
200
|
+
bundle = bundleDesc[1];
|
|
201
|
+
project= bundleDesc[2];
|
|
202
|
+
} // else, must be `gina` (the framework)
|
|
203
|
+
|
|
204
|
+
if (opt.argv.indexOf('--keep-alive') < 0) {
|
|
205
|
+
// TODO - exits only if no other bundle is runing in the project
|
|
206
|
+
// let projectStatus = execSync("gina project:status @"+project);
|
|
207
|
+
// if ( /is\ running/.test(projectStatus) ) {
|
|
208
|
+
// return;
|
|
209
|
+
// }
|
|
210
|
+
process.stdout.write('[MQTail] Not keeping alive...\n' );
|
|
211
|
+
client.destroy();
|
|
212
|
+
return end()
|
|
213
|
+
}
|
|
214
|
+
// TODO - restart bundle if not starting or restarting
|
|
215
|
+
else if (
|
|
216
|
+
opt.argv.indexOf('--keep-alive') > -1
|
|
217
|
+
&& ! /(SIGKILL|SIGTERM|SIGINT)/.test(pl.content)
|
|
218
|
+
) {
|
|
219
|
+
// only for debug
|
|
220
|
+
process.stdout.write('[MQTail] '+ JSON.stringify(payloads, null, 2) +'\n' );
|
|
221
|
+
}
|
|
189
222
|
}
|
|
190
223
|
} catch (writeErr) {
|
|
191
224
|
// means that the related MQSpeaker is not connected yet
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
/**
|
|
3
3
|
* Gina.Utils.cmd
|
|
4
|
-
* Copyright (c) 2009-
|
|
4
|
+
* Copyright (c) 2009-2023 Rhinostone <contact@gina.io>
|
|
5
5
|
*
|
|
6
6
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
7
7
|
* of this software and associated documentation files (the "Software"), to deal
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -28,12 +28,12 @@ function List(opt, cmd){
|
|
|
28
28
|
, str = ''
|
|
29
29
|
, more = (process.argv[3] && /^(?:\-\-more$)/.test(process.argv[3])) ? true : false ;
|
|
30
30
|
|
|
31
|
-
for (
|
|
31
|
+
for (let p in projects) {
|
|
32
32
|
list.push(p)
|
|
33
33
|
}
|
|
34
34
|
list.sort();
|
|
35
35
|
|
|
36
|
-
for(
|
|
36
|
+
for(let l=0; l<list.length; ++l) {
|
|
37
37
|
if ( fs.existsSync(projects[ list[l]].path) ) {
|
|
38
38
|
str += '[ ok ] '+ list[l];
|
|
39
39
|
if (more)
|
|
@@ -47,6 +47,20 @@ function List(opt, cmd){
|
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
49
|
console.log(str.substr(0, str.length-2))
|
|
50
|
+
end();
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
var end = function (err, type, messageOnly) {
|
|
54
|
+
if ( typeof(err) != 'undefined') {
|
|
55
|
+
var out = ( typeof(messageOnly) != 'undefined' && /^true$/i.test(messageOnly) ) ? err.message : (err.stack||err.message);
|
|
56
|
+
if ( typeof(type) != 'undefined' ) {
|
|
57
|
+
console[type](out)
|
|
58
|
+
} else {
|
|
59
|
+
console.error(out);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
process.exit( err ? 1:0 )
|
|
50
64
|
}
|
|
51
65
|
|
|
52
66
|
init()
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* Gina.Utils.Config
|
|
2
2
|
*
|
|
3
3
|
* This file is part of the gina package.
|
|
4
|
-
* Copyright (c) 2009-
|
|
4
|
+
* Copyright (c) 2009-2023 Rhinostone <contact@gina.io>
|
|
5
5
|
*
|
|
6
6
|
* For the full copyright and license information, please view the LICENSE
|
|
7
7
|
* file that was distributed with this source code.
|
|
@@ -201,6 +201,7 @@ function ConfigUtil() {
|
|
|
201
201
|
utils : content.paths.utils
|
|
202
202
|
};
|
|
203
203
|
var gnaFolder = content.paths.root + '/.gna';
|
|
204
|
+
console.debug('Checking for `'+ gnaFolder +'` ...');
|
|
204
205
|
|
|
205
206
|
// !! Not the project name
|
|
206
207
|
self.project = content.project;
|
|
File without changes
|
|
File without changes
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* Gina.Utils.Generator
|
|
2
2
|
*
|
|
3
3
|
* This file is part of the gina package.
|
|
4
|
-
* Copyright (c) 2009-
|
|
4
|
+
* Copyright (c) 2009-2023 Rhinostone <contact@gina.io>
|
|
5
5
|
*
|
|
6
6
|
* For the full copyright and license information, please view the LICENSE
|
|
7
7
|
* file that was distributed with this source code.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* This file is part of the gina package.
|
|
3
|
-
* Copyright (c) 2009-
|
|
3
|
+
* Copyright (c) 2009-2023 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.
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/lib/inherits/example/simple_inheritance.js
RENAMED
|
File without changes
|
|
File without changes
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"name": "Rhinostone",
|
|
21
21
|
"email": "contact@gina.io"
|
|
22
22
|
},
|
|
23
|
-
"copyright" : "Copyright (c) 2009-
|
|
23
|
+
"copyright" : "Copyright (c) 2009-2023 Rhinostone <contact@gina.io>",
|
|
24
24
|
"main": "src/main",
|
|
25
25
|
"scripts": {
|
|
26
26
|
"test": "nodeunit test"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
/**
|
|
3
3
|
* This file is part of the gina package.
|
|
4
|
-
* Copyright (c) 2009-
|
|
4
|
+
* Copyright (c) 2009-2023 Rhinostone <contact@gina.io>
|
|
5
5
|
*
|
|
6
6
|
* For the full copyright and license information, please view the LICENSE
|
|
7
7
|
* file that was distributed with this source code.
|
|
File without changes
|
package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/lib/logger/src/containers/default/index.js
RENAMED
|
File without changes
|
package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/lib/logger/src/containers/file/index.js
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/lib/logger/src/containers/mq/index.js
RENAMED
|
File without changes
|
package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/lib/logger/src/containers/mq/listener.js
RENAMED
|
File without changes
|
package/framework/{v0.1.1-alpha.157 → v0.1.1-alpha.159}/lib/logger/src/containers/mq/speaker.js
RENAMED
|
File without changes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* This file is part of the gina package.
|
|
3
|
-
* Copyright (c) 2009-
|
|
3
|
+
* Copyright (c) 2009-2023 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.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
/**
|
|
3
3
|
* This file is part of the gina package.
|
|
4
|
-
* Copyright (c) 2009-
|
|
4
|
+
* Copyright (c) 2009-2023 Rhinostone <contact@gina.io>
|
|
5
5
|
*
|
|
6
6
|
* For the full copyright and license information, please view the LICENSE
|
|
7
7
|
* file that was distributed with this source code.
|