Skip to content

Commit

Permalink
Merge pull request #54 from peruanosdev/migration-to-spa
Browse files Browse the repository at this point in the history
Migration to spa
  • Loading branch information
lperezp committed Apr 19, 2024
2 parents dac35ac + ebc6bf4 commit 2b760a1
Show file tree
Hide file tree
Showing 70 changed files with 13,922 additions and 978 deletions.
16 changes: 16 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Editor configuration, see https://editorconfig.org
root = true

[*]
charset = utf-8
indent_style = space
indent_size = 2
insert_final_newline = true
trim_trailing_whitespace = true

[*.ts]
quote_type = single

[*.md]
max_line_length = off
trim_trailing_whitespace = false
20 changes: 0 additions & 20 deletions .github/workflows/jekyll.yml

This file was deleted.

30 changes: 30 additions & 0 deletions .github/workflows/workflow-angular.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Build and Deploy
on:
push:
branches: ["master"]
pull_request:
branches: ["master"]

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup nodejs
uses: actions/setup-node@v3.7.0
with:
node-version: "20"
- name: Install deps
run: npm i
- name: Build app bundle
run: npm run build:prod
- name: Rename index for routing
run: mv dist/peruanos.github.io/browser/index.html dist/peruanos.github.io/browser/404.html
# Deploy to Github pages
- name: Deploy to Pages
uses: crazy-max/ghaction-github-pages@v3.1.0
with:
build_dir: dist/peruanos.github.io/browser/
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
54 changes: 41 additions & 13 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,14 +1,42 @@
_site
.sass-cache
.jekyll-metadata
.jekyll-cache
.DS_Store
._site
.Gemfile.lock
Gemfile.lock
#IntelliJ files
*.iml
# See http://help.github.com/ignore-files/ for more about ignoring files.

# Compiled output
/dist
/tmp
/out-tsc
/bazel-out

# Node
/node_modules
npm-debug.log
yarn-error.log

# IDEs and editors
.idea/
_data/events.json
_data/info.json
.jekyll-cache
.project
.classpath
.c9/
*.launch
.settings/
*.sublime-workspace

# Visual Studio Code
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
.history/*

# Miscellaneous
/.angular/cache
.sass-cache/
/connect.lock
/coverage
/libpeerconnection.log
testem.log
/typings

# System files
.DS_Store
Thumbs.db
4 changes: 4 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=827846
"recommendations": ["angular.ng-template"]
}
20 changes: 20 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "ng serve",
"type": "chrome",
"request": "launch",
"preLaunchTask": "npm: start",
"url": "http://localhost:4200/"
},
{
"name": "ng test",
"type": "chrome",
"request": "launch",
"preLaunchTask": "npm: test",
"url": "http://localhost:9876/debug.html"
}
]
}
42 changes: 42 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
// For more information, visit: https://go.microsoft.com/fwlink/?LinkId=733558
"version": "2.0.0",
"tasks": [
{
"type": "npm",
"script": "start",
"isBackground": true,
"problemMatcher": {
"owner": "typescript",
"pattern": "$tsc",
"background": {
"activeOnStart": true,
"beginsPattern": {
"regexp": "(.*?)"
},
"endsPattern": {
"regexp": "bundle generation complete"
}
}
}
},
{
"type": "npm",
"script": "test",
"isBackground": true,
"problemMatcher": {
"owner": "typescript",
"pattern": "$tsc",
"background": {
"activeOnStart": true,
"beginsPattern": {
"regexp": "(.*?)"
},
"endsPattern": {
"regexp": "bundle generation complete"
}
}
}
}
]
}
13 changes: 0 additions & 13 deletions Gemfile

This file was deleted.

17 changes: 0 additions & 17 deletions LICENSE

This file was deleted.

14 changes: 0 additions & 14 deletions Rakefile

This file was deleted.

11 changes: 5 additions & 6 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,13 @@

¡Hola!. Estamos creando un directorio con todas las comunidades de tecnología en el Perú.

Si no encuentras tu comunidad, puedes agregarla desde [aquí](https://github.com/peruanosdev/peruanos.github.io/edit/master/_data/communities.json).
Si no encuentras tu comunidad, puedes agregarla desde [aquí](https://github.com/peruanosdev/peruanos.github.io/edit/master/_data/communities.ts).

## Configuración Local (Modo Desarrollo)

Para levantar la aplicación localmemte sigue los siguientes pasos:

1. Asegúrate de tener instalado Ruby
2. Instala las dependencias: `bundle install`
3. Obtener datos: `rake prepare`
4. Empezar la app: `bundle exec jekyll serve`
5. Ir a la [app](http://127.0.0.1:4000)
1. Asegúrate de tener instalado npm
2. Instala las dependencias: `npm install`
3. Empezar la app: `npm run start`
4. Ir a la [app](http://localhost:4200/)
9 changes: 0 additions & 9 deletions _config.yml

This file was deleted.

Loading

0 comments on commit 2b760a1

Please sign in to comment.