Skip to content

Instantly share code, notes, and snippets.

View Alanch8's full-sized avatar
🗻
Focusing

Aitor Lancharro Alanch8

🗻
Focusing
View GitHub Profile
@Alanch8
Alanch8 / lottie-module.ts
Last active May 8, 2023 17:20
lottie-module.ts
import { NgModule } from '@angular/core';
import { LottieModule } from 'ngx-lottie';
import player from 'lottie-web';
// Note we need a separate function as it's required
// by the AOT compiler.
export function playerFactory() {
return player;
}
@Alanch8
Alanch8 / lottie.bash
Last active May 8, 2023 17:12
lottie.md
npm i lottie-web ngx-lottie
#!/bin/bash
if [[ $VERCEL_GIT_COMMIT_REF == "main" ]] ; then
echo "This is our main branch"
npm run build
else
echo "This is not our main branch"
npm run build:development
fi
{
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
"version": 1,
"newProjectRoot": "projects",
"projects": {
"fifa-players": {
"projectType": "application",
"schematics": {
"@schematics/angular:component": {
"style": "scss"
export const environment = {
production: false,
name:'',
code: 0
};
export const environment = {
production: false,
name:'development environment',
code: 1003
};
export const environment = {
production: false,
name:'',
code: 0
};
ng generate environments
# Compiled output
/dist
/tmp
/out-tsc
/bazel-out
# Node
/node_modules
npm-debug.log
yarn-error.log
{
"version": "0.2.0",
"configurations": [
{
"name": "ng serve",
"type": "chrome",
"request": "launch",
"preLaunchTask": "npm: start",
"url": "http://localhost:4200/",
"webRoot": "${workspaceFolder}",