Skip to content

Commit

Permalink
Merge pull request #5 from chriseugenerodriguez/ci-cd
Browse files Browse the repository at this point in the history
Ci cd
  • Loading branch information
chriseugenerodriguez authored Jan 1, 2024
2 parents 52fc684 + d9374bf commit 3e35b83
Show file tree
Hide file tree
Showing 957 changed files with 1,291 additions and 278 deletions.
31 changes: 24 additions & 7 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,29 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
- package-ecosystem: "" # See documentation for possible values
directory: "/" # Location of package manifests
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"

name: Dependabot fetch metadata
'on':
push:
branches:
- master

permissions:
pull-requests: write
issues: write
repository-projects: write
checks: write
contents: read

name: Dependabot fetch metadata
on: pull_request

permissions:
pull-requests: write
issues: write
repository-projects: write
checks: write
contents: read
8 changes: 8 additions & 0 deletions .github/workflows/firebase-hosting-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ name: Deploy to Firebase Hosting on merge
push:
branches:
- master
permissions:
pull-requests: write
issues: write
repository-projects: write
checks: write
contents: read
jobs:
build_and_deploy:
runs-on: ubuntu-latest
Expand All @@ -18,3 +24,5 @@ jobs:
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_GRCERI_C3702 }}'
channelId: live
projectId: grceri-c3702
env:
FIREBASE_CLI_EXPERIMENTS: webframeworks
8 changes: 8 additions & 0 deletions .github/workflows/firebase-hosting-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@

name: Deploy to Firebase Hosting on PR
'on': pull_request
permissions:
pull-requests: write
issues: write
repository-projects: write
checks: write
contents: read
jobs:
build_and_preview:
if: '${{ github.event.pull_request.head.repo.full_name == github.repository }}'
Expand All @@ -15,3 +21,5 @@ jobs:
repoToken: '${{ secrets.GITHUB_TOKEN }}'
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_GRCERI_C3702 }}'
projectId: grceri-c3702
env:
FIREBASE_CLI_EXPERIMENTS: webframeworks
51 changes: 45 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,45 @@
*.psd
designs/*
scraper/*
sql/*
utils/*
mobile/*
# See http://help.github.com/ignore-files/ for more about ignoring files.

# compiled output
dist
tmp
/out-tsc

# dependencies
node_modules

# IDEs and editors
/.idea
.project
.classpath
.c9/
*.launch
.settings/
*.sublime-workspace
*.firebase
*firebase-debug.log
*firebase-debug
*./firebase-debug

# IDE - VSCode
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json

# misc
/.sass-cache
/connect.lock
/coverage
/libpeerconnection.log
npm-debug.log
yarn-error.log
testem.log
/typings

# System Files
.DS_Store
Thumbs.db

.angular
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
33 changes: 28 additions & 5 deletions website/angular.json → angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,12 @@
"src/assets/css/main.scss"
],
"scripts": [
"node_modules/chart.js/dist/chart.min.js",
"node_modules/prismic-dom/dist/prismic-dom.min.js",
"src/assets/js/annyang.min.js",
"src/assets/js/hammer.min.js"
"src/assets/js/hammer.min.js",
"src/assets/js/quagga.min.js",
"src/assets/js/googlelogin.js"
]
},
"configurations": {
Expand All @@ -58,7 +62,16 @@
"src/robots.txt",
"src/ads.txt",
"src/sitemap.xml",
"src/manifest.json"
"src/manifest.json",
"src/assets"
],
"scripts": [
"node_modules/chart.js/dist/chart.min.js",
"node_modules/prismic-dom/dist/prismic-dom.min.js",
"src/assets/js/annyang.min.js",
"src/assets/js/hammer.min.js",
"src/assets/js/quagga.min.js",
"src/assets/js/googlelogin.js"
],
"ngswConfigPath": "ngsw-config.json"
},
Expand All @@ -85,7 +98,16 @@
"src/robots.txt",
"src/ads.txt",
"src/sitemap.xml",
"src/manifest.json"
"src/manifest.json",
"src/assets"
],
"scripts": [
"node_modules/chart.js/dist/chart.min.js",
"node_modules/prismic-dom/dist/prismic-dom.min.js",
"src/assets/js/annyang.min.js",
"src/assets/js/hammer.min.js",
"src/assets/js/quagga.min.js",
"src/assets/js/googlelogin.js"
],
"ngswConfigPath": "ngsw-config.json"
}
Expand Down Expand Up @@ -122,10 +144,11 @@
"src/assets/css/main.scss"
],
"scripts": [
"node_modules/chart.js/dist/Chart.min.js",
"node_modules/quagga/dist/quagga.min.js",
"node_modules/chart.js/dist/chart.min.js",
"node_modules/prismic-dom/dist/prismic-dom.min.js",
"src/assets/js/annyang.min.js",
"src/assets/js/hammer.min.js",
"src/assets/js/quagga.min.js",
"src/assets/js/googlelogin.js"
]
},
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
16 changes: 13 additions & 3 deletions firebase.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,23 @@
{
"hosting": {
"source": "website",
"public": "dist/browser",
"ignore": [
"firebase.json",
"**/.*",
"**/node_modules/**"
],
"frameworksBackend": {
"region": "us-central1"
}
},
"rewrites": [
{
"source": "/public/**",
"destination": "/public.html"
},
{
"source": "**",
"destination": "/index.html"
}
]
}
}
}
File renamed without changes.
File renamed without changes.
30 changes: 14 additions & 16 deletions website/package-lock.json → package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion website/package.json → package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"@nguniversal/builders": "^15.2.0",
"@nguniversal/express-engine": "^15.2.0",
"@ntegral/ngx-universal-window": "^1.0.2",
"@prismicio/client": "^5.0.0",
"rxjs": "*7.6.0",
"tslib": "^2.3.0",
"zone.js": "~0.12.0"
Expand Down Expand Up @@ -52,7 +53,6 @@
"fingerprintjs2": "^2.1.4",
"font-awesome": "^4.7.0",
"hammerjs": "^2.0.8",
"json-easy-filter": "^0.3.1",
"jwt-decode": "^4.0.0",
"md5-typescript": "^1.0.5",
"ng-lazyload-image": "^9.1.3",
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -78,3 +78,4 @@ import { ProductsService } from './core/services/product.service';
})

export class AppBrowserModule { }

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ import { ActivatedRoute, Router } from "@angular/router";
import { Component, OnInit } from "@angular/core";
import { HttpClient } from "@angular/common/http";

let fi = require('json-easy-filter').JefNode;
// let fi = require('json-easy-filter').JefNode;

// declare var JefNode;

@Component({
selector: 'breadcrumb',
Expand Down Expand Up @@ -71,11 +73,18 @@ export class BreadcrumbComponent implements OnInit {
let e;
let g;

const b = new fi(res).filter((node) => {
if (node.has('name') && this.formatted(node.value.name) === this.cat) {
return node.pathArray;
// const b = new JefNode(res).filter((node) => {
// if (node.has('name') && this.formatted(node.value.name) === this.cat) {
// return node.pathArray;
// }
// });

console.log("res", res);
const b = res.filter((v) => {
if (v.has('name') && this.formatted(v.value.name) === this.cat) {
return v.pathArray;
}
});
})

for (let i = 0; i < b.length; i++) {
c.push(b[i]);
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
import { Injectable } from "@angular/core";

// CMS
let Prismic = require('prismic-javascript');
// let Prismic = require('prismic-javascript');
// declare var Prismic;
let api = 'https://grceri.cdn.prismic.io/api/v2';
import * as prismic from "@prismicio/client";
const Prismic = prismic.default;

// HTML FORMATTER
let PrismicDOM = require('prismic-dom');
// let PrismicDOM = require('prismic-dom');
declare var PrismicDOM;
let Elements = PrismicDOM.RichText.Elements;


Expand Down
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit 3e35b83

Please sign in to comment.