Deployed the page to Github Pages.

This commit is contained in:
Batuhan Berk Başoğlu 2024-11-03 21:30:09 -05:00
parent 1d79754e93
commit 2c89899458
Signed by: batuhan-basoglu
SSH key fingerprint: SHA256:kEsnuHX+qbwhxSAXPUQ4ox535wFHu/hIRaa53FzxRpo
62797 changed files with 6551425 additions and 15279 deletions

56
node_modules/angular-cli-ghpages/deploy/actions.js generated vendored Normal file
View file

@ -0,0 +1,56 @@
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
};
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const architect_1 = require("@angular-devkit/architect");
const path_1 = __importDefault(require("path"));
function deploy(engine, context, buildTarget, options) {
return __awaiter(this, void 0, void 0, function* () {
if (options.noBuild) {
context.logger.info(`📦 Skipping build`);
}
else {
if (!context.target) {
throw new Error('Cannot execute the build target');
}
const overrides = Object.assign({}, (options.baseHref && { baseHref: options.baseHref }));
context.logger.info(`📦 Building "${context.target.project}"`);
context.logger.info(`📦 Build target "${buildTarget.name}"`);
const build = yield context.scheduleTarget((0, architect_1.targetFromTargetString)(buildTarget.name), Object.assign(Object.assign({}, buildTarget.options), overrides));
const buildResult = yield build.result;
if (!buildResult.success) {
throw new Error('Error while building the app.');
}
}
let dir;
if (options.dir) {
dir = options.dir;
}
else {
const buildOptions = yield context.getTargetOptions((0, architect_1.targetFromTargetString)(buildTarget.name));
if (!buildOptions.outputPath) {
throw new Error(`Cannot read the outputPath option of the Angular project '${buildTarget.name}' in angular.json.`);
}
if (typeof buildOptions.outputPath === 'string') {
dir = path_1.default.join(buildOptions.outputPath, 'browser');
}
else {
const obj = buildOptions.outputPath;
dir = path_1.default.join(obj.base, obj.browser);
}
}
yield engine.run(dir, options, context.logger);
});
}
exports.default = deploy;
//# sourceMappingURL=actions.js.map

View file

@ -0,0 +1 @@
{"version":3,"file":"actions.js","sourceRoot":"","sources":["../../deploy/actions.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,yDAAmF;AAEnF,gDAAwB;AAKxB,SAA8B,MAAM,CAClC,MAMC,EACD,OAAuB,EACvB,WAAwB,EACxB,OAAe;;QAGf,IAAI,OAAO,CAAC,OAAO,EAAE;YACnB,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,mBAAmB,CAAC,CAAC;SAC1C;aAAM;YACL,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE;gBACnB,MAAM,IAAI,KAAK,CAAC,iCAAiC,CAAC,CAAC;aACpD;YAED,MAAM,SAAS,qBACV,CAAC,OAAO,CAAC,QAAQ,IAAI,EAAE,QAAQ,EAAE,OAAO,CAAC,QAAQ,EAAE,CAAC,CACxD,CAAC;YAEF,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,gBAAgB,OAAO,CAAC,MAAM,CAAC,OAAO,GAAG,CAAC,CAAC;YAC/D,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,oBAAoB,WAAW,CAAC,IAAI,GAAG,CAAC,CAAC;YAE7D,MAAM,KAAK,GAAG,MAAM,OAAO,CAAC,cAAc,CACxC,IAAA,kCAAsB,EAAC,WAAW,CAAC,IAAI,CAAC,kCAEnC,WAAW,CAAC,OAAO,GACnB,SAAS,EAEf,CAAC;YACF,MAAM,WAAW,GAAG,MAAM,KAAK,CAAC,MAAM,CAAC;YAEvC,IAAI,CAAC,WAAW,CAAC,OAAO,EAAE;gBACxB,MAAM,IAAI,KAAK,CAAC,+BAA+B,CAAC,CAAC;aAClD;SACF;QAID,IAAI,GAAW,CAAC;QAChB,IAAI,OAAO,CAAC,GAAG,EAAE;YAEf,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC;SAEnB;aAAM;YAEL,MAAM,YAAY,GAAG,MAAM,OAAO,CAAC,gBAAgB,CACjD,IAAA,kCAAsB,EAAC,WAAW,CAAC,IAAI,CAAC,CACzC,CAAC;YASF,IAAI,CAAC,YAAY,CAAC,UAAU,EAAE;gBAC5B,MAAM,IAAI,KAAK,CACb,6DAA6D,WAAW,CAAC,IAAI,oBAAoB,CAClG,CAAC;aACH;YAED,IAAI,OAAO,YAAY,CAAC,UAAU,KAAK,QAAQ,EAAE;gBAC/C,GAAG,GAAG,cAAI,CAAC,IAAI,CAAC,YAAY,CAAC,UAAU,EAAE,SAAS,CAAC,CAAC;aACrD;iBAAM;gBACL,MAAM,GAAG,GAAG,YAAY,CAAC,UAAiB,CAAC;gBAC3C,GAAG,GAAG,cAAI,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,EAAE,GAAG,CAAC,OAAO,CAAC,CAAA;aACvC;SACF;QAED,MAAM,MAAM,CAAC,GAAG,CACd,GAAG,EACH,OAAO,EACN,OAAO,CAAC,MAAuC,CACjD,CAAC;IACJ,CAAC;CAAA;AAhFD,yBAgFC","sourcesContent":["import { BuilderContext, targetFromTargetString } from '@angular-devkit/architect';\nimport { logging } from '@angular-devkit/core';\nimport path from 'path';\n\nimport { BuildTarget } from '../interfaces';\nimport { Schema } from './schema';\n\nexport default async function deploy(\n engine: {\n run: (\n dir: string,\n options: Schema,\n logger: logging.LoggerApi\n ) => Promise<void>;\n },\n context: BuilderContext,\n buildTarget: BuildTarget,\n options: Schema\n) {\n // 1. BUILD\n if (options.noBuild) {\n context.logger.info(`📦 Skipping build`);\n } else {\n if (!context.target) {\n throw new Error('Cannot execute the build target');\n }\n\n const overrides = {\n ...(options.baseHref && { baseHref: options.baseHref })\n };\n\n context.logger.info(`📦 Building \"${context.target.project}\"`);\n context.logger.info(`📦 Build target \"${buildTarget.name}\"`);\n\n const build = await context.scheduleTarget(\n targetFromTargetString(buildTarget.name),\n {\n ...buildTarget.options,\n ...overrides\n }\n );\n const buildResult = await build.result;\n\n if (!buildResult.success) {\n throw new Error('Error while building the app.');\n }\n }\n\n // 2. DEPLOYMENT\n\n let dir: string;\n if (options.dir) {\n\n dir = options.dir;\n\n } else {\n\n const buildOptions = await context.getTargetOptions(\n targetFromTargetString(buildTarget.name)\n );\n\n // Output path configuration\n // The outputPath option can be either\n // - a String which will be used as the base value + default value 'browser'\n // - or an Object for more fine-tune configuration.\n // see https://angular.io/guide/workspace-config#output-path-configuration\n // see https://github.com/angular/angular-cli/pull/26675\n\n if (!buildOptions.outputPath) {\n throw new Error(\n `Cannot read the outputPath option of the Angular project '${buildTarget.name}' in angular.json.`\n );\n }\n\n if (typeof buildOptions.outputPath === 'string') {\n dir = path.join(buildOptions.outputPath, 'browser');\n } else {\n const obj = buildOptions.outputPath as any;\n dir = path.join(obj.base, obj.browser)\n }\n }\n\n await engine.run(\n dir,\n options,\n (context.logger as unknown) as logging.LoggerApi\n );\n}\n"]}

70
node_modules/angular-cli-ghpages/deploy/builder.js generated vendored Normal file
View file

@ -0,0 +1,70 @@
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
return result;
};
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
};
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const architect_1 = require("@angular-devkit/architect");
const engine = __importStar(require("../engine/engine"));
const actions_1 = __importDefault(require("./actions"));
exports.default = (0, architect_1.createBuilder)((options, context) => __awaiter(void 0, void 0, void 0, function* () {
if (!context.target) {
throw new Error('Cannot deploy the application without a target');
}
const staticBuildTarget = {
name: options.browserTarget ||
options.buildTarget ||
`${context.target.project}:build:production`
};
let prerenderBuildTarget;
if (options.prerender) {
prerenderBuildTarget = {
name: options.prerenderTarget ||
`${context.target.project}:prerender:production`
};
}
const finalBuildTarget = prerenderBuildTarget
? prerenderBuildTarget
: staticBuildTarget;
try {
yield (0, actions_1.default)(engine, context, finalBuildTarget, options);
}
catch (e) {
context.logger.error('❌ An error occurred when trying to deploy:');
context.logger.error(e.message);
return { success: false };
}
return { success: true };
}));
//# sourceMappingURL=builder.js.map

View file

@ -0,0 +1 @@
{"version":3,"file":"builder.js","sourceRoot":"","sources":["../../deploy/builder.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yDAImC;AAEnC,yDAA2C;AAC3C,wDAA+B;AAS/B,kBAAe,IAAA,yBAAa,EAC1B,CAAO,OAAe,EAAE,OAAuB,EAA0B,EAAE;IACzE,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE;QACnB,MAAM,IAAI,KAAK,CAAC,gDAAgD,CAAC,CAAC;KACnE;IAED,MAAM,iBAAiB,GAAG;QACxB,IAAI,EACF,OAAO,CAAC,aAAa;YACrB,OAAO,CAAC,WAAW;YACnB,GAAG,OAAO,CAAC,MAAM,CAAC,OAAO,mBAAmB;KAC/C,CAAC;IAEF,IAAI,oBAA6C,CAAC;IAClD,IAAI,OAAO,CAAC,SAAS,EAAE;QACrB,oBAAoB,GAAG;YACrB,IAAI,EACF,OAAO,CAAC,eAAe;gBACvB,GAAG,OAAO,CAAC,MAAM,CAAC,OAAO,uBAAuB;SACnD,CAAC;KACH;IAUD,MAAM,gBAAgB,GAAG,oBAAoB;QAC3C,CAAC,CAAC,oBAAoB;QACtB,CAAC,CAAC,iBAAiB,CAAC;IAEtB,IAAI;QACF,MAAM,IAAA,iBAAM,EAAC,MAAM,EAAE,OAAO,EAAE,gBAAgB,EAAE,OAAO,CAAC,CAAC;KAC1D;IAAC,OAAO,CAAC,EAAE;QACV,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,4CAA4C,CAAC,CAAC;QACnE,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC;QAChC,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;KAC3B;IAED,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;AAC3B,CAAC,CAAA,CACF,CAAC","sourcesContent":["import {\n BuilderContext,\n BuilderOutput,\n createBuilder\n} from '@angular-devkit/architect';\n\nimport * as engine from '../engine/engine';\nimport deploy from './actions';\nimport { Schema } from './schema';\nimport { BuildTarget } from '../interfaces';\n\n// Call the createBuilder() function to create a builder. This mirrors\n// createJobHandler() but add typings specific to Architect Builders.\n//\n// if something breaks here, see how angularfire has fixed it:\n// https://github.com/angular/angularfire/blob/master/src/schematics/deploy/builder.ts\nexport default createBuilder(\n async (options: Schema, context: BuilderContext): Promise<BuilderOutput> => {\n if (!context.target) {\n throw new Error('Cannot deploy the application without a target');\n }\n\n const staticBuildTarget = {\n name:\n options.browserTarget ||\n options.buildTarget ||\n `${context.target.project}:build:production`\n };\n\n let prerenderBuildTarget: BuildTarget | undefined;\n if (options.prerender) {\n prerenderBuildTarget = {\n name:\n options.prerenderTarget ||\n `${context.target.project}:prerender:production`\n };\n }\n\n // serverBuildTarget is not supported and is completely ignored\n // let serverBuildTarget: BuildTarget | undefined;\n // if (options.ssr) {\n // serverBuildTarget = {\n // name: options.serverTarget || options.universalBuildTarget || `${context.target.project}:server:production`\n // };\n // }\n\n const finalBuildTarget = prerenderBuildTarget\n ? prerenderBuildTarget\n : staticBuildTarget;\n\n try {\n await deploy(engine, context, finalBuildTarget, options);\n } catch (e) {\n context.logger.error('❌ An error occurred when trying to deploy:');\n context.logger.error(e.message);\n return { success: false };\n }\n\n return { success: true };\n }\n);\n"]}

95
node_modules/angular-cli-ghpages/deploy/schema.json generated vendored Normal file
View file

@ -0,0 +1,95 @@
{
"$id": "Schema",
"title": "schema",
"description": "Deployment of Angular CLI applications to GitHub pages (angular-cli-ghpages)",
"properties": {
"baseHref": {
"type": "string",
"description": "Base url for the application being built. Same as `ng build --base-href=/XXX/`."
},
"buildTarget": {
"type": "string",
"description": "A named build target, as specified in the `configurations` section of angular.json. Each named target is accompanied by a configuration of option defaults for that target. This is equivalent to calling the command `ng build --configuration=XXX`."
},
"browserTarget": {
"type": "string",
"description": "A named build target, as specified in the `configurations` section of angular.json. Each named target is accompanied by a configuration of option defaults for that target. This is equivalent to calling the command `ng build --configuration=XXX`."
},
"prerenderTarget": {
"type": "string",
"description": "A named build target, as specified in the `configurations` section of angular.json. Each named target is accompanied by a configuration of option defaults for that target. This is equivalent to calling the command `ng build --configuration=XXX`."
},
"noBuild": {
"type": "boolean",
"default": false,
"description": "Skip build process during deployment."
},
"remote": {
"type": "string",
"description": "Provide the remote name. If no value is provided, `origin` is used. Has no function if --repo is set.",
"default": "origin"
},
"repo": {
"type": "string",
"description": "Provide the repository URL. If no value is provided, a remote of the current working directory is used (defaults to `origin`; see --remote for details)."
},
"message": {
"type": "string",
"description": "The commit message.",
"default": "Auto-generated commit"
},
"branch": {
"type": "string",
"description": "The git branch to push your pages to.",
"default": "gh-pages"
},
"name": {
"type": "string",
"description": "The git user-name which is associated with this commit."
},
"email": {
"type": "string",
"description": "The git user-email which is associated with this commit."
},
"noSilent": {
"type": "boolean",
"description": "Deprecated! This parameter is no longer needed. It will be ignored.",
"default": false
},
"noDotfiles": {
"type": "boolean",
"description": "Includes dotfiles by default. Execute with --no-dotfiles to ignore files starting with `.`.",
"default": false
},
"noNotfound": {
"type": "boolean",
"description": "By default a 404.html file is created, because this is the only known workaround to avoid 404 error messages on GitHub Pages. For Cloudflare Pages we highly recommend to disable the 404.html file by setting this switch to true!",
"default": false
},
"noNojekyll": {
"type": "boolean",
"description": "By default a .nojekyll file is created, because we assume you don't want to compile the build again with Jekyll.",
"default": false
},
"cname": {
"type": "string",
"description": "Generate a CNAME file for the specified domain.",
"default": ""
},
"add": {
"type": "boolean",
"description": "Only add, and never remove existing files from the GitHub pages branch.",
"default": false
},
"dir": {
"type": "string",
"description": "Overrides the directory for all published sources, relative to the current working directory.",
"default": ""
},
"dryRun": {
"type": "boolean",
"description": "For testing: Run through without making any changes. Execute with --dry-run and nothing will happen.",
"default": false
}
}
}