Skip to content

Commit

Permalink
Merge pull request #3 from FernandoCZanchetta/dev
Browse files Browse the repository at this point in the history
Create Github Pages website
  • Loading branch information
FernandoCZanchetta authored May 22, 2024
2 parents e620d11 + 7d156c8 commit d2f4888
Show file tree
Hide file tree
Showing 269 changed files with 30,408 additions and 1 deletion.
16 changes: 16 additions & 0 deletions .browserslistrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# This file is used by the build system to adjust CSS and JS output to support the specified browsers below.
# For additional information regarding the format and rule options, please see:
# https://github.com/browserslist/browserslist#queries

# For the full list of supported browsers by the Angular framework, please see:
# https://angular.io/guide/browser-support

# You can see what browsers were selected by your queries by running:
# npx browserslist

last 1 Chrome version
last 1 Firefox version
last 2 Edge major versions
last 2 Safari major versions
last 2 iOS major versions
Firefox ESR
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
115 changes: 115 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
module.exports = {
extends: ['plugin:@typescript-eslint/recommended', 'eslint:recommended'],
parser: '@typescript-eslint/parser',
parserOptions: {
project: 'tsconfig.json',
sourceType: 'module',
},
root: true,
env: {
node: true,
jest: true,
browser: true,
},
ignorePatterns: [
'.eslintrc.js',
'**/migrations/*',
'*.spec.ts',
'dist/*',
'.angular/*',
'node_modules/*',
'.github/*',
],
rules: {
'@typescript-eslint/interface-name-prefix': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'no-extra-parens': ['error', 'all'],
'no-unreachable-loop': 'error',
semi: ['error', 'never'],
'accessor-pairs': 'error',
'array-callback-return': ['error', { checkForEach: true }],
'block-scoped-var': 'error',
'consistent-return': 'warn',
'class-methods-use-this': 'warn',
curly: 'error',
'default-case': 'warn',
'default-case-last': 'error',
'default-param-last': 'error',
'dot-location': ['error', 'property'],
'dot-notation': 'error',
eqeqeq: 'warn',
'grouped-accessor-pairs': 'warn',
'guard-for-in': 'error',
'max-classes-per-file': 'error',
'no-caller': 'error',
'no-constructor-return': 'error',
'no-else-return': 'error',
'no-empty-function': ['error', { allow: ['constructors'] }],
'no-eq-null': 'error',
'no-eval': 'error',
'no-extra-bind': 'error',
'no-extra-label': 'error',
'no-implicit-coercion': ['error', { allow: ['!!', '+'] }],
'no-invalid-this': 'error',
'no-iterator': 'error',
'no-implicit-globals': 'error',
'no-implied-eval': 'error',
'no-use-before-define': 'error',
'vars-on-top': 'error',
'require-await': 'error',
'prefer-regex-literals': 'error',
'prefer-named-capture-group': 'warn',
'no-with': 'error',
'no-void': 'error',
'no-useless-return': 'error',
'no-useless-concat': 'error',
'no-unused-vars': ['off', { vars: 'local', args: 'none' }],
'no-unused-expressions': ['error', { allowShortCircuit: true, allowTernary: true }],
'block-spacing': 'error',
'brace-style': ['error', '1tbs', { allowSingleLine: true }],
camelcase: ['error', { ignoreGlobals: true }],
'function-paren-newline': ['error', 'consistent'],
'function-call-argument-newline': ['error', 'consistent'],
'func-style': ['error', 'declaration', { allowArrowFunctions: true }],
'func-call-spacing': 'error',
'eol-last': 'error',
'comma-style': 'error',
'comma-spacing': 'error',
'comma-dangle': ['error', 'always-multiline'],
indent: ['error', 2, { SwitchCase: 1 }],
'jsx-quotes': 'error',
'key-spacing': ['error', { beforeColon: false, afterColon: true }],
'max-len': [
'error',
{
code: 120,
ignoreUrls: true,
ignoreStrings: true,
ignoreRegExpLiterals: true,
},
],
'multiline-ternary': ['error', 'always-multiline'],
'no-lonely-if': 'error',
'no-trailing-spaces': 'error',
'no-unneeded-ternary': 'error',
'prefer-exponentiation-operator': 'error',
'spaced-comment': 'error',
'space-in-parens': 'error',
// 'space-before-function-paren': 'error',
'semi-style': 'error',
'semi-spacing': 'error',
quotes: ['error', 'single', { avoidEscape: true, allowTemplateLiterals: true }],
'quote-props': ['error', 'consistent-as-needed'],
'prefer-arrow-callback': 'error',
'prefer-const': ['error', { destructuring: 'all' }],
'prefer-destructuring': ['error', { object: true, array: false }],
'object-shorthand': 'error',
'no-var': 'error',
'no-useless-rename': 'error',
'no-duplicate-imports': 'error',
'arrow-spacing': 'error',
'arrow-parens': ['error', 'as-needed'],
'arrow-body-style': ['warn', 'as-needed'],
},
}
52 changes: 52 additions & 0 deletions .github/workflows/dev-ci_cd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: Devlopment Environment CI/CD

on:
push:
branches:
- dev

jobs:
lint_dev:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12.x, 14.x, 16.x]

steps:
- uses: actions/checkout@v2

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'

- run: npm ci
- run: npm run lint

deploy_dev:
runs-on: ubuntu-latest
needs: lint_dev

steps:
- name: 🚚 Get latest code
uses: actions/checkout@v2

- name: Use Node.js 16
uses: actions/setup-node@v2
with:
node-version: '16'

- name: 🔨 Build Project
run: |
npm ci
npm run build
- name: 📂 Sync files
uses: SamKirkland/[email protected]
with:
server: ${{ secrets.ftp_dev_host }}
username: ${{ secrets.ftp_dev_username }}
password: ${{ secrets.ftp_dev_password }}
local-dir: ./dist/site/
server-dir: /public_html/
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -128,3 +128,6 @@ dist
.yarn/build-state.yml
.yarn/install-state.gz
.pnp.*

# Angular files
.angular
4 changes: 4 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.angular/*
.github/*
node_modules/*
dist/*
15 changes: 15 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"arrowParens": "avoid",
"bracketSameLine": false,
"bracketSpacing": true,
"jsxSingleQuote": true,
"printWidth": 90,
"proseWrap": "never",
"quoteProps": "as-needed",
"semi": false,
"singleQuote": true,
"tabWidth": 2,
"trailingComma": "es5",
"useTabs": false,
"vueIndentScriptAndStyle": true
}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
# SEL0373
# SEL0373
101 changes: 101 additions & 0 deletions angular.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
{
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
"version": 1,
"newProjectRoot": "projects",
"projects": {
"site": {
"projectType": "application",
"schematics": {
"@schematics/angular:component": {
"style": "scss"
},
"@schematics/angular:application": {
"strict": true
}
},
"root": "",
"sourceRoot": "src",
"prefix": "app",
"architect": {
"build": {
"builder": "@angular-devkit/build-angular:browser",
"options": {
"outputPath": "dist/site",
"index": "src/index.html",
"main": "src/main.ts",
"polyfills": "src/polyfills.ts",
"tsConfig": "tsconfig.app.json",
"inlineStyleLanguage": "scss",
"assets": ["src/favicon.ico", "src/assets"],
"styles": ["src/styles.scss"],
"scripts": ["node_modules/bootstrap/dist/js/bootstrap.min.js"]
},
"configurations": {
"production": {
"budgets": [
{
"type": "initial",
"maximumWarning": "2.5mb",
"maximumError": "5mb"
},
{
"type": "anyComponentStyle",
"maximumWarning": "200kb",
"maximumError": "300kb"
}
],
"fileReplacements": [
{
"replace": "src/environments/environment.ts",
"with": "src/environments/environment.prod.ts"
}
],
"outputHashing": "all"
},
"development": {
"buildOptimizer": false,
"optimization": false,
"vendorChunk": true,
"extractLicenses": false,
"sourceMap": true,
"namedChunks": true
}
},
"defaultConfiguration": "production"
},
"serve": {
"builder": "@angular-devkit/build-angular:dev-server",
"configurations": {
"production": {
"browserTarget": "site:build:production"
},
"development": {
"browserTarget": "site:build:development"
}
},
"defaultConfiguration": "development"
},
"extract-i18n": {
"builder": "@angular-devkit/build-angular:extract-i18n",
"options": {
"browserTarget": "site:build"
}
},
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
"main": "src/test.ts",
"polyfills": "src/polyfills.ts",
"tsConfig": "tsconfig.spec.json",
"karmaConfig": "karma.conf.js",
"inlineStyleLanguage": "scss",
"assets": ["src/favicon.ico", "src/assets"],
"styles": ["src/styles.scss"],
"scripts": ["node_modules/bootstrap/dist/js/bootstrap.min.js"]
}
}
}
}
},
"defaultProject": "site"
}
Binary file added npm-matrix.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit d2f4888

Please sign in to comment.