Skip to content

Instantly share code, notes, and snippets.


Anartz Mugika Ledo mugan86

Block or report user

Report or block mugan86

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
mugan86 / angular.json
Created Nov 10, 2019
Especificamos el path de salida de producción
View angular.json
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
"version": 1,
"newProjectRoot": "projects",
"projects": {
"f1-graphql-ng-challenge": {
"projectType": "application",
"architect": {
"build": {
View deploy-log.txt
anartzmugika@iMac-de-Anartz f1-ng-graphql-challenge % firebase deploy
=== Deploying to 'f1-ng-app-graphql-course'...
i deploying hosting
i hosting[f1-ng-app-graphql-course]: beginning deploy...
i hosting[f1-ng-app-graphql-course]: found 20 files in dist
✔ hosting[f1-ng-app-graphql-course]: file upload complete
i hosting[f1-ng-app-graphql-course]: finalizing version...
✔ hosting[f1-ng-app-graphql-course]: version finalized
mugan86 / firebase.json
Created Nov 10, 2019
Firebase Configuration
View firebase.json
"hosting": {
"public": "dist",
"ignore": [
mugan86 / .firebaserc
Created Nov 10, 2019
Configuración de proyecto firebase
View .firebaserc
"projects": {
"default": "f1-ng-app-graphql-course"
mugan86 / prod-app-log.txt
Created Nov 10, 2019
Log de la aplicación Angular en producción
View prod-app-log.txt
anartzmugika@iMac-de-Anartz f1-ng-graphql-challenge % npm run prod
> f1-graphql-ng-challenge@0.0.0 prod /Users/anartzmugika/Documentos/graphql-course/training/f1-ng-graphql-challenge
> ng build --prod --base-href "./"
Generating ES5 bundles for differential loading...
ES5 bundle generation complete.
chunk {0} runtime-es2015.a63ec4ec8ceaf6467f68.js (runtime) 2.31 kB [entry] [rendered]
chunk {0} runtime-es5.a63ec4ec8ceaf6467f68.js (runtime) 2.31 kB [entry] [rendered]
mugan86 / package.json
Created Nov 10, 2019
Script para producción
View package.json
"name": "f1-graphql-ng-challenge",
"version": "0.0.0",
"scripts": {
"ng": "ng",
"start": "ng serve",
"build": "ng build",
"test": "ng test",
"lint": "ng lint",
"e2e": "ng e2e",
mugan86 / firebase-tools.log.txt
Created Nov 10, 2019
Log para instalar firebase tools
View firebase-tools.log.txt
anartzmugika@iMac-de-Anartz f1-ng-graphql-challenge % sudo npm install -g firebase-tools
/usr/local/bin/firebase -> /usr/local/lib/node_modules/firebase-tools/lib/bin/firebase.js
+ firebase-tools@7.7.0
added 420 packages from 256 contributors in 34.208s
mugan86 / index.js
Last active Nov 8, 2019
Fichero de inicio probando el componente React que hemos usado como librería
View index.js
import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import { Hello } from 'medium-react-lib';
import * as serviceWorker from './serviceWorker';
ReactDOM.render(<Hello name="Anartz" />, document.getElementById('root'));
// If you want your app to work offline and load faster, you can change
// unregister() to register() below. Note this comes with some pitfalls.
// Learn more about service workers:
View package.json
"main": "build/index.js",
"types": "build/index.d.ts",
"scripts": {
"build": "npx tsc -p ."
mugan86 / index.tsx
Created Nov 8, 2019
Componente React
View index.tsx
import React from 'react';
export const Hello: React.FC<{ name: String }> = ({name}) => {
if (!name) {
name = 'Mundo';
return (<h1>¡¡Hola {name}!!</h1>)
You can’t perform that action at this time.