Closed superstructor closed 11 years ago
The Sencha docs seem lacking on how we host multiple versions in our repository. Have you seen anything along those lines?
Ah, I see now - looks like we mirror the pkgs directory illustrated in the Local Repository section.
http://docs.sencha.com/extjs/4.2.1/#!/guide/command_package_authoring
Yes correct, from what I understand pkgs/* in the repo becomes http://deftjs.org/packages/*
Appears to be working:
$ sencha repo add -address http://packages.deftjs.org -name deft
Sencha Cmd v3.1.2.342
[INF] Adding remote "deft"
[INF] Remote "deft" added
$ sencha repo show --all deft
Sencha Cmd v3.1.2.342
[INF] Remote repository "deft" (owner: Deft JS)
[INF] Packages: 1
[INF] Expires: Tue Jun 26 12:00:00 NZST 2018
[INF] Type: HTTP
[INF] Address: http://packages.deftjs.org/
[INF] Priority: 0
$ sencha package list deft
Sencha Cmd v3.1.2.342
[INF] Listing of deft catalog
[INF] Package deft
[INF] *0.9.0*
[INF] 1 package(s)
And from a package directory that depends on DeftJS via the requires array:
$ sencha package build
[INF] Including code package deft for build
Sencha Cmd v3.1.2.342
[INF]
[INF] init-plugin:
[INF]
[INF] init-package-plugin:
[INF]
[INF] package-build:
[INF] Including code package deft for build
And from an ExtJS application directory that depends on DeftJS via the requires array:
$ sencha app build
[INF] Including theme package ext-theme-classic for app.theme=ext-theme-classic build
[INF] Including code package deft for build
<cut>
[INF] Loading classpath entry /var/www/sencha/ext-4.2.1.883/src
[INF] Loading classpath entry /var/www/sencha/ext-4.2.1.883/packages/ext-theme-base/overrides
[INF] Loading classpath entry /var/www/sencha/ext-4.2.1.883/packages/ext-theme-base/src
[INF] Loading classpath entry /var/www/sencha/ext-4.2.1.883/packages/ext-theme-neutral/overrides
[INF] Loading classpath entry /var/www/sencha/ext-4.2.1.883/packages/ext-theme-neutral/src
[INF] Loading classpath entry /var/www/sencha/ext-4.2.1.883/packages/ext-theme-classic/overrides
[INF] Loading classpath entry /var/www/sencha/ext-4.2.1.883/packages/ext-theme-classic/src
[INF] Loading classpath entry client-side/packages/deft/overrides
[INF] Loading classpath entry client-side/packages/deft/src
<cut>
And from a Touch application directory that depends on DeftJS via the requires array:
$ sencha app build
[INF] Including code package deft for build
<cut>
[INF] Loading classpath entry /var/www/sencha/touch-2.2.1/src
[INF] Loading classpath entry client-side/packages/deft/overrides
[INF] Loading classpath entry client-side/packages/deft/src
Ref http://docs.sencha.com/extjs/4.2.1/#!/guide/command_package_authoring-section-hosting-a-package-repository
Basically involves
sencha package build
frompackages/deft
directorysencha package add build/deft/deft.pkg
(in the workspace build directory NOT the package build directory).sencha repo add -address http://deftjs.org/packages -name deft
would workThoughts ?