246 lines
17 KiB
JSON
246 lines
17 KiB
JSON
{
|
|
"name": "x-saherelm-ai",
|
|
"version": "1.0.0",
|
|
"description": "SaherElm AI Application",
|
|
"main": "index.js",
|
|
"scripts": {
|
|
"z01": "|---------------|",
|
|
"z02": "| Common |",
|
|
"z03": "|---------------|",
|
|
"loginRegistry": "npm login --registry https://npm.saherelmhub.ir/",
|
|
"addUserRegistry": "npm adduser --registry https://npm.saherelmhub.ir/",
|
|
"z04": "|---------------|",
|
|
"z05": "| /Common |",
|
|
"z06": "|---------------|",
|
|
"z1": "|---------------|",
|
|
"z2": "| Git |",
|
|
"z3": "|---------------|",
|
|
"gitStatuses": "git status && git submodule foreach git status",
|
|
"gitPulls": "git pull origin master && git submodule foreach git pull origin master",
|
|
"gitPushs": "git push origin master && git submodule foreach git push origin master",
|
|
"gitCheckoutMaster": "git checkout master && git submodule foreach git checkout master",
|
|
"z4": "|---------------|",
|
|
"z5": "| /Git |",
|
|
"z6": "|---------------|",
|
|
"a1": "|---------------|",
|
|
"a2": "| DotNet |",
|
|
"a3": "|---------------|",
|
|
"true": "",
|
|
"dotClean": "dotnet clean",
|
|
"dotBuild": "dotnet build",
|
|
"dotRestore": "dotnet restore",
|
|
"dotRebuild": "dotnet clean && dotnet build",
|
|
"dotTrustDevCert": "dotnet dev-certs https --trust",
|
|
"a4": "|---------------|",
|
|
"a5": "| /DotNet |",
|
|
"a6": "|---------------|",
|
|
"g1": "|---------------|",
|
|
"g2": "| Nuget |",
|
|
"g3": "|---------------|",
|
|
"lsNugetTemplates": "dotnet new --list",
|
|
"lsNugetPackages": "shx ls ~/.nuget/packages/",
|
|
"listNugetLocals": "dotnet nuget locals all -l",
|
|
"clearNugetTemp": "dotnet nuget locals temp --clear",
|
|
"clearNugetLocals": "dotnet nuget locals all --clear",
|
|
"clearNugetHttpCache": "dotnet nuget locals http-cache --clear",
|
|
"prepareNugets": "npm run clearNugetTempHttpCache && npm run rmDashboardNugets",
|
|
"clearNugetTempHttpCache": "npm run clearNugetTemp && npm run clearNugetHttpCache",
|
|
"rmDashboardModels": "shx --silent rm -rf ~/.nuget/packages/xdashboard.xmodels",
|
|
"rmDashboardCommons": "shx --silent rm -rf ~/.nuget/packages/xdashboard.xcommons",
|
|
"rmDashboardExceptions": "shx --silent rm -rf ~/.nuget/packages/xdashboard.xexceptions",
|
|
"rmDashboardHttpService": "shx --silent rm -rf ~/.nuget/packages/xdashboard.xhttpservice",
|
|
"rmDashboardPushService": "shx --silent rm -rf ~/.nuget/packages/xdashboard.xpushservice",
|
|
"rmDashboardDataService": "shx --silent rm -rf ~/.nuget/packages/xdashboard.xdataservice",
|
|
"rmDashboardEventService": "shx --silent rm -rf ~/.nuget/packages/xdashboard.xeventservice",
|
|
"rmDashboardTemplates": "shx --silent rm -rf ~/.nuget/packages/xdashboard.aspnetcore.templates",
|
|
"rmDashboardMessageService": "shx --silent rm -rf ~/.nuget/packages/xdashboard.xmessageservice",
|
|
"rmDashboardStorageService": "shx --silent rm -rf ~/.nuget/packages/xdashboard.xstorageservice",
|
|
"rmDashboardIdentityModels": "shx --silent rm -rf ~/.nuget/packages/xdashboard.xidentitymodels",
|
|
"rmDashboardIdentityService": "shx --silent rm -rf ~/.nuget/packages/xdashboard.xidentityservice",
|
|
"rmDashboardStringService": "shx --silent rm -rf ~/.nuget/packages/xdashboard.xstringservice",
|
|
"rmDashboardWebinarService": "shx --silent rm -rf ~/.nuget/packages/xdashboard.xwebinarservice",
|
|
"rmDashboardInstagramService": "shx --silent rm -rf ~/.nuget/packages/xdashboard.xinstagramservice",
|
|
"rmDashboardNugets": "npm run rmDashboardTemplates && npm run rmDashboardCommons && npm run rmDashboardDataService && npm run rmDashboardEventService && npm run rmDashboardExceptions && npm run rmDashboardHttpService && npm run rmDashboardIdentityModels && npm run rmDashboardIdentityService && npm run rmDashboardInstagramService && npm run rmDashboardMessageService && npm run rmDashboardModels && npm run rmDashboardPushService && npm run rmDashboardStorageService && npm run rmDashboardStringService && npm run rmDashboardWebinarService",
|
|
"g4": "|---------------|",
|
|
"g5": "| /Nuget |",
|
|
"g6": "|---------------|",
|
|
"b1": "|---------------|",
|
|
"b2": "| Api |",
|
|
"b3": "|---------------|",
|
|
"runApi": "dotnet run --project ./xApi/xApi.csproj",
|
|
"publishApi": "dotnet publish -c Release ./xApi/xApi.csproj",
|
|
"publishApiLinux64": "dotnet publish -c Release -r linux-x64 ./xApi/xApi.csproj",
|
|
"publishApiForAlpineLinux64": "dotnet publish -c Release --self-contained -r linux-musl-x64 ./xApi/xApi.csproj",
|
|
"transferApiToPublish": "shx rm -rf ./Publish/xApi && shx mkdir -p ./Publish/xApi && shx --silent mkdir -p ./Publish/xApi/wwwroot && shx cp -r ./xApi/bin/Release/netcoreapp3.1/linux-musl-x64/publish/. ./Publish/xApi && shx rm ./Publish/xApi/appsettings.Development.json && shx rm -rf ./Publish/xApi/wwroot",
|
|
"transferApiAdditionalsToPublish": "shx cp -r ./Documents/Docker/xApi/. ./Publish/xApi",
|
|
"prepareApiToPublish": "npm run publishApiForAlpineLinux64 && npm run transferApiToPublish && npm run transferApiAdditionalsToPublish",
|
|
"d1": "|---------------|",
|
|
"d2": "| EF |",
|
|
"d3": "|---------------|",
|
|
"updateApiDb": "cd xApi && dotnet ef database update || npm run true",
|
|
"dropApiDb": "cd xApi && dotnet ef database drop --force || npm run true",
|
|
"rmMigrateApi": "cd xApi && shx --silent rm -rf ./Migrations || npm run true",
|
|
"scriptApiDb": "cd xApi && dotnet ef migrations script -o ../Documents/DbScripts/api-script.sql || npm run true",
|
|
"refreshApiDbs": "npm run rmMigrateApi && npm run initialMigrateApi && npm run dropApiDb && npm run updateApiDb",
|
|
"initialMigrateApi": "npm run rmMigrateApi && cd xApi && dotnet ef migrations add InitialMigration || npm run true",
|
|
"transferApiDbToDocker": "shx --silent rm -r ./Documents/Docker/xApi/Db/. && shx cp -r ./xApi/Db/. ./Documents/Docker/xApi/Db && shx --silent rm ./Documents/Docker/xApi/Db/.gitkeep",
|
|
"refreshPublishRequirementsApiDbs": "npm run refreshApiDbs && npm run transferApiDbToDocker",
|
|
"d4": "|---------------|",
|
|
"d5": "| /EF |",
|
|
"d6": "|---------------|",
|
|
"b4": "|---------------|",
|
|
"b5": "| /Api |",
|
|
"b6": "|---------------|",
|
|
"i1": "|---------------|",
|
|
"i2": "| AiApi |",
|
|
"i3": "|---------------|",
|
|
"runAiApi": "dotnet run --project ./xAiApi/xAiApi.csproj",
|
|
"publishAiApi": "dotnet publish -c Release ./xAiApi/xAiApi.csproj",
|
|
"publishAiApiLinux64": "dotnet publish -c Release -r linux-x64 ./xAiApi/xAiApi.csproj",
|
|
"publishAiApiForAlpineLinux64": "dotnet publish -c Release --self-contained -r linux-musl-x64 ./xAiApi/xAiApi.csproj",
|
|
"transferAiApiToPublish": "shx rm -rf ./Publish/xAiApi && shx mkdir -p ./Publish/xAiApi && shx --silent mkdir -p ./Publish/xAiApi/wwwroot && shx cp -r ./xAiApi/bin/Release/netcoreapp3.1/linux-musl-x64/publish/. ./Publish/xAiApi && shx rm ./Publish/xAiApi/appsettings.Development.json && shx rm -rf ./Publish/xAiApi/wwroot",
|
|
"transferAiApiAdditionalsToPublish": "shx cp -r ./Documents/Docker/xAiApi/. ./Publish/xAiApi",
|
|
"prepareAiApiToPublish": "npm run publishAiApiForAlpineLinux64 && npm run transferAiApiToPublish && npm run transferAiApiAdditionalsToPublish",
|
|
"j1": "|---------------|",
|
|
"j2": "| EF |",
|
|
"j3": "|---------------|",
|
|
"updateAiApiDb": "cd xAiApi && dotnet ef database update || npm run true",
|
|
"dropAiApiDb": "cd xAiApi && dotnet ef database drop --force || npm run true",
|
|
"rmMigrateAiApi": "cd xAiApi && shx --silent rm -rf ./Migrations || npm run true",
|
|
"scriptAiApiDb": "cd xAiApi && dotnet ef migrations script -o ../Documents/DbScripts/ai-api-script.sql || npm run true",
|
|
"refreshAiApiDbs": "npm run rmMigrateAiApi && npm run initialMigrateAiApi && npm run dropAiApiDb && npm run updateAiApiDb",
|
|
"initialMigrateAiApi": "npm run rmMigrateAiApi && cd xAiApi && dotnet ef migrations add InitialMigrationAiApi || npm run true",
|
|
"transferAiApiDbToDocker": "shx --silent rm -r ./Documents/Docker/xAiApi/Db/. && shx cp -r ./xAiApi/Db/. ./Documents/Docker/xAiApi/Db && shx --silent rm ./Documents/Docker/xAiApi/Db/.gitkeep",
|
|
"refreshPublishRequirementsAiApiDbs": "npm run refreshAiApiDbs && npm run transferAiApiDbToDocker",
|
|
"j4": "|---------------|",
|
|
"j5": "| /EF |",
|
|
"j6": "|---------------|",
|
|
"i4": "|---------------|",
|
|
"i5": "| /AiApi |",
|
|
"i6": "|---------------|",
|
|
"c1": "|---------------|",
|
|
"c2": "| IDS |",
|
|
"c3": "|---------------|",
|
|
"runIdentity": "dotnet run --project ./xIds/xIds.csproj",
|
|
"publishIdentity": "dotnet publish -c Release ./xIds/xIds.csproj",
|
|
"publishIdentityLinux64": "dotnet publish -c Release -r linux-x64 ./xIds/xIds.csproj",
|
|
"publishIdentityForAlpineLinux64": "dotnet publish -c Release --self-contained -r linux-musl-x64 ./xIds/xIds.csproj",
|
|
"transferIdsToPublish": "shx rm -rf ./Publish/xIds && shx mkdir -p ./Publish/xIds && shx --silent mkdir -p ./Publish/xIds/wwwroot && shx cp -r ./xIds/bin/Release/netcoreapp3.1/linux-musl-x64/publish/. ./Publish/xIds && shx rm ./Publish/xIds/appsettings.Development.json && shx mkdir -p ./Publish/xIds/Db && shx cp -r ./xIds/Db/. ./Publish/xIds/Db && shx rm ./Publish/xIds/Db/.gitkeep && shx rm -rf ./Publish/xIds/wwroot",
|
|
"transferIdsAdditionalsToPublish": "shx cp -r ./Documents/Docker/xIds/. ./Publish/xIds",
|
|
"prepareIdsToPublish": "npm run publishIdentityForAlpineLinux64 && npm run transferIdsToPublish && npm run transferIdsAdditionalsToPublish",
|
|
"e1": "|---------------|",
|
|
"e2": "| EF |",
|
|
"e3": "|---------------|",
|
|
"dbContextListIdentity": "cd xIds && dotnet ef dbcontext list || npm run true",
|
|
"rmMigrateIdentity": "cd xIds && shx --silent rm -rf ./Migrations || npm run true",
|
|
"updateIdentityDbIdentity": "cd xIds && dotnet ef database update -c XIdentityDbContext || npm run true",
|
|
"updateConfigDbIdentity": "cd xIds && dotnet ef database update -c ConfigurationDbContext || npm run true",
|
|
"updateGrantDbIdentity": "cd xIds && dotnet ef database update -c PersistedGrantDbContext || npm run true",
|
|
"dropIdentityDbIdentity": "cd xIds && dotnet ef database drop -c XIdentityDbContext --force || npm run true",
|
|
"dropConfigDbIdentity": "cd xIds && dotnet ef database drop -c ConfigurationDbContext --force || npm run true",
|
|
"dropGrantDbIdentity": "cd xIds && dotnet ef database drop -c PersistedGrantDbContext --force || npm run true",
|
|
"dropIdentityDbs": "npm run dropConfigDbIdentity && npm run dropGrantDbIdentity && npm run dropIdentityDbIdentity",
|
|
"updateIdentityDbs": "npm run updateConfigDbIdentity && npm run updateGrantDbIdentity && npm run updateIdentityDbIdentity",
|
|
"scriptIdentityDbContextIdentity": "cd xIds && dotnet ef migrations script -c XIdentityDbContext -o ./identity-script.sql || npm run true",
|
|
"initialIdentityMigrateIdentity": "cd xIds && dotnet ef migrations add InitialIdentityServerDbContext -c XIdentityDbContext || npm run true",
|
|
"initialConfigMigrateIdentity": "cd xIds && dotnet ef migrations add InitialConfigurationMigration -c ConfigurationDbContext || npm run true",
|
|
"refreshIdentityDbs": "npm run rmMigrateIdentity && npm run initialMigrateIdentityDbs && npm run dropIdentityDbs && npm run updateIdentityDbs",
|
|
"initialGrantMigrateIdentity": "cd xIds && dotnet ef migrations add InitialPersistedGrantMigration -c PersistedGrantDbContext || npm run true",
|
|
"initialMigrateIdentityDbs": "npm run initialConfigMigrateIdentity && npm run initialGrantMigrateIdentity && npm run initialIdentityMigrateIdentity",
|
|
"scriptIdentityDbs": "npm run scriptIdentityDbContextIdentity && npm run scriptConfigurationDbContextIdentity && npm run scriptPersistedGrantsDbContextIdentity",
|
|
"scriptConfigurationDbContextIdentity": "cd xIds && dotnet ef migrations script -c ConfigurationDbContext -o ./identity-configuration-script.sql || npm run true",
|
|
"scriptPersistedGrantsDbContextIdentity": "cd xIds && dotnet ef migrations script -c PersistedGrantDbContext -o ./identity-persisted-grant-script.sql || npm run true",
|
|
"transferIdentityDbToDocker": "shx --silent rm -r ./Documents/Docker/xIds/Db/. && shx cp -r ./xIds/Db/. ./Documents/Docker/xIds/Db && shx --silent rm ./Documents/Docker/xIds/Db/.gitkeep",
|
|
"refreshPublishRequirementsIdentityDbs": "npm run refreshIdentityDbs && npm run transferIdentityDbToDocker",
|
|
"e4": "|---------------|",
|
|
"e5": "| /EF |",
|
|
"e6": "|---------------|",
|
|
"c4": "|---------------|",
|
|
"c5": "| /IDS |",
|
|
"c6": "|---------------|",
|
|
"f1": "|---------------|",
|
|
"f2": "| Client |",
|
|
"f3": "|---------------|",
|
|
"f11": "|---------------|",
|
|
"f12": "| Build |",
|
|
"f13": "|---------------|",
|
|
"buildClient": "cd xClient && npm run build",
|
|
"buildProdClient": "cd xClient && npm run buildProd",
|
|
"buildProdClubClient": "cd xClient && npm run buildProdClub",
|
|
"buildClientElectronWin32": "cd xClient && npm run --force buildElectronWin32",
|
|
"buildClientElectronWin64": "cd xClient && npm run --force buildElectronWin64",
|
|
"buildClientElectronMac64": "cd xClient && npm run --force buildElectronMac64",
|
|
"buildClientElectronLinux64": "cd xClient && npm run --force buildElectronLinux64",
|
|
"f21": "|---------------|",
|
|
"f22": "| /Build |",
|
|
"f23": "|---------------|",
|
|
"f31": "|---------------|",
|
|
"f32": "| Serve |",
|
|
"f33": "|---------------|",
|
|
"serveClient": "cd xClient && npm run serveXFrameworkProject",
|
|
"serveSSLClient": "cd xClient && npm run serveSSLXFrameworkProject",
|
|
"serveProdClient": "cd xClient && npm run serveProdXFrameworkProject",
|
|
"onlyServeClient": "cd xClient && npm run onlyServe",
|
|
"serveInLabClient": "cd xClient && npm run serveInLabXFrameworkProject",
|
|
"runClientElectron": "cd xClient && npm run runXElectron",
|
|
"serveSSLProdClient": "cd xClient && npm run serveSSLProdXFrameworkProject",
|
|
"startClientElectron": "cd xClient && npm run startElectron",
|
|
"serveProdClubClient": "cd xClient && npm run serveProdClub",
|
|
"onlyServeSSLClient": "cd xClient && npm run onlyServeSSL",
|
|
"onlyServeSSLHosetedClient": "cd xClient && ng serve -o --ssl --host 0.0.0.0",
|
|
"onlyServeSSLHostedProdClient": "cd xClient && ng serve -o --ssl --host 0.0.0.0 --configuration production",
|
|
"serveSSLClientWithoutPrepare": "cd xClient && npm run ng serve -o --ssl",
|
|
"f41": "|---------------|",
|
|
"f42": "| /Serve |",
|
|
"f43": "|---------------|",
|
|
"f51": "|---------------|",
|
|
"f52": "| Prepare |",
|
|
"f53": "|---------------|",
|
|
"prepareClient": "cd xClient && npm run prepareDependenciesFromRegistry",
|
|
"prepareClientElectron": "cd xClient && npm run prepareElectron",
|
|
"addAPISDKLocalDependency": "cd xClient && npm run addAPISDKLocalDependency",
|
|
"addAPISDKRegisteryDependency": "cd xClient && npm run addAPISDKRegisteryDependency",
|
|
"transferClientToPublish": "shx rm -rf ./Publish/xClient && shx mkdir -p ./Publish/xClient && shx cp -r ./xClient/dist/xClient/. ./Publish/xClient && shx rm -rf ./Publish/xClient/wwroot",
|
|
"transferClientAdditionalsToPublish": "shx cp -r ./Documents/Docker/xClient/. ./Publish/xClient",
|
|
"prepareClientToPublish": "npm run buildProdClient && npm run transferClientToPublish && npm run transferClientAdditionalsToPublish",
|
|
"f61": "|---------------|",
|
|
"f62": "| /Prepare |",
|
|
"f63": "|---------------|",
|
|
"f4": "|---------------|",
|
|
"f5": "| /Client |",
|
|
"f6": "|---------------|",
|
|
"h1": "|---------------|",
|
|
"h2": "| API SDK |",
|
|
"h3": "|---------------|",
|
|
"buildXSaherElmSDKIvy": "cd ./Modules/xSaherElmApiSDKHolder && npm run build:ivy",
|
|
"buildXSaherElmSDKModule": "cd ./Modules/xSaherElmApiSDKHolder && npm run buildModule",
|
|
"publishXSaherElmSDKModule": "cd ./Modules/xSaherElmApiSDKHolder && npm run publishModule",
|
|
"publishAPISDKModuleToRegistry": "cd ./Modules/xSaherElmApiSDKHolder && npm run publishModuleToRegistry",
|
|
"rePublishAPISDKModuleToRegistry": "cd ./Modules/xSaherElmApiSDKHolder && npm run rePublishModuleToRegistry",
|
|
"prepareAPISDKDependenciesFromRegistry": "cd ./Modules/xSaherElmApiSDKHolder && npm run prepareDependenciesFromRegistry",
|
|
"h4": "|---------------|",
|
|
"h5": "| /API SDK |",
|
|
"h6": "|---------------|",
|
|
"ad1": "|-------------------|",
|
|
"da2": "| Workspace |",
|
|
"da3": "|-------------------|",
|
|
"buildWorkspace": "npm run publishApiForAlpineLinux64 && npm run publishIdentityForAlpineLinux64 && npm run buildProdClient",
|
|
"transferWorkspace": "npm run transferApiToPublish && npm run transferIdsToPublish && npm run transferClientToPublish",
|
|
"transferAditionalsWorkspace": "npm run transferApiAdditionalsToPublish && npm run transferIdsAdditionalsToPublish && npm run transferClientAdditionalsToPublish",
|
|
"prepareWorkspaceToPublish": "npm run prepareApiToPublish && npm run prepareIdsToPublish && npm run prepareClientToPublish",
|
|
"da4": "|-------------------|",
|
|
"da5": "| /Workspace |",
|
|
"da6": "|-------------------|"
|
|
},
|
|
"keywords": [
|
|
"x-saherelm",
|
|
"x-saherelm-ai"
|
|
],
|
|
"author": "Hadi Khazaee Asl (hadi_khazaee_asl@yahoo.com)",
|
|
"license": "ISC",
|
|
"devDependencies": {
|
|
"shx": "^0.3.4"
|
|
},
|
|
"dependencies": {}
|
|
}
|