├── .gitignore ├── .jscsrc ├── .jshintrc ├── README.md ├── bin └── cli ├── circle.yml ├── lib ├── index.js └── models │ ├── migration-map.js │ ├── migration-map.json │ ├── migration.js │ └── migration.json ├── migration-skeleton.js ├── package.json └── test ├── fixtures └── simple-app │ ├── common │ └── models │ │ ├── widget.js │ │ └── widget.json │ └── server │ ├── component-config.json │ ├── config.json │ ├── datasources.json │ ├── middleware.json │ ├── migrations │ ├── 0000-error.js │ ├── 0001-initialize.js │ ├── 0002-somechanges.js │ └── 0003-morechanges.js │ ├── model-config.json │ └── server.js └── test.js /.gitignore: -------------------------------------------------------------------------------- 1 | .idea 2 | .DS_Store 3 | node_modules -------------------------------------------------------------------------------- /.jscsrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fullcube/loopback-component-migrate/HEAD/.jscsrc -------------------------------------------------------------------------------- /.jshintrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fullcube/loopback-component-migrate/HEAD/.jshintrc -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fullcube/loopback-component-migrate/HEAD/README.md -------------------------------------------------------------------------------- /bin/cli: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fullcube/loopback-component-migrate/HEAD/bin/cli -------------------------------------------------------------------------------- /circle.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fullcube/loopback-component-migrate/HEAD/circle.yml -------------------------------------------------------------------------------- /lib/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fullcube/loopback-component-migrate/HEAD/lib/index.js -------------------------------------------------------------------------------- /lib/models/migration-map.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fullcube/loopback-component-migrate/HEAD/lib/models/migration-map.js -------------------------------------------------------------------------------- /lib/models/migration-map.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fullcube/loopback-component-migrate/HEAD/lib/models/migration-map.json -------------------------------------------------------------------------------- /lib/models/migration.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fullcube/loopback-component-migrate/HEAD/lib/models/migration.js -------------------------------------------------------------------------------- /lib/models/migration.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fullcube/loopback-component-migrate/HEAD/lib/models/migration.json -------------------------------------------------------------------------------- /migration-skeleton.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fullcube/loopback-component-migrate/HEAD/migration-skeleton.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fullcube/loopback-component-migrate/HEAD/package.json -------------------------------------------------------------------------------- /test/fixtures/simple-app/common/models/widget.js: -------------------------------------------------------------------------------- 1 | module.exports = function(Widget) { 2 | 3 | }; 4 | -------------------------------------------------------------------------------- /test/fixtures/simple-app/common/models/widget.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fullcube/loopback-component-migrate/HEAD/test/fixtures/simple-app/common/models/widget.json -------------------------------------------------------------------------------- /test/fixtures/simple-app/server/component-config.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fullcube/loopback-component-migrate/HEAD/test/fixtures/simple-app/server/component-config.json -------------------------------------------------------------------------------- /test/fixtures/simple-app/server/config.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fullcube/loopback-component-migrate/HEAD/test/fixtures/simple-app/server/config.json -------------------------------------------------------------------------------- /test/fixtures/simple-app/server/datasources.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fullcube/loopback-component-migrate/HEAD/test/fixtures/simple-app/server/datasources.json -------------------------------------------------------------------------------- /test/fixtures/simple-app/server/middleware.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fullcube/loopback-component-migrate/HEAD/test/fixtures/simple-app/server/middleware.json -------------------------------------------------------------------------------- /test/fixtures/simple-app/server/migrations/0000-error.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fullcube/loopback-component-migrate/HEAD/test/fixtures/simple-app/server/migrations/0000-error.js -------------------------------------------------------------------------------- /test/fixtures/simple-app/server/migrations/0001-initialize.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fullcube/loopback-component-migrate/HEAD/test/fixtures/simple-app/server/migrations/0001-initialize.js -------------------------------------------------------------------------------- /test/fixtures/simple-app/server/migrations/0002-somechanges.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fullcube/loopback-component-migrate/HEAD/test/fixtures/simple-app/server/migrations/0002-somechanges.js -------------------------------------------------------------------------------- /test/fixtures/simple-app/server/migrations/0003-morechanges.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fullcube/loopback-component-migrate/HEAD/test/fixtures/simple-app/server/migrations/0003-morechanges.js -------------------------------------------------------------------------------- /test/fixtures/simple-app/server/model-config.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fullcube/loopback-component-migrate/HEAD/test/fixtures/simple-app/server/model-config.json -------------------------------------------------------------------------------- /test/fixtures/simple-app/server/server.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fullcube/loopback-component-migrate/HEAD/test/fixtures/simple-app/server/server.js -------------------------------------------------------------------------------- /test/test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fullcube/loopback-component-migrate/HEAD/test/test.js --------------------------------------------------------------------------------