gina 0.1.1-alpha.158 → 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/README-4Contributors.md +13 -0
- package/bin/cli +10 -1
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/AUTHORS +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/LICENSE +0 -0
- package/framework/v0.1.1-alpha.159/VERSION +1 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/core/asset/html/nolayout.html +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/core/asset/html/static.html +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/core/asset/img/android-chrome-192x192.png +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/core/asset/img/android-chrome-512x512.png +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/core/asset/img/apple-touch-icon.png +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/core/asset/img/favicon-16x16.png +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/core/asset/img/favicon-32x32.png +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/core/asset/img/favicon.ico +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/core/asset/plugin/dist/gina.js +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/core/asset/plugin/dist/gina.js.map +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/core/asset/plugin/dist/gina.min.css +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/core/asset/plugin/dist/gina.min.css.map +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/core/asset/plugin/dist/gina.min.js +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/core/asset/plugin/dist/gina.min.js.map +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/core/asset/plugin/dist/gina.onload.min.js +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/core/asset/plugin/dist/gina.onload.min.js.map +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/core/asset/plugin/dist/toolbar/css/toolbar-min.css +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/core/asset/plugin/dist/toolbar/css/toolbar.css +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/core/asset/plugin/dist/toolbar/css/toolbar.css.map +0 -0
- package/framework/{v0.1.1-alpha.158 → 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.158 → v0.1.1-alpha.159}/core/asset/plugin/dist/toolbar/main.js +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/core/asset/plugin/dist/toolbar/toolbar.html +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/core/asset/plugin/readme.md +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/core/asset/plugin/uuid.json +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/core/config.js +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/core/connectors/couchbase/index.js +3 -3
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/core/connectors/couchbase/lib/connector.js +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/core/connectors/couchbase/lib/connector.v2.js +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/core/connectors/couchbase/lib/connector.v3.js +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/core/connectors/couchbase/lib/connector.v4.js +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/core/connectors/couchbase/lib/n1ql.js +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/core/connectors/couchbase/lib/session-store.js +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/core/connectors/couchbase/lib/session-store.v2.js +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/core/connectors/couchbase/lib/session-store.v3.js +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/core/connectors/couchbase/lib/session-store.v4.js +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/core/controller/controller.framework.js +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/core/controller/controller.js +3 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/core/controller/index.js +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/core/deps/busboy/.travis.yml +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/core/deps/busboy/LICENSE +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/core/deps/busboy/README.md +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/core/deps/busboy/deps/encoding/encoding-indexes.js +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/core/deps/busboy/deps/encoding/encoding.js +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/core/deps/busboy/lib/main.js +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/core/deps/busboy/lib/types/multipart.js +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/core/deps/busboy/lib/types/urlencoded.js +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/core/deps/busboy/lib/utils.js +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/core/deps/busboy/package.json +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/core/deps/swig-client/swig-2.0.0.min.js +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/core/dev/index.js +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/core/dev/lib/class.js +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/core/dev/lib/factory.js +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/core/dev/lib/tools.js +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/core/gna.js +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/core/locales/README.md +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/core/locales/currency.json +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/core/locales/dist/language/en.json +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/core/locales/dist/language/fr.json +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/core/locales/dist/region/en.json +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/core/locales/dist/region/fr.json +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/core/locales/index.js +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/core/locales/src/make.js +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/core/locales/src/resources/currency.csv +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/core/locales/src/resources/region.csv +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/core/locales/src/resources/region.mapping.json +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/core/mime.types +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/core/model/entity.js +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/core/model/index.js +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/core/model/template/entityFactory.js +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/core/model/template/index.js +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/core/plugins/README.md +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/core/plugins/index.js +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/core/plugins/lib/file/README.md +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/core/plugins/lib/file/build.json +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/core/plugins/lib/file/package.json +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/core/plugins/lib/intl/README.md +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/core/plugins/lib/intl/build.json +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/core/plugins/lib/intl/package.json +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/core/plugins/lib/intl/src/main.js +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/core/plugins/lib/storage/README.md +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/core/plugins/lib/storage/build.json +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/core/plugins/lib/storage/package.json +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/core/plugins/lib/storage/src/main.js +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/core/plugins/lib/validator/README.md +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/core/plugins/lib/validator/build.json +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/core/plugins/lib/validator/package.json +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/core/plugins/lib/validator/src/form-validator.js +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/core/plugins/lib/validator/src/main.js +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/core/router.js +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/core/server.express.js +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/core/server.isaac.js +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/core/server.js +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/core/status.codes +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/core/template/boilerplate/bundle/config/app.json +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/core/template/boilerplate/bundle/config/routing.json +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/core/template/boilerplate/bundle/config/settings.json +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/core/template/boilerplate/bundle/config/settings.server.json +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/core/template/boilerplate/bundle/config/templates.json +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/core/template/boilerplate/bundle/controllers/controller.content.js +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/core/template/boilerplate/bundle/controllers/controller.js +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/core/template/boilerplate/bundle/controllers/setup.js +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/core/template/boilerplate/bundle/index.js +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/core/template/boilerplate/bundle_namespace/controllers/controller.js +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/core/template/boilerplate/bundle_public/css/default.css +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/core/template/boilerplate/bundle_public/css/vendor/readme.md +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/core/template/boilerplate/bundle_public/favicon.ico +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/core/template/boilerplate/bundle_public/js/vendor/readme.md +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/core/template/boilerplate/bundle_public/readme.md +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/core/template/boilerplate/bundle_templates/handlers/main.js +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/core/template/boilerplate/bundle_templates/html/content/homepage.html +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/core/template/boilerplate/bundle_templates/html/includes/error-msg-noscript.html +0 -0
- package/framework/{v0.1.1-alpha.158 → 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.158 → v0.1.1-alpha.159}/core/template/boilerplate/bundle_templates/html/layouts/main.html +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/core/template/command/gina.bat.tpl +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/core/template/command/gina.tpl +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/core/template/conf/env.json +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/core/template/conf/manifest.json +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/core/template/conf/package.json +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/core/template/conf/settings.json +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/core/template/conf/statics.json +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/core/template/conf/templates.json +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/core/template/error/client/json/401.json +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/core/template/error/client/json/403.json +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/core/template/error/client/json/404.json +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/core/template/error/server/html/50x.html +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/core/template/error/server/json/500.json +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/core/template/error/server/json/503.json +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/core/template/extensions/logger/config.json +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/helpers/console.js +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/helpers/context.js +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/helpers/dateFormat.js +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/helpers/index.js +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/helpers/json/README.md +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/helpers/json/package.json +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/helpers/json/src/main.js +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/helpers/path.js +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/helpers/plugins/README.md +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/helpers/plugins/package.json +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/helpers/plugins/src/api-error.js +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/helpers/plugins/src/main.js +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/helpers/prototypes.js +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/helpers/task.js +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/helpers/text.js +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/lib/archiver/README.md +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/lib/archiver/build.json +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/lib/archiver/package.json +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/lib/archiver/src/dep/jszip.min.js +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/lib/archiver/src/main.js +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/lib/cmd/aliases.json +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/lib/cmd/bundle/add.js +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/lib/cmd/bundle/arguments.json +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/lib/cmd/bundle/copy.js +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/lib/cmd/bundle/cp.js +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/lib/cmd/bundle/help.js +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/lib/cmd/bundle/help.txt +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/lib/cmd/bundle/list.js +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/lib/cmd/bundle/remove.js +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/lib/cmd/bundle/rename.js +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/lib/cmd/bundle/restart.js +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/lib/cmd/bundle/rm.js +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/lib/cmd/bundle/start.js +38 -70
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/lib/cmd/bundle/status.js +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/lib/cmd/bundle/stop.js +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/lib/cmd/env/add.js +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/lib/cmd/env/get.js +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/lib/cmd/env/help.js +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/lib/cmd/env/help.txt +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/lib/cmd/env/link-dev.js +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/lib/cmd/env/list.js +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/lib/cmd/env/remove.js +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/lib/cmd/env/rm.js +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/lib/cmd/env/set.js +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/lib/cmd/env/unset.js +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/lib/cmd/env/use.js +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/lib/cmd/framework/build.js +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/lib/cmd/framework/dot.js +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/lib/cmd/framework/get.js +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/lib/cmd/framework/help.js +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/lib/cmd/framework/help.txt +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/lib/cmd/framework/init.js +47 -8
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/lib/cmd/framework/link-node-modules.js +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/lib/cmd/framework/link.js +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/lib/cmd/framework/msg.json +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/lib/cmd/framework/open.js +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/lib/cmd/framework/restart.js +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/lib/cmd/framework/set.js +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/lib/cmd/framework/start.js +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/lib/cmd/framework/status.js +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/lib/cmd/framework/stop.js +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/lib/cmd/framework/tail.js +1 -1
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/lib/cmd/framework/update.js +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/lib/cmd/framework/version.js +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/lib/cmd/gina-dev.1.md +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/lib/cmd/gina-framework.1.md +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/lib/cmd/gina.1.md +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/lib/cmd/helper.js +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/lib/cmd/index.js +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/lib/cmd/msg.json +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/lib/cmd/port/help.js +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/lib/cmd/port/help.txt +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/lib/cmd/port/inc/scan.js +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/lib/cmd/port/list.js +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/lib/cmd/port/reset.js +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/lib/cmd/port/set.js +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/lib/cmd/project/add.js +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/lib/cmd/project/arguments.json +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/lib/cmd/project/build.js +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/lib/cmd/project/help.js +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/lib/cmd/project/help.txt +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/lib/cmd/project/import.js +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/lib/cmd/project/list.js +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/lib/cmd/project/move.js +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/lib/cmd/project/remove.js +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/lib/cmd/project/rename.js +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/lib/cmd/project/restart.js +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/lib/cmd/project/rm.js +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/lib/cmd/project/start.js +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/lib/cmd/project/status.js +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/lib/cmd/project/stop.js +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/lib/cmd/protocol/help.js +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/lib/cmd/protocol/help.txt +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/lib/cmd/protocol/list.js +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/lib/cmd/protocol/set.js +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/lib/cmd/scope/help.js +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/lib/cmd/scope/help.txt +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/lib/cmd/scope/link-local.js +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/lib/cmd/scope/list.js +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/lib/cmd/scope/remove.js +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/lib/cmd/scope/rm.js +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/lib/cmd/scope/set.js +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/lib/cmd/scope/unset.js +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/lib/cmd/scope/use.js +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/lib/cmd/view/add.js +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/lib/collection/README.md +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/lib/collection/build.json +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/lib/collection/package.json +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/lib/collection/src/main.js +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/lib/config.js +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/lib/cron/README.md +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/lib/cron/package.json +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/lib/cron/src/main.js +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/lib/generator/index.js +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/lib/index.js +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/lib/inherits/LICENSE +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/lib/inherits/README.md +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/lib/inherits/example/inheriting_eventemitter.js +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/lib/inherits/example/protected_inheritance.js +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/lib/inherits/example/simple_inheritance.js +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/lib/inherits/example/super_attribute_overridden_by_child_on_init.js +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/lib/inherits/package.json +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/lib/inherits/src/main.js +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/lib/logger/README.md +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/lib/logger/package.json +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/lib/logger/src/containers/default/index.js +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/lib/logger/src/containers/file/index.js +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/lib/logger/src/containers/file/lib/logrotator/README.md +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/lib/logger/src/containers/file/lib/logrotator/index.js +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/lib/logger/src/containers/mq/index.js +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/lib/logger/src/containers/mq/listener.js +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/lib/logger/src/containers/mq/speaker.js +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/lib/logger/src/helper.js +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/lib/logger/src/main.js +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/lib/math/index.js +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/lib/merge/README.md +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/lib/merge/example/merge.js +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/lib/merge/example/merge_2_literal objects.js +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/lib/merge/example/merge_and_preserve_first.js +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/lib/merge/package.json +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/lib/merge/src/main.js +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/lib/model.js +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/lib/proc.js +1 -1
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/lib/routing/README.md +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/lib/routing/build.json +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/lib/routing/package.json +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/lib/routing/src/main.js +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/lib/session-store.js +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/lib/shell.js +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/lib/swig-filters/README.md +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/lib/swig-filters/package.json +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/lib/swig-filters/src/main.js +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/lib/url/README.md +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/lib/url/index.js +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/lib/url/mocks.json +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/lib/url/routing.json +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/lib/url/test.js +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/lib/validator.js +0 -0
- package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/package.json +0 -0
- package/package.json +2 -2
- package/resources/home/main.json +14 -0
- package/resources/home/settings.json +1 -0
- package/framework/v0.1.1-alpha.158/VERSION +0 -1
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
const fs = require('fs');
|
|
2
|
-
const { debug } = require('console');
|
|
3
2
|
const { EventEmitter } = require('events');
|
|
4
3
|
const { spawn } = require('child_process');
|
|
5
4
|
const { execSync } = require('child_process');
|
|
@@ -8,49 +7,10 @@ const promisify = require('util').promisify;
|
|
|
8
7
|
|
|
9
8
|
var CmdHelper = require('./../helper');
|
|
10
9
|
// `lib` is previously defiened as this file is required by anoth
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
//
|
|
14
|
-
|
|
15
|
-
// var e = new EventEmitter();
|
|
16
|
-
// var trigger = 'internal_start#node-modules-installed';
|
|
17
|
-
|
|
18
|
-
// var nIntervId = null;
|
|
19
|
-
// var i = 0;
|
|
20
|
-
|
|
21
|
-
// var play = function(opt) {
|
|
22
|
-
// var done = function(nIntervId, resolve) {
|
|
23
|
-
// clearInterval(nIntervId);
|
|
24
|
-
// nIntervId = null;
|
|
25
|
-
// opt.client.write('\n['+ i +'] Done ...');
|
|
26
|
-
// e.emit(trigger, 'resolved');
|
|
27
|
-
// }
|
|
28
|
-
|
|
29
|
-
// nIntervId = setInterval(() => {
|
|
30
|
-
// i++;
|
|
31
|
-
|
|
32
|
-
// // TODO - check for file availability
|
|
33
|
-
// if ( i > 2 ) {
|
|
34
|
-
// clearInterval(nIntervId);
|
|
35
|
-
// return done()
|
|
36
|
-
// }
|
|
37
|
-
|
|
38
|
-
// opt.client.write('\n['+ i +'] Please wait ...');
|
|
39
|
-
// opt.client.write('\n['+ nIntervId +']');
|
|
40
|
-
|
|
41
|
-
// }, 500);
|
|
42
|
-
// }
|
|
43
|
-
|
|
44
|
-
// return function onDone(opt) {
|
|
45
|
-
// e.once(trigger, function onComplete(result) {
|
|
46
|
-
// opt.client.write('\n['+ i +'] Man !!!');
|
|
47
|
-
// return result
|
|
48
|
-
// });
|
|
49
|
-
|
|
50
|
-
// play(opt)
|
|
51
|
-
// }(opt)
|
|
52
|
-
|
|
53
|
-
// }
|
|
10
|
+
// for user output
|
|
11
|
+
var terminal = lib.logger;
|
|
12
|
+
// for logs/tail output thru the parent
|
|
13
|
+
var console = null;
|
|
54
14
|
|
|
55
15
|
/**
|
|
56
16
|
* Start a given bundle or start all bundles at once
|
|
@@ -73,6 +33,7 @@ var console = lib.logger;
|
|
|
73
33
|
* */
|
|
74
34
|
function Start(opt, cmd) {
|
|
75
35
|
var self = {};
|
|
36
|
+
// terminal.register(console, opt.client.write);
|
|
76
37
|
|
|
77
38
|
|
|
78
39
|
var init = function(opt, cmd) {
|
|
@@ -98,13 +59,14 @@ function Start(opt, cmd) {
|
|
|
98
59
|
var checkArchAgainstNodeModules = function(opt, cb) {
|
|
99
60
|
|
|
100
61
|
var currentArch = GINA_ARCH
|
|
62
|
+
, currentPlatform = GINA_PLATFORM
|
|
101
63
|
, projectObj = self.projects[ self.projectName ]
|
|
102
64
|
, packagePathObj = new _(projectObj.path +'/package.json', true)
|
|
103
65
|
, packagePath = packagePathObj.toString()
|
|
104
66
|
;
|
|
105
67
|
|
|
106
68
|
if ( !packagePathObj.existsSync() ) {
|
|
107
|
-
|
|
69
|
+
terminal.warn('[checkArchAgainstNodeModules] File`'+packagePath +'` not found');
|
|
108
70
|
return cb(false);
|
|
109
71
|
}
|
|
110
72
|
|
|
@@ -114,6 +76,8 @@ function Start(opt, cmd) {
|
|
|
114
76
|
|
|
115
77
|
var projectArchFileObj = new _(projectObj.path +'/.gna/arch', true);
|
|
116
78
|
var projectArchFile = projectArchFileObj.toString();
|
|
79
|
+
var projectPlatformFileObj = new _(projectObj.path +'/.gna/platform', true);
|
|
80
|
+
var projectPlatformFile = projectPlatformFileObj.toString();
|
|
117
81
|
var nodeModulesContentArr = ( nodeModulesPathObj.existsSync() ) ? fs.readdirSync(nodeModulesPathObj.toString()) : [];
|
|
118
82
|
var newNodeModulesContentArr = [], n = 0;
|
|
119
83
|
for (let f in nodeModulesContentArr) {
|
|
@@ -130,8 +94,12 @@ function Start(opt, cmd) {
|
|
|
130
94
|
if (
|
|
131
95
|
!projectArchFileObj.existsSync()
|
|
132
96
|
||
|
|
97
|
+
!projectPlatformFileObj.existsSync()
|
|
98
|
+
||
|
|
133
99
|
projectArchFileObj.existsSync() && fs.readFileSync(projectArchFile).toString() != currentArch
|
|
134
100
|
||
|
|
101
|
+
projectPlatformFileObj.existsSync() && fs.readFileSync(projectPlatformFile).toString() != currentPlatform
|
|
102
|
+
||
|
|
135
103
|
!nodeModulesPathObj.existsSync()
|
|
136
104
|
||
|
|
137
105
|
nodeModulesPathObj.existsSync()
|
|
@@ -140,14 +108,15 @@ function Start(opt, cmd) {
|
|
|
140
108
|
nodeModulesPathObj.existsSync()
|
|
141
109
|
&& nodeModulesContentArr.length == 1
|
|
142
110
|
&& nodeModulesContentArr[0] == 'gina'
|
|
143
|
-
&& typeof(pack.dependencies) != '
|
|
111
|
+
&& typeof(pack.dependencies) != 'object'
|
|
144
112
|
&& pack.dependencies.count() > 0
|
|
145
113
|
) {
|
|
146
114
|
isNodeModulesReinstallNeeded = true;
|
|
147
115
|
}
|
|
148
116
|
|
|
149
|
-
opt.client.write('\
|
|
150
|
-
opt.client.write('\nprojectArchFile: '+ projectArchFile);
|
|
117
|
+
opt.client.write('\nArch: '+ currentArch);
|
|
118
|
+
// opt.client.write('\nprojectArchFile: '+ projectArchFile);
|
|
119
|
+
opt.client.write('\nPlatform: '+ currentPlatform);
|
|
151
120
|
opt.client.write('\nisNodeModulesReinstallNeeded: '+ isNodeModulesReinstallNeeded);
|
|
152
121
|
|
|
153
122
|
// TODO - Do we want this for production ?
|
|
@@ -164,7 +133,7 @@ function Start(opt, cmd) {
|
|
|
164
133
|
var npmCmd = ( isWin32() ) ? 'npm.cmd install' : 'npm install';
|
|
165
134
|
process.chdir( _(projectObj.path, true) );
|
|
166
135
|
|
|
167
|
-
opt.client.write('\nRe-installing node_modules to match arch');
|
|
136
|
+
opt.client.write('\nRe-installing node_modules to match arch & platform');
|
|
168
137
|
opt.client.write('\nrunning: `'+ npmCmd +'` from '+ process.cwd() );
|
|
169
138
|
opt.client.write('\nrunning using TMPDIR: '+ _(getTmpDir(), true) );
|
|
170
139
|
var oldConfigGlobal = process.env.npm_config_global;
|
|
@@ -188,7 +157,6 @@ function Start(opt, cmd) {
|
|
|
188
157
|
}
|
|
189
158
|
|
|
190
159
|
opt.client.write('\n'+result);
|
|
191
|
-
// lib.generator.createFileFromDataSync(GINA_ARCH, projectArchFile);
|
|
192
160
|
|
|
193
161
|
opt.client.write('\r\nPlease wait...');
|
|
194
162
|
|
|
@@ -203,6 +171,7 @@ function Start(opt, cmd) {
|
|
|
203
171
|
|
|
204
172
|
opt.client.write('\nOk, I am ready :)');
|
|
205
173
|
lib.generator.createFileFromDataSync(GINA_ARCH, projectArchFile);
|
|
174
|
+
lib.generator.createFileFromDataSync(GINA_PLATFORM, projectPlatformFile);
|
|
206
175
|
setTimeout(() => {
|
|
207
176
|
done(false)
|
|
208
177
|
}, 1000);
|
|
@@ -222,7 +191,6 @@ function Start(opt, cmd) {
|
|
|
222
191
|
}, 200);
|
|
223
192
|
|
|
224
193
|
return;
|
|
225
|
-
|
|
226
194
|
}
|
|
227
195
|
|
|
228
196
|
cb(false);
|
|
@@ -251,20 +219,20 @@ function Start(opt, cmd) {
|
|
|
251
219
|
var isBulkStart = (typeof(bundleIndex) != 'undefined') ? true : false;
|
|
252
220
|
|
|
253
221
|
var bundle = (isBulkStart) ? self.bundles[bundleIndex] : self.name;
|
|
254
|
-
//
|
|
222
|
+
// terminal.debug('bundle -> ', bundle);
|
|
255
223
|
var env = ( typeof(self.bundlesByProject[self.projectName][bundle].def_env) != 'undefined') ? self.bundlesByProject[self.projectName][bundle].def_env : self.defaultEnv;
|
|
256
|
-
//
|
|
224
|
+
// terminal.debug('env -> ', env);
|
|
257
225
|
var protocol = self.bundlesByProject[self.projectName][bundle].def_protocol;
|
|
258
|
-
//
|
|
226
|
+
// terminal.debug('protocol -> ', protocol);
|
|
259
227
|
var scheme = self.bundlesByProject[self.projectName][bundle].def_scheme;
|
|
260
|
-
//
|
|
228
|
+
// terminal.debug('scheme -> ', scheme);
|
|
261
229
|
var bundlePort = self.portsReverseData[bundle + '@' + self.projectName][env][protocol][scheme];
|
|
262
|
-
//
|
|
230
|
+
// terminal.debug('port -> ', bundlePort);
|
|
263
231
|
|
|
264
232
|
var msg = null;
|
|
265
233
|
if ( !isBulkStart && !isDefined('bundle', bundle) ) {
|
|
266
234
|
msg = 'Bundle [ '+ bundle +' ] is not registered inside `@'+ self.projectName +'`';
|
|
267
|
-
|
|
235
|
+
terminal.error(msg);
|
|
268
236
|
// opt.client.write(msg);
|
|
269
237
|
// // CMD exit
|
|
270
238
|
// opt.client.emit('end');
|
|
@@ -282,7 +250,7 @@ function Start(opt, cmd) {
|
|
|
282
250
|
|
|
283
251
|
isRealApp(bundle, function(err, appPath){
|
|
284
252
|
if (err) {
|
|
285
|
-
|
|
253
|
+
terminal.error(err.stack||err.message)
|
|
286
254
|
} else {
|
|
287
255
|
if (isStarting)
|
|
288
256
|
return;
|
|
@@ -300,7 +268,7 @@ function Start(opt, cmd) {
|
|
|
300
268
|
msg += ' (debug port: '+ opt.debugPort +')'
|
|
301
269
|
}
|
|
302
270
|
// To gina log
|
|
303
|
-
|
|
271
|
+
terminal.info(msg);
|
|
304
272
|
// to the terminal stdout
|
|
305
273
|
opt.client.write('\n\r'+msg);
|
|
306
274
|
|
|
@@ -371,18 +339,18 @@ function Start(opt, cmd) {
|
|
|
371
339
|
|
|
372
340
|
var checkCaseCount = 2
|
|
373
341
|
// The 2 flags we need to free the child.stdout if we do not want the command to wait for a timeout
|
|
374
|
-
// NB.: you can place flag by using
|
|
342
|
+
// NB.: you can place flag by using terminal.notice
|
|
375
343
|
, checkCaseRe = new RegExp('('+bundle + '@' + self.projectName + ' mounted !|Bundle started !)', 'g')
|
|
376
344
|
, url = null
|
|
377
345
|
, debuggerOn = null
|
|
378
346
|
;
|
|
379
347
|
var port = '', errorFound = false;
|
|
380
348
|
child.stdout.on('data', function(data) {
|
|
381
|
-
//
|
|
349
|
+
// terminal.log(data);
|
|
382
350
|
|
|
383
351
|
// handle errors
|
|
384
352
|
if ( /EADDRINUSE.*port/i.test(data) && !errorFound ) {
|
|
385
|
-
|
|
353
|
+
terminal.log(data);
|
|
386
354
|
// kill the bundle starting process first
|
|
387
355
|
child.kill('SIGKILL');
|
|
388
356
|
|
|
@@ -406,7 +374,7 @@ function Start(opt, cmd) {
|
|
|
406
374
|
|
|
407
375
|
// catch fatal errors to exit
|
|
408
376
|
if ( /(\[|\[\s+)emerg/.test(data) ) {
|
|
409
|
-
|
|
377
|
+
terminal.log(data);
|
|
410
378
|
|
|
411
379
|
// kill the bundle starting process first
|
|
412
380
|
child.kill('SIGKILL');
|
|
@@ -422,13 +390,13 @@ function Start(opt, cmd) {
|
|
|
422
390
|
}
|
|
423
391
|
|
|
424
392
|
// Expecting 2 flags (checkCaseCount) to free the child stdout !!
|
|
425
|
-
//
|
|
393
|
+
// terminal.debug('BO case count '+ checkCaseCount);
|
|
426
394
|
var _matched = data.match(checkCaseRe);
|
|
427
395
|
if ( _matched ) {
|
|
428
|
-
//
|
|
396
|
+
// terminal.warn('case count: '+ checkCaseCount +'\nMatched: '+ _matched.length + '\n'+ checkCaseRe +'\n-> '+ data + '<-\n');
|
|
429
397
|
checkCaseCount -= _matched.length;
|
|
430
398
|
}
|
|
431
|
-
//
|
|
399
|
+
// terminal.debug('EO case count: '+ checkCaseCount + ' -> '+ data);
|
|
432
400
|
|
|
433
401
|
// cache bundle state info given by the server while starting
|
|
434
402
|
if ( !debuggerOn && new RegExp('Debugger listening on','gmi').test(data)) {
|
|
@@ -451,7 +419,7 @@ function Start(opt, cmd) {
|
|
|
451
419
|
|
|
452
420
|
// resume logging
|
|
453
421
|
process.emit('gina#bundle-logging', GINA_MQ_PORT, GINA_HOST_V4, bundle + '@' + self.projectName);
|
|
454
|
-
|
|
422
|
+
terminal.debug('Sent: gina#bundle-logging');
|
|
455
423
|
|
|
456
424
|
|
|
457
425
|
opt.client.write(' [ ' + bundle + '@' + self.projectName + ' ] started V(-.o)V'+ url + debuggerOn);
|
|
@@ -482,7 +450,7 @@ function Start(opt, cmd) {
|
|
|
482
450
|
}
|
|
483
451
|
}
|
|
484
452
|
|
|
485
|
-
|
|
453
|
+
terminal.error(error);
|
|
486
454
|
});
|
|
487
455
|
|
|
488
456
|
child.on('exit', function(code, signal) {
|
|
@@ -492,7 +460,7 @@ function Start(opt, cmd) {
|
|
|
492
460
|
return end(opt, cmd, isBulkStart, bundleIndex);
|
|
493
461
|
}
|
|
494
462
|
if (/(SIGKILL|SIGSTOP)/i.test(signal)) {
|
|
495
|
-
|
|
463
|
+
terminal.emerg('[' + this.pid + '] `'+ self.name +'@'+ self.projectName +'` exiting with signal: ', signal);
|
|
496
464
|
cmd.proc.dismiss(this.pid, signal);
|
|
497
465
|
return;
|
|
498
466
|
}
|
|
@@ -602,7 +570,7 @@ function Start(opt, cmd) {
|
|
|
602
570
|
} catch (err) {
|
|
603
571
|
// default bundlesPath.
|
|
604
572
|
// TODO - log warn ?
|
|
605
|
-
|
|
573
|
+
terminal.warn(err.stack||err.message);
|
|
606
574
|
bundleDir = 'bundles';
|
|
607
575
|
bundlesPath = _(root +'/'+ bundleDir);
|
|
608
576
|
p = _(root +'/'+ bundleDir +'/'+ bundle);
|
|
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
|
|
@@ -240,39 +240,76 @@ function Initialize(opt) {
|
|
|
240
240
|
* */
|
|
241
241
|
self.checkArch = function() {
|
|
242
242
|
|
|
243
|
-
var
|
|
243
|
+
var currentArch = process.arch;
|
|
244
|
+
var currentPlatform = process.platform;
|
|
244
245
|
// ignored for framework:set
|
|
245
246
|
var mainConfig = require( self.opt.homedir + '/main.json' );
|
|
247
|
+
var defaultMainConfig = requireJSON( getPath('gina').root + '/resources/home/main.json' );
|
|
246
248
|
//has registered arch ?
|
|
247
|
-
var 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
|
+
}
|
|
248
257
|
if ( mainConfig.archs[self.release].indexOf(arch) < 0 ) {
|
|
249
|
-
console.error('Arch [ ' + arch + ' ] not registered. Gina is not support your
|
|
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.');
|
|
250
271
|
process.exit(1);
|
|
251
272
|
}
|
|
252
|
-
|
|
253
273
|
var isUpdateNeeded = false;
|
|
254
|
-
if (arch !=
|
|
274
|
+
if (arch != currentArch) {
|
|
255
275
|
// updating arch
|
|
256
|
-
arch =
|
|
276
|
+
arch = currentArch;
|
|
257
277
|
if ( mainConfig.archs[self.release].indexOf(arch) < 0 ) {
|
|
258
|
-
console.error('Arch [ ' + arch + ' ] not registered. Gina is not support your
|
|
278
|
+
console.error('Arch [ ' + arch + ' ] not registered. Gina is not support your architecture `'+ process.arch +'` at this moment.');
|
|
259
279
|
process.exit(1);
|
|
260
280
|
}
|
|
261
281
|
|
|
262
282
|
isUpdateNeeded = true;
|
|
263
283
|
mainConfig['def_arch'][self.release] = arch;
|
|
264
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
|
+
}
|
|
265
292
|
|
|
293
|
+
isUpdateNeeded = true;
|
|
294
|
+
mainConfig['def_platform'][self.release] = platform;
|
|
295
|
+
}
|
|
266
296
|
|
|
267
|
-
|
|
297
|
+
|
|
298
|
+
// has arch & platform ?
|
|
268
299
|
if (
|
|
269
300
|
isUpdateNeeded
|
|
270
301
|
||
|
|
271
302
|
typeof(mainConfig['def_arch']) == 'undefined'
|
|
272
303
|
||
|
|
304
|
+
typeof(mainConfig['def_platform']) == 'undefined'
|
|
305
|
+
||
|
|
273
306
|
typeof(mainConfig['def_arch']) != 'undefined'
|
|
274
307
|
&& typeof(mainConfig['def_arch'][self.release]) != 'undefined'
|
|
275
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
|
|
276
313
|
) {
|
|
277
314
|
var target = _(self.opt.homedir +'/main.json');
|
|
278
315
|
lib.generator.createFileFromDataSync(
|
|
@@ -402,6 +439,7 @@ function Initialize(opt) {
|
|
|
402
439
|
, prefix = getEnvVar('GINA_PREFIX') || main['def_prefix'][self.release]
|
|
403
440
|
, globalMode = getEnvVar('GINA_GLOBAL_MODE') || main['def_global_mode'][self.release]
|
|
404
441
|
, arch = getEnvVar('GINA_ARCH') || main['def_arch'][self.release]
|
|
442
|
+
, platform = getEnvVar('GINA_PLATFORM') || main['def_platform'][self.release]
|
|
405
443
|
, env = getEnvVar('GINA_ENV') || main['def_env'][self.release]
|
|
406
444
|
, scope = getEnvVar('GINA_SCOPE') || main['def_scope'][self.release]
|
|
407
445
|
, settings = requireJSON( _( getPath('gina').root + '/resources/home/settings.json', true ) )
|
|
@@ -463,6 +501,7 @@ function Initialize(opt) {
|
|
|
463
501
|
'global_mode': globalMode,
|
|
464
502
|
'version' : version,
|
|
465
503
|
'arch' : arch,
|
|
504
|
+
'platform': platform,
|
|
466
505
|
'env' : env,
|
|
467
506
|
'env_is_dev' : (main['dev_env'][self.release] == env) ? true : false,
|
|
468
507
|
'dev_env' : main['dev_env'][self.release],
|
package/framework/{v0.1.1-alpha.158 → 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
|
|
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
|
|
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
|
|
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
|
package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/lib/inherits/example/simple_inheritance.js
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/framework/{v0.1.1-alpha.158 → v0.1.1-alpha.159}/lib/logger/src/containers/default/index.js
RENAMED
|
File without changes
|