gina 0.1.1-alpha.2 → 0.1.1-alpha.22
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/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/AUTHORS +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/LICENSE +0 -0
- package/framework/v0.1.1-alpha.22/VERSION +1 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/core/asset/html/nolayout.html +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/core/asset/html/static.html +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/core/asset/img/android-chrome-192x192.png +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/core/asset/img/android-chrome-512x512.png +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/core/asset/img/apple-touch-icon.png +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/core/asset/img/favicon-16x16.png +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/core/asset/img/favicon-32x32.png +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/core/asset/img/favicon.ico +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/core/asset/js/plugin/dist/gina.js +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/core/asset/js/plugin/dist/gina.js.map +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/core/asset/js/plugin/dist/gina.min.css +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/core/asset/js/plugin/dist/gina.min.css.map +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/core/asset/js/plugin/dist/gina.min.js +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/core/asset/js/plugin/dist/gina.min.js.map +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/core/asset/js/plugin/dist/gina.onload.min.js +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/core/asset/js/plugin/dist/gina.onload.min.js.map +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/core/asset/js/plugin/readme.md +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/core/asset/js/plugin/uuid.json +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/core/config.js +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/core/connectors/couchbase/index.js +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/core/connectors/couchbase/lib/connector.js +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/core/connectors/couchbase/lib/connector.v2.js +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/core/connectors/couchbase/lib/connector.v3.js +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/core/connectors/couchbase/lib/n1ql.js +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/core/connectors/couchbase/lib/session-store.js +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/core/connectors/couchbase/lib/session-store.v2.js +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/core/connectors/couchbase/lib/session-store.v3.js +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/core/controller/controller.framework.js +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/core/controller/controller.js +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/core/controller/index.js +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/core/deps/busboy/.travis.yml +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/core/deps/busboy/LICENSE +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/core/deps/busboy/README.md +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/core/deps/busboy/deps/encoding/encoding-indexes.js +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/core/deps/busboy/deps/encoding/encoding.js +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/core/deps/busboy/lib/main.js +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/core/deps/busboy/lib/types/multipart.js +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/core/deps/busboy/lib/types/urlencoded.js +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/core/deps/busboy/lib/utils.js +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/core/deps/busboy/package.json +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/core/deps/swig-client/swig-2.0.0.min.js +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/core/dev/index.js +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/core/dev/lib/class.js +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/core/dev/lib/factory.js +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/core/dev/lib/tools.js +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/core/gna.js +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/core/locales/README.md +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/core/locales/currency.json +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/core/locales/dist/language/en.json +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/core/locales/dist/language/fr.json +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/core/locales/dist/region/en.json +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/core/locales/dist/region/fr.json +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/core/locales/index.js +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/core/locales/src/make.js +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/core/locales/src/resources/currency.csv +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/core/locales/src/resources/region.csv +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/core/locales/src/resources/region.mapping.json +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/core/mime.types +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/core/model/entity.js +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/core/model/index.js +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/core/model/template/entityFactory.js +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/core/model/template/index.js +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/core/plugins/README.md +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/core/plugins/index.js +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/core/plugins/lib/file/README.md +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/core/plugins/lib/file/build.json +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/core/plugins/lib/file/package.json +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/core/plugins/lib/intl/README.md +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/core/plugins/lib/intl/build.json +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/core/plugins/lib/intl/package.json +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/core/plugins/lib/intl/src/main.js +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/core/plugins/lib/storage/README.md +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/core/plugins/lib/storage/build.json +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/core/plugins/lib/storage/package.json +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/core/plugins/lib/storage/src/main.js +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/core/plugins/lib/validator/README.md +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/core/plugins/lib/validator/build.json +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/core/plugins/lib/validator/package.json +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/core/plugins/lib/validator/src/form-validator.js +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/core/plugins/lib/validator/src/main.js +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/core/router.js +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/core/server.express.js +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/core/server.isaac.js +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/core/server.js +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/core/status.codes +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/core/template/boilerplate/bundle/config/app.json +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/core/template/boilerplate/bundle/config/routing.json +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/core/template/boilerplate/bundle/config/settings.json +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/core/template/boilerplate/bundle/config/settings.server.json +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/core/template/boilerplate/bundle/config/templates.json +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/core/template/boilerplate/bundle/controllers/controller.content.js +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/core/template/boilerplate/bundle/controllers/controller.js +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/core/template/boilerplate/bundle/controllers/setup.js +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/core/template/boilerplate/bundle/index.js +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/core/template/boilerplate/bundle_namespace/controllers/controller.js +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/core/template/boilerplate/bundle_public/css/default.css +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/core/template/boilerplate/bundle_public/css/vendor/readme.md +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/core/template/boilerplate/bundle_public/favicon.ico +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/core/template/boilerplate/bundle_public/js/vendor/readme.md +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/core/template/boilerplate/bundle_public/readme.md +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/core/template/boilerplate/bundle_templates/handlers/main.js +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/core/template/boilerplate/bundle_templates/html/homepage.html +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/core/template/boilerplate/bundle_templates/html/layout/main.html +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/core/template/command/gina.bat.tpl +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/core/template/command/gina.tpl +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/core/template/conf/env.json +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/core/template/conf/manifest.json +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/core/template/conf/package.json +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/core/template/conf/settings.json +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/core/template/conf/statics.json +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/core/template/conf/templates.json +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/core/template/error/client/json/401.json +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/core/template/error/client/json/403.json +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/core/template/error/client/json/404.json +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/core/template/error/server/html/50x.html +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/core/template/error/server/json/500.json +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/core/template/error/server/json/503.json +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/core/template/extensions/logger/config.json +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/helpers/console.js +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/helpers/context.js +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/helpers/dateFormat.js +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/helpers/index.js +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/helpers/json/README.md +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/helpers/json/package.json +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/helpers/json/src/main.js +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/helpers/path.js +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/helpers/plugins/README.md +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/helpers/plugins/package.json +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/helpers/plugins/src/api-error.js +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/helpers/plugins/src/main.js +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/helpers/prototypes.js +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/helpers/task.js +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/helpers/text.js +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/lib/archiver/README.md +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/lib/archiver/build.json +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/lib/archiver/package.json +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/lib/archiver/src/dep/jszip.min.js +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/lib/archiver/src/main.js +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/lib/cmd/aliases.json +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/lib/cmd/bundle/add.js +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/lib/cmd/bundle/arguments.json +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/lib/cmd/bundle/copy.js +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/lib/cmd/bundle/cp.js +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/lib/cmd/bundle/help.js +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/lib/cmd/bundle/help.txt +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/lib/cmd/bundle/list.js +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/lib/cmd/bundle/remove.js +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/lib/cmd/bundle/rename.js +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/lib/cmd/bundle/restart.js +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/lib/cmd/bundle/rm.js +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/lib/cmd/bundle/start.js +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/lib/cmd/bundle/status.js +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/lib/cmd/bundle/stop.js +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/lib/cmd/env/add.js +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/lib/cmd/env/get.js +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/lib/cmd/env/help.js +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/lib/cmd/env/help.txt +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/lib/cmd/env/link-dev.js +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/lib/cmd/env/list.js +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/lib/cmd/env/remove.js +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/lib/cmd/env/rm.js +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/lib/cmd/env/set.js +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/lib/cmd/env/unset.js +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/lib/cmd/env/use.js +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/lib/cmd/framework/dot.js +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/lib/cmd/framework/get.js +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/lib/cmd/framework/help.js +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/lib/cmd/framework/help.txt +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/lib/cmd/framework/init.js +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/lib/cmd/framework/msg.json +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/lib/cmd/framework/open.js +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/lib/cmd/framework/restart.js +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/lib/cmd/framework/set.js +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/lib/cmd/framework/start.js +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/lib/cmd/framework/status.js +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/lib/cmd/framework/stop.js +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/lib/cmd/framework/tail.js +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/lib/cmd/framework/update.js +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/lib/cmd/framework/version.js +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/lib/cmd/gina-dev.1.md +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/lib/cmd/gina-framework.1.md +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/lib/cmd/gina.1.md +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/lib/cmd/helper.js +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/lib/cmd/index.js +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/lib/cmd/msg.json +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/lib/cmd/port/help.js +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/lib/cmd/port/help.txt +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/lib/cmd/port/inc/scan.js +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/lib/cmd/port/list.js +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/lib/cmd/port/set.js +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/lib/cmd/project/add.js +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/lib/cmd/project/arguments.json +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/lib/cmd/project/build.js +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/lib/cmd/project/help.js +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/lib/cmd/project/help.txt +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/lib/cmd/project/import.js +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/lib/cmd/project/list.js +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/lib/cmd/project/move.js +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/lib/cmd/project/remove.js +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/lib/cmd/project/rename.js +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/lib/cmd/project/restart.js +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/lib/cmd/project/rm.js +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/lib/cmd/project/start.js +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/lib/cmd/project/status.js +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/lib/cmd/project/stop.js +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/lib/cmd/protocol/help.js +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/lib/cmd/protocol/help.txt +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/lib/cmd/protocol/list.js +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/lib/cmd/protocol/set.js +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/lib/cmd/scope/help.js +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/lib/cmd/scope/help.txt +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/lib/cmd/scope/link-local.js +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/lib/cmd/scope/list.js +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/lib/cmd/scope/remove.js +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/lib/cmd/scope/rm.js +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/lib/cmd/scope/set.js +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/lib/cmd/scope/unset.js +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/lib/cmd/scope/use.js +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/lib/cmd/view/add.js +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/lib/collection/README.md +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/lib/collection/build.json +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/lib/collection/package.json +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/lib/collection/src/main.js +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/lib/config.js +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/lib/cron/README.md +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/lib/cron/package.json +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/lib/cron/src/main.js +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/lib/generator/index.js +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/lib/index.js +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/lib/inherits/LICENSE +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/lib/inherits/README.md +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/lib/inherits/example/inheriting_eventemitter.js +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/lib/inherits/example/protected_inheritance.js +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/lib/inherits/example/simple_inheritance.js +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/lib/inherits/example/super_attribute_overridden_by_child_on_init.js +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/lib/inherits/package.json +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/lib/inherits/src/main.js +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/lib/logger/README.md +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/lib/logger/package.json +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/lib/logger/src/containers/default/index.js +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/lib/logger/src/containers/file/index.js +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/lib/logger/src/containers/file/lib/logrotator/README.md +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/lib/logger/src/containers/file/lib/logrotator/index.js +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/lib/logger/src/containers/mq/index.js +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/lib/logger/src/containers/mq/listener.js +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/lib/logger/src/containers/mq/speaker.js +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/lib/logger/src/helper.js +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/lib/logger/src/main.js +6 -1
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/lib/math/index.js +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/lib/merge/README.md +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/lib/merge/example/merge.js +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/lib/merge/example/merge_2_literal objects.js +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/lib/merge/example/merge_and_preserve_first.js +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/lib/merge/package.json +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/lib/merge/src/main.js +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/lib/model.js +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/lib/proc.js +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/lib/routing/README.md +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/lib/routing/build.json +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/lib/routing/package.json +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/lib/routing/src/main.js +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/lib/session-store.js +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/lib/shell.js +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/lib/swig-filters/README.md +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/lib/swig-filters/package.json +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/lib/swig-filters/src/main.js +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/lib/url/README.md +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/lib/url/index.js +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/lib/url/mocks.json +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/lib/url/routing.json +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/lib/url/test.js +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/lib/validator.js +0 -0
- package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/package.json +0 -0
- package/package.json +2 -2
- package/script/post_install.js +33 -8
- package/script/pre_install.js +16 -3
- package/script/prepare_version.js +93 -89
- package/framework/v0.1.1-alpha.2/VERSION +0 -1
|
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.2 → v0.1.1-alpha.22}/lib/inherits/example/inheriting_eventemitter.js
RENAMED
|
File without changes
|
package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/lib/inherits/example/protected_inheritance.js
RENAMED
|
File without changes
|
package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/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.2 → v0.1.1-alpha.22}/lib/logger/src/containers/default/index.js
RENAMED
|
File without changes
|
package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/lib/logger/src/containers/file/index.js
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/lib/logger/src/containers/mq/listener.js
RENAMED
|
File without changes
|
package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/lib/logger/src/containers/mq/speaker.js
RENAMED
|
File without changes
|
|
File without changes
|
|
@@ -79,7 +79,12 @@ function Logger() {
|
|
|
79
79
|
homeDir += '/.gina';
|
|
80
80
|
shortVersion = requireJSON( _(frameworkPath +'/package.json', true) ).version;// jshint ignore:line
|
|
81
81
|
shortVersion = shortVersion.split('.').splice(0,2).join('.').replace(/^v/, '');
|
|
82
|
-
|
|
82
|
+
if ( new _(homeDir +'/'+ shortVersion +'/settings.json', true).existsSync() ) {
|
|
83
|
+
defaultLogLevel = requireJSON( _(homeDir +'/'+ shortVersion +'/settings.json', true) ).log_level;// jshint ignore:line
|
|
84
|
+
} else {
|
|
85
|
+
defaultLogLevel = 'info'
|
|
86
|
+
}
|
|
87
|
+
|
|
83
88
|
} catch(logLevelError) {
|
|
84
89
|
// It is ok to fail ... do not worry
|
|
85
90
|
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/lib/merge/example/merge_2_literal objects.js
RENAMED
|
File without changes
|
package/framework/{v0.1.1-alpha.2 → v0.1.1-alpha.22}/lib/merge/example/merge_and_preserve_first.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
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gina",
|
|
3
|
-
"version": "0.1.1-alpha.
|
|
3
|
+
"version": "0.1.1-alpha.22",
|
|
4
4
|
"description": "MVC Framework for Node.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"framework",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"./doc/man/gina-model.1",
|
|
44
44
|
"./doc/man/gina-env.1"
|
|
45
45
|
],
|
|
46
|
-
"main": "./framework/v0.1.1-alpha.
|
|
46
|
+
"main": "./framework/v0.1.1-alpha.22/core/gna",
|
|
47
47
|
"scripts": {
|
|
48
48
|
"prepare": "node ./script/prepare_version.js -g",
|
|
49
49
|
"preinstall": "node ./script/pre_install.js -g",
|
package/script/post_install.js
CHANGED
|
@@ -38,15 +38,23 @@ function PostInstall() {
|
|
|
38
38
|
self.root = self.gina; // by default
|
|
39
39
|
self.isGlobalInstall = false;
|
|
40
40
|
self.prefix = execSync('npm config get prefix');
|
|
41
|
+
self.isCustomPrefix = false;
|
|
41
42
|
|
|
42
43
|
var args = process.argv, i = 0, len = args.length;
|
|
43
44
|
for (; i < len; ++i) {
|
|
44
45
|
if (args[i] == '-g' ) {
|
|
45
46
|
self.isGlobalInstall = true;
|
|
46
|
-
|
|
47
|
+
continue;
|
|
48
|
+
}
|
|
49
|
+
if (args[i] == '--prefix' ) {
|
|
50
|
+
self.isCustomPrefix = true;
|
|
51
|
+
self.prefix = args[i].split(/\=/)[1];
|
|
52
|
+
continue;
|
|
47
53
|
}
|
|
48
54
|
}
|
|
49
55
|
|
|
56
|
+
self.prefix = self.prefix.toString().replace(/\n/g, '');
|
|
57
|
+
|
|
50
58
|
console.debug('Is this for Windows ? ' + self.isWin32);
|
|
51
59
|
|
|
52
60
|
if ( !self.isGlobalInstall ) { //global install
|
|
@@ -161,7 +169,7 @@ function PostInstall() {
|
|
|
161
169
|
done();
|
|
162
170
|
}
|
|
163
171
|
|
|
164
|
-
var configureGina = function(
|
|
172
|
+
var configureGina = function() {
|
|
165
173
|
// link to ./bin/cli to binaries dir
|
|
166
174
|
if (!self.isWin32) {
|
|
167
175
|
var binPath = _(self.prefix+'/bin', true);
|
|
@@ -212,7 +220,10 @@ function PostInstall() {
|
|
|
212
220
|
|
|
213
221
|
//Creating framework command line file for nix.
|
|
214
222
|
var createGinaFile = function(win32Name, callback) {
|
|
223
|
+
console.info('Creating framework command line: '+ _(self.path + '/package.json') );
|
|
224
|
+
|
|
215
225
|
var name = require( _(self.path + '/package.json') ).name;
|
|
226
|
+
console.info('Package name: '+ name );
|
|
216
227
|
var appPath = _( self.path.substring(0, (self.path.length - ("node_modules/" + name + '/').length)) );
|
|
217
228
|
var source = _(self.path + '/core/template/command/gina.tpl');
|
|
218
229
|
var target = _(appPath +'/'+ name);
|
|
@@ -229,16 +240,16 @@ function PostInstall() {
|
|
|
229
240
|
})
|
|
230
241
|
} else {
|
|
231
242
|
|
|
232
|
-
configureGina();
|
|
243
|
+
// configureGina();
|
|
233
244
|
callback(false)
|
|
234
245
|
}
|
|
235
246
|
} else {
|
|
236
247
|
if ( !self.isGlobalInstall ) {
|
|
237
248
|
lib.generator.createFileFromTemplate(source, target)
|
|
238
|
-
} else {
|
|
239
|
-
|
|
240
|
-
configureGina();
|
|
241
249
|
}
|
|
250
|
+
// else {
|
|
251
|
+
// configureGina();
|
|
252
|
+
// }
|
|
242
253
|
}
|
|
243
254
|
}
|
|
244
255
|
|
|
@@ -321,17 +332,30 @@ function PostInstall() {
|
|
|
321
332
|
|
|
322
333
|
|
|
323
334
|
var npmInstall = function(done) {
|
|
335
|
+
|
|
336
|
+
done();
|
|
337
|
+
|
|
324
338
|
console.info('now installing modules: please, wait ...');
|
|
325
|
-
|
|
339
|
+
console.info('Prefix ('+ self.isCustomPrefix +'): '+ self.prefix);
|
|
340
|
+
var cmd = self.prefix +'/bin/';
|
|
341
|
+
cmd += ( isWin32() ) ? 'npm.cmd install' : 'npm install';
|
|
342
|
+
|
|
343
|
+
console.info('running: '+ cmd +' from '+ _(self.path) );
|
|
344
|
+
console.info('running TMP: '+ _(self.root +'/tmp') );
|
|
326
345
|
|
|
346
|
+
if ( !new _(self.root +'/tmp').existsSync() ) {
|
|
347
|
+
new _(self.root +'/tmp').mkdirSync()
|
|
348
|
+
}
|
|
327
349
|
run(cmd, { cwd: _(self.path), tmp: _(self.root +'/tmp'), outToProcessSTD: true })
|
|
328
350
|
.onData(function onData(data){
|
|
329
351
|
console.info(data)
|
|
330
352
|
})
|
|
331
353
|
.onComplete( function onDone(err, data){
|
|
332
354
|
if (!err) {
|
|
355
|
+
console.info('completed: '+ cmd);
|
|
333
356
|
return done()
|
|
334
357
|
}
|
|
358
|
+
console.info('error found: '+ err + '\n=> '+ data);
|
|
335
359
|
done(err)
|
|
336
360
|
})
|
|
337
361
|
}
|
|
@@ -345,7 +369,8 @@ function PostInstall() {
|
|
|
345
369
|
if ( new _(frameworkPath +'/node_modules/colors', true).existsSync() ) {
|
|
346
370
|
var initialDir = process.cwd();
|
|
347
371
|
process.chdir(frameworkPath);
|
|
348
|
-
var cmd =
|
|
372
|
+
var cmd = self.prefix +'/bin/';
|
|
373
|
+
cmd += ( isWin32() ) ? 'npm.cmd rm colors' : 'npm rm colors';
|
|
349
374
|
try {
|
|
350
375
|
execSync(cmd);
|
|
351
376
|
console.debug('Removed default `colors` module from `GINA_DIR`... This is normal ;)');
|
package/script/pre_install.js
CHANGED
|
@@ -19,6 +19,8 @@ var isWin32 = function() {
|
|
|
19
19
|
return (process.platform === 'win32') ? true : false;
|
|
20
20
|
};
|
|
21
21
|
|
|
22
|
+
var helpers = null;
|
|
23
|
+
|
|
22
24
|
/**
|
|
23
25
|
* Pre install constructor
|
|
24
26
|
*
|
|
@@ -34,6 +36,7 @@ function PreInstall() {
|
|
|
34
36
|
|
|
35
37
|
self.isGlobalInstall = false;
|
|
36
38
|
self.prefix = execSync('npm config get prefix');
|
|
39
|
+
self.isGinaInstall = false;
|
|
37
40
|
|
|
38
41
|
var args = process.argv, i = 0, len = args.length;
|
|
39
42
|
for (; i < len; ++i) {
|
|
@@ -51,6 +54,7 @@ function PreInstall() {
|
|
|
51
54
|
process.exit(1);
|
|
52
55
|
}
|
|
53
56
|
|
|
57
|
+
|
|
54
58
|
begin(0);
|
|
55
59
|
// TODO check old framework version to be archived
|
|
56
60
|
}
|
|
@@ -99,15 +103,21 @@ function PreInstall() {
|
|
|
99
103
|
process.chdir(initialDir);
|
|
100
104
|
}
|
|
101
105
|
|
|
106
|
+
if ( !fs.existsSync(frameworkPath +'/node_modules/gina') ) {
|
|
107
|
+
return done();
|
|
108
|
+
}
|
|
109
|
+
self.isGinaInstall = true;
|
|
110
|
+
|
|
111
|
+
helpers = require(frameworkPath+ '/utils/helpers');
|
|
112
|
+
|
|
113
|
+
lib = require('./lib');
|
|
114
|
+
console = lib.logger;
|
|
102
115
|
|
|
103
116
|
self.isWin32 = isWin32();//getEnvVar('GINA_IS_WIN32');
|
|
104
117
|
self.path = getEnvVar('GINA_FRAMEWORK');
|
|
105
118
|
self.gina = getEnvVar('GINA_DIR');
|
|
106
119
|
self.root = self.gina; // by default
|
|
107
120
|
|
|
108
|
-
// lib = require('./lib');
|
|
109
|
-
// console = lib.logger;
|
|
110
|
-
|
|
111
121
|
console.debug('framework path: ' + self.gina);
|
|
112
122
|
console.debug('framework version path: ' + self.path);
|
|
113
123
|
console.debug('cwd path: ' + self.root );
|
|
@@ -190,6 +200,9 @@ function PreInstall() {
|
|
|
190
200
|
self.checkIfGinaIsAlreadyInstalled = async function(done) {
|
|
191
201
|
|
|
192
202
|
console.debug('Checking if Gina is already installed');
|
|
203
|
+
if (!self.isGinaInstall) {
|
|
204
|
+
return done();
|
|
205
|
+
}
|
|
193
206
|
|
|
194
207
|
// Backup current version
|
|
195
208
|
|
|
@@ -296,107 +296,111 @@ function PrepareVersion() {
|
|
|
296
296
|
done();
|
|
297
297
|
}
|
|
298
298
|
|
|
299
|
-
self.pushChangesToGit = function(done) {
|
|
300
299
|
|
|
301
|
-
|
|
302
|
-
|
|
300
|
+
// self.pushChangesToGit = function(done) {
|
|
301
|
+
|
|
302
|
+
// var cmd = null;
|
|
303
|
+
// var version = self.selectedVersion.replace(/^[a-z]+/ig, '');
|
|
304
|
+
|
|
305
|
+
// // getting current branch
|
|
306
|
+
// // git rev-parse --abbrev-ref HEAD
|
|
307
|
+
// // => 010
|
|
308
|
+
// var currentBranch = null;
|
|
309
|
+
// try {
|
|
310
|
+
// currentBranch = execSync("git rev-parse --abbrev-ref HEAD")
|
|
311
|
+
// .toString()
|
|
312
|
+
// .replace(/(\n|\r|\t)/g, '');
|
|
313
|
+
// } catch (err) {
|
|
314
|
+
// // nothing to do
|
|
315
|
+
// return done( new Error('[GIT] No branch selected') )
|
|
316
|
+
// }
|
|
303
317
|
|
|
304
|
-
// getting current branch
|
|
305
|
-
// git rev-parse --abbrev-ref HEAD
|
|
306
|
-
// => 010
|
|
307
|
-
var currentBranch = null;
|
|
308
|
-
try {
|
|
309
|
-
currentBranch = execSync("git rev-parse --abbrev-ref HEAD")
|
|
310
|
-
.toString()
|
|
311
|
-
.replace(/(\n|\r|\t)/g, '');
|
|
312
|
-
} catch (err) {
|
|
313
|
-
// nothing to do
|
|
314
|
-
return done( new Error('[GIT] No branch selected') )
|
|
315
|
-
}
|
|
316
318
|
|
|
319
|
+
// // create new branch if needed
|
|
320
|
+
// // e.g: 0.1.0-alpha.1 -> 010-alpha1
|
|
321
|
+
// var targetedBranch = version.replace(/\./g, '');
|
|
322
|
+
// self.targetedBranch = targetedBranch;
|
|
317
323
|
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
var targetedBranch = version.replace(/\./g, '');
|
|
321
|
-
self.targetedBranch = targetedBranch;
|
|
324
|
+
// console.debug('[GIT] Current branch: '+ currentBranch);
|
|
325
|
+
// console.debug('[GIT] Targeted branch: '+ targetedBranch);
|
|
322
326
|
|
|
323
|
-
console.debug('[GIT] Current branch: '+ currentBranch);
|
|
324
|
-
console.debug('[GIT] Targeted branch: '+ targetedBranch);
|
|
325
327
|
|
|
328
|
+
// // check if targeted branch exists
|
|
329
|
+
// // git rev-parse --verify 011
|
|
330
|
+
// var branchExists = null;
|
|
331
|
+
// try {
|
|
332
|
+
// branchExists = execSync("git rev-parse --verify "+ targetedBranch)
|
|
333
|
+
// .toString()
|
|
334
|
+
// .replace(/(\n|\r|\t)/g, '');
|
|
335
|
+
// } catch (err) {
|
|
336
|
+
// // nothing to do
|
|
337
|
+
// }
|
|
326
338
|
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
339
|
+
// if (!branchExists) {
|
|
340
|
+
// console.debug('No existing branch found, creating a new one !');
|
|
341
|
+
// try {
|
|
342
|
+
// execSync("git checkout -b "+ targetedBranch);
|
|
343
|
+
// // pushing to new branch
|
|
344
|
+
// console.debug('setting up remote branch `'+ targetedBranch +'` to git ...');
|
|
345
|
+
// execSync("git push --set-upstream origin "+ targetedBranch);
|
|
346
|
+
// } catch (err) {
|
|
347
|
+
// console.error(err.stack||err.message||err);
|
|
348
|
+
// return done(err);
|
|
349
|
+
// }
|
|
350
|
+
// }
|
|
351
|
+
// // use existing to push updates
|
|
352
|
+
// else {
|
|
353
|
+
|
|
354
|
+
// if (currentBranch != targetedBranch) {
|
|
355
|
+
// console.debug('Switching from branch `'+ currentBranch +'` to branch `'+ targetedBranch +'`');
|
|
356
|
+
// // git checkout 010
|
|
357
|
+
// try {
|
|
358
|
+
// cmd = execSync("git checkout "+ targetedBranch);
|
|
359
|
+
// } catch (err) {
|
|
360
|
+
// console.error(err.stack||err.message||err);
|
|
361
|
+
// return done(err);
|
|
362
|
+
// }
|
|
363
|
+
// } else {
|
|
364
|
+
// console.debug('Reusing branch `'+ targetedBranch +'`');
|
|
365
|
+
// }
|
|
366
|
+
// }
|
|
337
367
|
|
|
338
|
-
if (!branchExists) {
|
|
339
|
-
console.debug('No existing branch found, creating a new one !');
|
|
340
|
-
try {
|
|
341
|
-
execSync("git checkout -b "+ targetedBranch);
|
|
342
|
-
// pushing to new branch
|
|
343
|
-
console.debug('setting up remote branch `'+ targetedBranch +'` to git ...');
|
|
344
|
-
execSync("git push --set-upstream origin "+ targetedBranch);
|
|
345
|
-
} catch (err) {
|
|
346
|
-
console.error(err.stack||err.message||err);
|
|
347
|
-
return done(err);
|
|
348
|
-
}
|
|
349
|
-
}
|
|
350
|
-
// use existing to push updates
|
|
351
|
-
else {
|
|
352
|
-
|
|
353
|
-
if (currentBranch != targetedBranch) {
|
|
354
|
-
console.debug('Switching from branch `'+ currentBranch +'` to branch `'+ targetedBranch +'`');
|
|
355
|
-
// git checkout 010
|
|
356
|
-
try {
|
|
357
|
-
cmd = execSync("git checkout "+ targetedBranch);
|
|
358
|
-
} catch (err) {
|
|
359
|
-
console.error(err.stack||err.message||err);
|
|
360
|
-
return done(err);
|
|
361
|
-
}
|
|
362
|
-
} else {
|
|
363
|
-
console.debug('Reusing branch `'+ targetedBranch +'`');
|
|
364
|
-
}
|
|
365
|
-
}
|
|
366
368
|
|
|
369
|
+
// // git add --all
|
|
370
|
+
// try {
|
|
371
|
+
// cmd = execSync("git add --all ");
|
|
372
|
+
// } catch (err) {
|
|
373
|
+
// //console.debug('`git add --all`failed ');
|
|
374
|
+
// console.error(err.stack||err.message||err);
|
|
375
|
+
// return done(err);
|
|
376
|
+
// }
|
|
377
|
+
// // git commit -m'Packaging version v'+ version
|
|
378
|
+
// try {
|
|
379
|
+
// var msg = (!branchExists) ? 'New version' : 'Prerelease update - '+ new Date().format("isoDateTime");
|
|
380
|
+
// cmd = execSync("git commit -am'"+ msg +"'");
|
|
381
|
+
// } catch (err) {
|
|
382
|
+
// if (!/Your branch is up to date/i.test( err.output.toString() )) {
|
|
383
|
+
// console.error(err.stack||err.message||err);
|
|
384
|
+
// return done(err);
|
|
385
|
+
// }
|
|
386
|
+
// }
|
|
387
|
+
|
|
388
|
+
// console.debug('Pushing changes made on branch `'+ targetedBranch +'` to git `origin/'+ targetedBranch +'`');
|
|
389
|
+
// // git push origin 010
|
|
390
|
+
// try {
|
|
391
|
+
// cmd = execSync("git push origin "+ targetedBranch );
|
|
392
|
+
// } catch (err) {
|
|
393
|
+
// if (!/Everything up-to-date/i.test( err.output.toString() )) {
|
|
394
|
+
// console.error(err.stack||err.message||err);
|
|
395
|
+
// return done(err);
|
|
396
|
+
// }
|
|
397
|
+
// }
|
|
398
|
+
|
|
399
|
+
// done()
|
|
400
|
+
// }
|
|
367
401
|
|
|
368
|
-
// git add --all
|
|
369
|
-
try {
|
|
370
|
-
cmd = execSync("git add --all ");
|
|
371
|
-
} catch (err) {
|
|
372
|
-
//console.debug('`git add --all`failed ');
|
|
373
|
-
console.error(err.stack||err.message||err);
|
|
374
|
-
return done(err);
|
|
375
|
-
}
|
|
376
|
-
// git commit -m'Packaging version v'+ version
|
|
377
|
-
try {
|
|
378
|
-
var msg = (!branchExists) ? 'New version' : 'Prerelease update - '+ new Date().format("isoDateTime");
|
|
379
|
-
cmd = execSync("git commit -am'"+ msg +"'");
|
|
380
|
-
} catch (err) {
|
|
381
|
-
if (!/Your branch is up to date/i.test( err.output.toString() )) {
|
|
382
|
-
console.error(err.stack||err.message||err);
|
|
383
|
-
return done(err);
|
|
384
|
-
}
|
|
385
|
-
}
|
|
386
402
|
|
|
387
|
-
console.debug('Pushing changes made on branch `'+ targetedBranch +'` to git `origin/'+ targetedBranch +'`');
|
|
388
|
-
// git push origin 010
|
|
389
|
-
try {
|
|
390
|
-
cmd = execSync("git push origin "+ targetedBranch );
|
|
391
|
-
} catch (err) {
|
|
392
|
-
if (!/Everything up-to-date/i.test( err.output.toString() )) {
|
|
393
|
-
console.error(err.stack||err.message||err);
|
|
394
|
-
return done(err);
|
|
395
|
-
}
|
|
396
|
-
}
|
|
397
403
|
|
|
398
|
-
done()
|
|
399
|
-
}
|
|
400
404
|
|
|
401
405
|
// self.tagVersionIfNeeded = function(done) {
|
|
402
406
|
// // check if script is on Dry Run !!!
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
0.1.1-alpha.2
|