agl 1.0.17 → 21.0.2
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/.smartconfig.json +55 -0
- package/changelog.md +1026 -0
- package/cli.js +14 -0
- package/dist_serve/bundle.js +44778 -0
- package/dist_serve/index.html +13 -0
- package/dist_ts/00_commitinfo_data.d.ts +8 -0
- package/dist_ts/00_commitinfo_data.js +9 -0
- package/dist_ts/classes.authmodels.d.ts +126 -0
- package/dist_ts/classes.authmodels.js +1422 -0
- package/dist_ts/classes.authstore.d.ts +160 -0
- package/dist_ts/classes.authstore.js +2483 -0
- package/dist_ts/classes.browserresourcehost.d.ts +85 -0
- package/dist_ts/classes.browserresourcehost.js +912 -0
- package/dist_ts/classes.cli.d.ts +21 -0
- package/dist_ts/classes.cli.js +1082 -0
- package/dist_ts/classes.config.d.ts +23 -0
- package/dist_ts/classes.config.js +267 -0
- package/dist_ts/classes.controller.d.ts +523 -0
- package/dist_ts/classes.controller.js +10611 -0
- package/dist_ts/classes.controllermanagement.d.ts +32 -0
- package/dist_ts/classes.controllermanagement.js +222 -0
- package/dist_ts/classes.draftmanager.d.ts +30 -0
- package/dist_ts/classes.draftmanager.js +179 -0
- package/dist_ts/classes.embeddeddb.d.ts +30 -0
- package/dist_ts/classes.embeddeddb.js +159 -0
- package/dist_ts/classes.flexframedtransport.d.ts +56 -0
- package/dist_ts/classes.flexframedtransport.js +275 -0
- package/dist_ts/classes.flexmodels.private.d.ts +231 -0
- package/dist_ts/classes.flexmodels.private.js +985 -0
- package/dist_ts/classes.flexmodels.public.d.ts +207 -0
- package/dist_ts/classes.flexmodels.public.js +885 -0
- package/dist_ts/classes.flexprojectionreader.d.ts +89 -0
- package/dist_ts/classes.flexprojectionreader.js +580 -0
- package/dist_ts/classes.flexservice.d.ts +196 -0
- package/dist_ts/classes.flexservice.js +3704 -0
- package/dist_ts/classes.flexstore.d.ts +174 -0
- package/dist_ts/classes.flexstore.js +3400 -0
- package/dist_ts/classes.flexsupervisor.d.ts +105 -0
- package/dist_ts/classes.flexsupervisor.js +1191 -0
- package/dist_ts/classes.gitreversion.d.ts +431 -0
- package/dist_ts/classes.gitreversion.js +10592 -0
- package/dist_ts/classes.harnessoperationmanager.d.ts +113 -0
- package/dist_ts/classes.harnessoperationmanager.js +602 -0
- package/dist_ts/classes.opencodeclient.d.ts +146 -0
- package/dist_ts/classes.opencodeclient.js +3003 -0
- package/dist_ts/classes.opencodesupervisor.d.ts +60 -0
- package/dist_ts/classes.opencodesupervisor.js +1003 -0
- package/dist_ts/classes.passkeymanager.d.ts +34 -0
- package/dist_ts/classes.passkeymanager.js +456 -0
- package/dist_ts/classes.processinspection.d.ts +50 -0
- package/dist_ts/classes.processinspection.js +484 -0
- package/dist_ts/classes.resourcecoordinator.d.ts +64 -0
- package/dist_ts/classes.resourcecoordinator.js +294 -0
- package/dist_ts/classes.sessionintelligencereader.d.ts +13 -0
- package/dist_ts/classes.sessionintelligencereader.js +40 -0
- package/dist_ts/classes.systemmetricssampler.d.ts +53 -0
- package/dist_ts/classes.systemmetricssampler.js +168 -0
- package/dist_ts/classes.terminalmanager.d.ts +95 -0
- package/dist_ts/classes.terminalmanager.js +981 -0
- package/dist_ts/classes.terminalresourcehost.d.ts +20 -0
- package/dist_ts/classes.terminalresourcehost.js +84 -0
- package/dist_ts/classes.upgradecoordinator.d.ts +244 -0
- package/dist_ts/classes.upgradecoordinator.js +2155 -0
- package/dist_ts/classes.upgradetransaction.d.ts +92 -0
- package/dist_ts/classes.upgradetransaction.js +2125 -0
- package/dist_ts/classes.uploadmanager.d.ts +24 -0
- package/dist_ts/classes.uploadmanager.js +210 -0
- package/dist_ts/classes.validation.d.ts +91 -0
- package/dist_ts/classes.validation.js +1087 -0
- package/dist_ts/flexharness.child.d.ts +1 -0
- package/dist_ts/flexharness.child.js +28 -0
- package/dist_ts/functions.canonicaldirectory.d.ts +21 -0
- package/dist_ts/functions.canonicaldirectory.js +144 -0
- package/dist_ts/functions.controllerdataroot.d.ts +15 -0
- package/dist_ts/functions.controllerdataroot.js +76 -0
- package/dist_ts/functions.embeddeddb.d.ts +2 -0
- package/dist_ts/functions.embeddeddb.js +21 -0
- package/dist_ts/functions.flexcredentialstore.d.ts +16 -0
- package/dist_ts/functions.flexcredentialstore.js +93 -0
- package/dist_ts/functions.opencodeauth.d.ts +3 -0
- package/dist_ts/functions.opencodeauth.js +31 -0
- package/dist_ts/functions.runtimeenvironment.d.ts +2 -0
- package/dist_ts/functions.runtimeenvironment.js +79 -0
- package/dist_ts/functions.upgradefollower.d.ts +3 -0
- package/dist_ts/functions.upgradefollower.js +95 -0
- package/dist_ts/index.d.ts +24 -0
- package/dist_ts/index.js +25 -0
- package/dist_ts/interfaces.auth.d.ts +181 -0
- package/dist_ts/interfaces.auth.js +82 -0
- package/dist_ts/interfaces.config.d.ts +34 -0
- package/dist_ts/interfaces.config.js +2 -0
- package/dist_ts/interfaces.flexipc.d.ts +939 -0
- package/dist_ts/interfaces.flexipc.js +1492 -0
- package/dist_ts/interfaces.gitreversion.d.ts +246 -0
- package/dist_ts/interfaces.gitreversion.js +2 -0
- package/dist_ts/interfaces.lifecycle.d.ts +37 -0
- package/dist_ts/interfaces.lifecycle.js +2 -0
- package/dist_ts/interfaces.opencode.d.ts +101 -0
- package/dist_ts/interfaces.opencode.js +3 -0
- package/dist_ts/interfaces.projects.d.ts +156 -0
- package/dist_ts/interfaces.projects.js +5 -0
- package/dist_ts/plugins.d.ts +36 -0
- package/dist_ts/plugins.js +40 -0
- package/dist_ts_interfaces/index.d.ts +2 -0
- package/dist_ts_interfaces/index.js +3 -0
- package/dist_ts_interfaces/interfaces.d.ts +747 -0
- package/dist_ts_interfaces/interfaces.js +47 -0
- package/dist_ts_interfaces/plugins.d.ts +4 -0
- package/dist_ts_interfaces/plugins.js +3 -0
- package/dist_ts_interfaces/requests.d.ts +806 -0
- package/dist_ts_interfaces/requests.js +2 -0
- package/dist_ts_migration/classes.documentmigrationrunner.d.ts +8 -0
- package/dist_ts_migration/classes.documentmigrationrunner.js +24 -0
- package/dist_ts_migration/classes.flexmigrationrunner.d.ts +11 -0
- package/dist_ts_migration/classes.flexmigrationrunner.js +25 -0
- package/dist_ts_migration/classes.flexpostharnessmigrationrunner.d.ts +10 -0
- package/dist_ts_migration/classes.flexpostharnessmigrationrunner.js +15 -0
- package/dist_ts_migration/classes.migrationrunner.d.ts +8 -0
- package/dist_ts_migration/classes.migrationrunner.js +34 -0
- package/dist_ts_migration/index.d.ts +12 -0
- package/dist_ts_migration/index.js +13 -0
- package/dist_ts_migration/v10_flexharnessv3migration.d.ts +11 -0
- package/dist_ts_migration/v10_flexharnessv3migration.js +23 -0
- package/dist_ts_migration/v13_flexprojectionorder.d.ts +11 -0
- package/dist_ts_migration/v13_flexprojectionorder.js +23 -0
- package/dist_ts_migration/v16_flexprovidercredentials.d.ts +22 -0
- package/dist_ts_migration/v16_flexprovidercredentials.js +149 -0
- package/dist_ts_migration/v18_resourcelayout.d.ts +22 -0
- package/dist_ts_migration/v18_resourcelayout.js +23 -0
- package/dist_ts_migration/v18_resourcelayoutmigration.d.ts +6 -0
- package/dist_ts_migration/v18_resourcelayoutmigration.js +61 -0
- package/dist_ts_migration/v19_flexprojectmanagement.d.ts +11 -0
- package/dist_ts_migration/v19_flexprojectmanagement.js +21 -0
- package/dist_ts_migration/v1_embeddeddatabaselocation.d.ts +28 -0
- package/dist_ts_migration/v1_embeddeddatabaselocation.js +415 -0
- package/dist_ts_migration/v22_projectfilesystemidentitymigration.d.ts +7 -0
- package/dist_ts_migration/v22_projectfilesystemidentitymigration.js +105 -0
- package/dist_ts_migration/v2_controllerdataroot.d.ts +130 -0
- package/dist_ts_migration/v2_controllerdataroot.js +1887 -0
- package/dist_ts_migration/v6_protocoldocumentmigration.d.ts +7 -0
- package/dist_ts_migration/v6_protocoldocumentmigration.js +100 -0
- package/dist_ts_migration/v6_protocoldocuments.d.ts +7 -0
- package/dist_ts_migration/v6_protocoldocuments.js +138 -0
- package/html/index.html +13 -0
- package/{LICENSE → license.md} +2 -2
- package/package.json +86 -48
- package/readme.md +480 -0
- package/readme.plan.md +188 -0
- package/ts/00_commitinfo_data.ts +8 -0
- package/ts/classes.authmodels.ts +1245 -0
- package/ts/classes.authstore.ts +3274 -0
- package/ts/classes.browserresourcehost.ts +1205 -0
- package/ts/classes.cli.ts +1254 -0
- package/ts/classes.config.ts +351 -0
- package/ts/classes.controller.ts +14426 -0
- package/ts/classes.controllermanagement.ts +330 -0
- package/ts/classes.draftmanager.ts +232 -0
- package/ts/classes.embeddeddb.ts +166 -0
- package/ts/classes.flexframedtransport.ts +283 -0
- package/ts/classes.flexmodels.private.ts +823 -0
- package/ts/classes.flexmodels.public.ts +732 -0
- package/ts/classes.flexprojectionreader.ts +816 -0
- package/ts/classes.flexservice.ts +4302 -0
- package/ts/classes.flexstore.ts +4565 -0
- package/ts/classes.flexsupervisor.ts +1453 -0
- package/ts/classes.gitreversion.ts +13353 -0
- package/ts/classes.harnessoperationmanager.ts +870 -0
- package/ts/classes.opencodeclient.ts +4110 -0
- package/ts/classes.opencodesupervisor.ts +1280 -0
- package/ts/classes.passkeymanager.ts +570 -0
- package/ts/classes.processinspection.ts +623 -0
- package/ts/classes.resourcecoordinator.ts +436 -0
- package/ts/classes.sessionintelligencereader.ts +52 -0
- package/ts/classes.systemmetricssampler.ts +215 -0
- package/ts/classes.terminalmanager.ts +1207 -0
- package/ts/classes.terminalresourcehost.ts +122 -0
- package/ts/classes.upgradecoordinator.ts +2675 -0
- package/ts/classes.upgradetransaction.ts +2900 -0
- package/ts/classes.uploadmanager.ts +240 -0
- package/ts/classes.validation.ts +1409 -0
- package/ts/flexharness.child.ts +35 -0
- package/ts/functions.canonicaldirectory.ts +213 -0
- package/ts/functions.controllerdataroot.ts +107 -0
- package/ts/functions.embeddeddb.ts +22 -0
- package/ts/functions.flexcredentialstore.ts +128 -0
- package/ts/functions.opencodeauth.ts +34 -0
- package/ts/functions.runtimeenvironment.ts +90 -0
- package/ts/functions.upgradefollower.ts +115 -0
- package/ts/index.ts +36 -6
- package/ts/interfaces.auth.ts +316 -0
- package/ts/interfaces.config.ts +37 -0
- package/ts/interfaces.flexipc.ts +2586 -0
- package/ts/interfaces.gitreversion.ts +336 -0
- package/ts/interfaces.lifecycle.ts +46 -0
- package/ts/interfaces.opencode.ts +153 -0
- package/ts/interfaces.projects.ts +182 -0
- package/ts/plugins.ts +64 -0
- package/ts_interfaces/index.ts +2 -0
- package/ts_interfaces/interfaces.ts +827 -0
- package/ts_interfaces/plugins.ts +15 -0
- package/ts_interfaces/requests.ts +1186 -0
- package/ts_migration/classes.documentmigrationrunner.ts +32 -0
- package/ts_migration/classes.flexmigrationrunner.ts +33 -0
- package/ts_migration/classes.flexpostharnessmigrationrunner.ts +22 -0
- package/ts_migration/classes.migrationrunner.ts +40 -0
- package/ts_migration/index.ts +12 -0
- package/ts_migration/v10_flexharnessv3migration.ts +35 -0
- package/ts_migration/v13_flexprojectionorder.ts +33 -0
- package/ts_migration/v16_flexprovidercredentials.ts +196 -0
- package/ts_migration/v18_resourcelayout.ts +55 -0
- package/ts_migration/v18_resourcelayoutmigration.ts +68 -0
- package/ts_migration/v19_flexprojectmanagement.ts +28 -0
- package/ts_migration/v1_embeddeddatabaselocation.ts +560 -0
- package/ts_migration/v22_projectfilesystemidentitymigration.ts +121 -0
- package/ts_migration/v2_controllerdataroot.ts +2349 -0
- package/ts_migration/v6_protocoldocumentmigration.ts +144 -0
- package/ts_migration/v6_protocoldocuments.ts +198 -0
- package/ts_web/00_commitinfo_data.ts +8 -0
- package/ts_web/classes.controllersocketclient.ts +517 -0
- package/ts_web/classes.sessiondraftsync.ts +390 -0
- package/ts_web/elements.harnesscontrollerapp.ts +11494 -0
- package/ts_web/index.ts +2 -0
- package/ts_web/plugins.ts +31 -0
- package/.gitlab-ci.yml +0 -71
- package/.npmignore +0 -5
- package/README.md +0 -40
- package/dist/cli.js +0 -2
- package/dist/index.d.ts +0 -0
- package/dist/index.js +0 -9
- package/dist/mod_bundle/index.d.ts +0 -1
- package/dist/mod_bundle/index.js +0 -18
- package/dist/mod_bundle/mod.plugins.d.ts +0 -4
- package/dist/mod_bundle/mod.plugins.js +0 -11
- package/dist/mod_install/index.d.ts +0 -4
- package/dist/mod_install/index.js +0 -21
- package/dist/mod_install/mod.plugins.d.ts +0 -1
- package/dist/mod_install/mod.plugins.js +0 -7
- package/dist/mod_standard/index.d.ts +0 -4
- package/dist/mod_standard/index.js +0 -21
- package/dist/mod_standard/mod.browser.d.ts +0 -6
- package/dist/mod_standard/mod.browser.js +0 -14
- package/dist/mod_standard/mod.clean.d.ts +0 -4
- package/dist/mod_standard/mod.clean.js +0 -12
- package/dist/mod_standard/mod.compile.d.ts +0 -4
- package/dist/mod_standard/mod.compile.js +0 -21
- package/dist/mod_standard/mod.plugins.d.ts +0 -8
- package/dist/mod_standard/mod.plugins.js +0 -19
- package/dist/mod_standard/mod.test.d.ts +0 -4
- package/dist/mod_standard/mod.test.js +0 -12
- package/dist/plr.cli.d.ts +0 -3
- package/dist/plr.cli.js +0 -57
- package/dist/plr.config.d.ts +0 -11
- package/dist/plr.config.js +0 -26
- package/dist/plr.mods.d.ts +0 -17
- package/dist/plr.mods.js +0 -17
- package/dist/plr.paths.d.ts +0 -19
- package/dist/plr.paths.js +0 -26
- package/dist/plr.plugins.d.ts +0 -8
- package/dist/plr.plugins.js +0 -16
- package/npmextra.json +0 -10
- package/ts/mod_bundle/index.ts +0 -20
- package/ts/mod_bundle/mod.plugins.ts +0 -9
- package/ts/mod_install/index.ts +0 -20
- package/ts/mod_install/mod.plugins.ts +0 -1
- package/ts/mod_standard/index.ts +0 -23
- package/ts/mod_standard/mod.browser.ts +0 -17
- package/ts/mod_standard/mod.clean.ts +0 -13
- package/ts/mod_standard/mod.compile.ts +0 -23
- package/ts/mod_standard/mod.plugins.ts +0 -17
- package/ts/mod_standard/mod.test.ts +0 -13
- package/ts/plr.cli.ts +0 -60
- package/ts/plr.config.ts +0 -36
- package/ts/plr.mods.ts +0 -25
- package/ts/plr.paths.ts +0 -29
- package/ts/plr.plugins.ts +0 -17
- package/tslint.json +0 -3
- package/yarn.lock +0 -3464
package/npmextra.json
DELETED
package/ts/mod_bundle/index.ts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This module installs the the dependencies needed for angular 2 or later for the IDE
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as q from 'q'
|
|
6
|
-
import { SmartJspm } from 'smartjspm'
|
|
7
|
-
|
|
8
|
-
import * as paths from '../plr.paths'
|
|
9
|
-
|
|
10
|
-
import * as plugins from './mod.plugins'
|
|
11
|
-
|
|
12
|
-
export let run = () => {
|
|
13
|
-
let localSmartjspm = new SmartJspm({
|
|
14
|
-
npmDevDir: paths.cwd,
|
|
15
|
-
targetDir: paths.distWeb
|
|
16
|
-
})
|
|
17
|
-
localSmartjspm.readNpmextraJspmDependencies(plugins.path.join(paths.cwd))
|
|
18
|
-
plugins.smartfile.fs.ensureDirSync(paths.plrBundle)
|
|
19
|
-
localSmartjspm.createBundle(paths.distWeb, './app/main.js', paths.plrBundle)
|
|
20
|
-
}
|
package/ts/mod_install/index.ts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import * as q from 'q'
|
|
2
|
-
import { SmartJspm } from 'smartjspm'
|
|
3
|
-
|
|
4
|
-
import * as plugins from './mod.plugins'
|
|
5
|
-
import * as paths from '../plr.paths'
|
|
6
|
-
|
|
7
|
-
export let run = () => {
|
|
8
|
-
let done = q.defer<SmartJspm>()
|
|
9
|
-
let localSmartjspm = new SmartJspm({
|
|
10
|
-
npmDevDir: paths.cwd,
|
|
11
|
-
targetDir: paths.distWeb
|
|
12
|
-
})
|
|
13
|
-
localSmartjspm.readNpmextraJspmDependencies(plugins.path.join(paths.cwd))
|
|
14
|
-
plugins.beautylog.info('Now installing dependencies for npm development dir')
|
|
15
|
-
localSmartjspm.installNpmDevDir()
|
|
16
|
-
plugins.beautylog.info('Now installing dependencies for web target dir with jspm')
|
|
17
|
-
localSmartjspm.installJspmTarget()
|
|
18
|
-
done.resolve(localSmartjspm)
|
|
19
|
-
return done.promise
|
|
20
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from '../plr.plugins'
|
package/ts/mod_standard/index.ts
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import * as q from 'q'
|
|
2
|
-
|
|
3
|
-
import { IPlrConfig } from '../plr.config'
|
|
4
|
-
|
|
5
|
-
import * as plugins from './mod.plugins'
|
|
6
|
-
import * as plrCompile from './mod.compile'
|
|
7
|
-
import * as plrClean from './mod.clean'
|
|
8
|
-
import * as plrBrowser from './mod.browser'
|
|
9
|
-
import * as plrTest from './mod.test'
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
export let run = (configArg: IPlrConfig): q.Promise<void> => {
|
|
13
|
-
let done = q.defer<void>()
|
|
14
|
-
plugins.beautylog.ora.text('now running standard module')
|
|
15
|
-
plrClean.run(configArg)
|
|
16
|
-
.then(plrCompile.run)
|
|
17
|
-
.then(plrTest.run)
|
|
18
|
-
.then(plrBrowser.run)
|
|
19
|
-
.then(() => {
|
|
20
|
-
plugins.beautylog.ora.endOk('Done!')
|
|
21
|
-
}).catch(err => { console.log(err) })
|
|
22
|
-
return done.promise
|
|
23
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import * as q from 'q'
|
|
2
|
-
|
|
3
|
-
import * as paths from '../plr.paths'
|
|
4
|
-
import { IPlrConfig } from '../plr.config'
|
|
5
|
-
|
|
6
|
-
import * as plugins from './mod.plugins'
|
|
7
|
-
|
|
8
|
-
export let smartbrowserInst: plugins.smartbrowser.Smartbrowser
|
|
9
|
-
|
|
10
|
-
export let run = (configArg: IPlrConfig) => {
|
|
11
|
-
let done = q.defer<IPlrConfig>()
|
|
12
|
-
smartbrowserInst = new plugins.smartbrowser.Smartbrowser({
|
|
13
|
-
webroot: paths.cwd,
|
|
14
|
-
watchFiles: [plugins.path.join(paths.cwd, '**/*')]
|
|
15
|
-
})
|
|
16
|
-
return done.promise
|
|
17
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import * as q from 'q'
|
|
2
|
-
|
|
3
|
-
import * as paths from '../plr.paths'
|
|
4
|
-
import { IPlrConfig } from '../plr.config'
|
|
5
|
-
|
|
6
|
-
import * as plugins from './mod.plugins'
|
|
7
|
-
|
|
8
|
-
export let run = (configArg: IPlrConfig) => {
|
|
9
|
-
let done = q.defer()
|
|
10
|
-
plugins.smartfile.fs.removeSync(paths.distWebApp)
|
|
11
|
-
done.resolve(configArg)
|
|
12
|
-
return done.promise
|
|
13
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import * as q from 'q'
|
|
2
|
-
|
|
3
|
-
import paths = require('../plr.paths')
|
|
4
|
-
import { IPlrConfig } from '../plr.config'
|
|
5
|
-
|
|
6
|
-
import plugins = require('./mod.plugins')
|
|
7
|
-
|
|
8
|
-
export let run = function (configArg: IPlrConfig) {
|
|
9
|
-
let done = q.defer()
|
|
10
|
-
let config = configArg
|
|
11
|
-
plugins.beautylog.ora.text(`now compiling TypeScript for Angular`)
|
|
12
|
-
plugins.tsn.compileGlobStringObject(config.ts,config.tsOptions)
|
|
13
|
-
.then(() => {
|
|
14
|
-
plugins.beautylog.ok('compiled main TypeScript!')
|
|
15
|
-
plugins.beautylog.log('now compiling tests!')
|
|
16
|
-
return plugins.tsn.compileGlobStringObject(config.testTs,config.tsOptions)
|
|
17
|
-
})
|
|
18
|
-
.then(function () {
|
|
19
|
-
plugins.beautylog.ok('compiled all TypeScript!')
|
|
20
|
-
done.resolve(config)
|
|
21
|
-
})
|
|
22
|
-
return done.promise
|
|
23
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export * from '../plr.plugins'
|
|
2
|
-
|
|
3
|
-
import * as smartbrowser from 'smartbrowser'
|
|
4
|
-
import * as smartfile from 'smartfile'
|
|
5
|
-
import * as smartjspm from 'smartjspm'
|
|
6
|
-
import * as smartpath from 'smartpath'
|
|
7
|
-
import * as taskbuffer from 'taskbuffer'
|
|
8
|
-
import * as tsn from 'tsn'
|
|
9
|
-
|
|
10
|
-
export {
|
|
11
|
-
smartbrowser,
|
|
12
|
-
smartfile,
|
|
13
|
-
smartjspm,
|
|
14
|
-
smartpath,
|
|
15
|
-
taskbuffer,
|
|
16
|
-
tsn
|
|
17
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import * as q from 'q'
|
|
2
|
-
|
|
3
|
-
import { IPlrConfig } from '../plr.config'
|
|
4
|
-
|
|
5
|
-
import * as plugins from './mod.plugins'
|
|
6
|
-
|
|
7
|
-
export let run = (configArg: IPlrConfig) => {
|
|
8
|
-
let done = q.defer<IPlrConfig>()
|
|
9
|
-
plugins.beautylog.ora.text('now testing the module')
|
|
10
|
-
plugins.beautylog.ora.stop()
|
|
11
|
-
done.resolve(configArg)
|
|
12
|
-
return done.promise
|
|
13
|
-
}
|
package/ts/plr.cli.ts
DELETED
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import * as q from 'q'
|
|
2
|
-
|
|
3
|
-
import * as plugins from './plr.plugins'
|
|
4
|
-
import * as plrConfig from './plr.config'
|
|
5
|
-
import * as plrMods from './plr.mods'
|
|
6
|
-
|
|
7
|
-
export let run = (): q.Promise<void> => {
|
|
8
|
-
let done = q.defer<void>()
|
|
9
|
-
let localCli = new plugins.smartcli.Smartcli()
|
|
10
|
-
|
|
11
|
-
// Task Standard
|
|
12
|
-
localCli.standardTask() // the standardTask
|
|
13
|
-
.then(plrConfig.run)
|
|
14
|
-
.then(configArg => { // load the standard module and execute it
|
|
15
|
-
return plrMods.modStandard.load()
|
|
16
|
-
.then((modStandard) => {
|
|
17
|
-
return modStandard.run(configArg)
|
|
18
|
-
})
|
|
19
|
-
.then(() => {
|
|
20
|
-
done.resolve()
|
|
21
|
-
})
|
|
22
|
-
}).catch(err => {
|
|
23
|
-
if (err instanceof Error) {
|
|
24
|
-
console.log(err)
|
|
25
|
-
}
|
|
26
|
-
})
|
|
27
|
-
|
|
28
|
-
// Task Install
|
|
29
|
-
localCli.addCommand({ commandName: 'install' })
|
|
30
|
-
.then(plrConfig.run)
|
|
31
|
-
.then(configArg => {
|
|
32
|
-
return plrMods.modInstall.load()
|
|
33
|
-
.then(modInstall => {
|
|
34
|
-
return modInstall.run()
|
|
35
|
-
})
|
|
36
|
-
}).catch(err => {
|
|
37
|
-
if (err instanceof Error) {
|
|
38
|
-
console.log(err)
|
|
39
|
-
}
|
|
40
|
-
})
|
|
41
|
-
|
|
42
|
-
// Task Bundle
|
|
43
|
-
localCli.addCommand({ commandName: 'bundle' })
|
|
44
|
-
.then(plrConfig.run)
|
|
45
|
-
.then(configArg => {
|
|
46
|
-
return plrMods.modBundle.load().then(modBundle => {
|
|
47
|
-
return modBundle.run()
|
|
48
|
-
})
|
|
49
|
-
})
|
|
50
|
-
|
|
51
|
-
// Task Serve
|
|
52
|
-
localCli.addCommand({ commandName: 'serve' })
|
|
53
|
-
.then().catch(err => {
|
|
54
|
-
if (err instanceof Error) {
|
|
55
|
-
console.log(err)
|
|
56
|
-
}
|
|
57
|
-
})
|
|
58
|
-
localCli.startParse()
|
|
59
|
-
return done.promise
|
|
60
|
-
}
|
package/ts/plr.config.ts
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import * as q from 'q'
|
|
2
|
-
|
|
3
|
-
import * as paths from './plr.paths'
|
|
4
|
-
import * as plugins from './plr.plugins'
|
|
5
|
-
|
|
6
|
-
export interface IPlrConfig {
|
|
7
|
-
ts: any,
|
|
8
|
-
tsOptions: any,
|
|
9
|
-
testTs: any
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* evaluates the config for plr
|
|
14
|
-
*/
|
|
15
|
-
export let run = (argvArg): q.Promise<IPlrConfig> => {
|
|
16
|
-
let done = q.defer<IPlrConfig>()
|
|
17
|
-
plugins.beautylog.ora.start()
|
|
18
|
-
plugins.beautylog.ora.text('evaluating npmextra.json')
|
|
19
|
-
|
|
20
|
-
let defaultSettings: IPlrConfig = {
|
|
21
|
-
ts: {
|
|
22
|
-
'./angular/**/*.ts': './distweb/app'
|
|
23
|
-
},
|
|
24
|
-
tsOptions: {
|
|
25
|
-
|
|
26
|
-
},
|
|
27
|
-
testTs: {
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
let plrNpmextra = new plugins.npmextra.Npmextra(paths.cwd)
|
|
32
|
-
let finalConfig = plrNpmextra.dataFor<IPlrConfig>('plr', defaultSettings)
|
|
33
|
-
plugins.beautylog.ora.end()
|
|
34
|
-
done.resolve(finalConfig)
|
|
35
|
-
return done.promise
|
|
36
|
-
}
|
package/ts/plr.mods.ts
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import * as q from 'q'
|
|
2
|
-
import { LazyModule } from 'smartsystem'
|
|
3
|
-
|
|
4
|
-
import * as plugins from './plr.plugins'
|
|
5
|
-
|
|
6
|
-
// Just Types
|
|
7
|
-
import * as _modStandard from './mod_standard/index' // standardTask
|
|
8
|
-
import * as _modInstall from './mod_install/index' // installTask
|
|
9
|
-
import * as _modBundle from './mod_bundle/index' // installs Jspm dependencies
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* modStandard is the standard Task!
|
|
13
|
-
* It is respnsible for compiling and bundeling all assets
|
|
14
|
-
*/
|
|
15
|
-
export let modStandard = new LazyModule<typeof _modStandard>('./mod_standard/index',__dirname)
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* modInstall installs dependencies
|
|
19
|
-
*/
|
|
20
|
-
export let modInstall = new LazyModule<typeof _modInstall>('./mod_install/index',__dirname)
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* modBundle installs dependencies into the dev directory
|
|
24
|
-
*/
|
|
25
|
-
export let modBundle = new LazyModule<typeof _modBundle>('./mod_bundle/index',__dirname)
|
package/ts/plr.paths.ts
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import * as plugins from './plr.plugins'
|
|
2
|
-
|
|
3
|
-
// directories
|
|
4
|
-
// -- package related
|
|
5
|
-
export let packageDir = plugins.path.join(__dirname, '../')
|
|
6
|
-
export let sideworkDir = plugins.path.join(packageDir, 'sidework')
|
|
7
|
-
|
|
8
|
-
// -- project related
|
|
9
|
-
export let cwd = process.cwd()
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* distWeb holds all files that are exposed to the web
|
|
13
|
-
*/
|
|
14
|
-
export let distWeb = plugins.path.join(cwd, 'distweb') // called distweb to go along well with npmts
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* distWebApp holds the angular files (by convention)
|
|
18
|
-
*/
|
|
19
|
-
export let distWebApp = plugins.path.join(distWeb, 'app')
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* angular is the default directory to expect the source angular ts files in
|
|
23
|
-
*/
|
|
24
|
-
export let angular = plugins.path.join(cwd, 'angular')
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* plrBundle directory
|
|
28
|
-
*/
|
|
29
|
-
export let plrBundle = plugins.path.join(cwd,'plr_bundle')
|
package/ts/plr.plugins.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import 'typings-global'
|
|
2
|
-
|
|
3
|
-
import * as beautylog from 'beautylog'
|
|
4
|
-
import * as lodash from 'lodash'
|
|
5
|
-
import * as npmextra from 'npmextra'
|
|
6
|
-
import * as path from 'path'
|
|
7
|
-
import * as smartcli from 'smartcli'
|
|
8
|
-
import * as smartsystem from 'smartsystem'
|
|
9
|
-
|
|
10
|
-
export {
|
|
11
|
-
beautylog,
|
|
12
|
-
lodash,
|
|
13
|
-
npmextra,
|
|
14
|
-
path,
|
|
15
|
-
smartcli,
|
|
16
|
-
smartsystem
|
|
17
|
-
}
|
package/tslint.json
DELETED