Skip to content

Instantly share code, notes, and snippets.

View brian-lim-42's full-sized avatar
πŸ‘¨β€πŸ’»
Making the next great thing...

Brian Lim brian-lim-42

πŸ‘¨β€πŸ’»
Making the next great thing...
View GitHub Profile
import { createMigrationHistory, updateMigrationHistory, setMigrationResult } from './mutation';
import { CustomContext } from '../../../types';
import MigrationService from '../../../core/service/migration/migrationService';
jest.mock('../../../core/service/migration/migrationService');
const mockContext: CustomContext = {
injector: {
get: jest.fn().mockReturnValue(new MigrationService()),
},
{
"migrationParams": {
"migrationId": "0",
"bulkImportEntityStatuses": {
"attachment": {
"importDate": "",
"result":null,
"status": "SUCCESSFUL",
},
"checklist": {
#
# nginx simple Dockerfile
#
# Pull base image.
FROM ubuntu
# Install Nginx.
RUN \
Overall Comments
* Difficult to understand logic
* Magic numbers
* Consider rewriting with functional programming and not object oriented
Line by Line
import { makeVar } from '@apollo/client';
// could strongly type here
// leaving it dynamic for general use
type Store = { [key: string]: any }
const store: Store = {}
export const add = (key: string) => {
store[key] = makeVar(key);
1. [Build](#build)
1.1 [Build Images](#base-images)
1.1.1 [Current Base Images](#current-base-images)
1.2 [Special Folders](#special-folders)
1.3 [Build Manually](#build-manually)
1.3.1 [Infrastructure](#infrastructure)
1.3.2 [Services](#services)
1.4 [Current Services](#current-services)
1.4.1 [Adding a new service](#adding-a-new-service)
1.5 [Build Process Overview](#overview-of-build-process)
@import 'styles/variables/variables';
@import 'src/features/navigation/navigation.var';
.card {
&__container {
height: calc(100% - 3rem);
.card {
display: flex;
flex-direction: column;
@brian-lim-42
brian-lim-42 / webpack.config.prod.js
Created July 5, 2018 14:42
Webpack from create-react-app ejected 2018-05-07
'use strict';
const autoprefixer = require('autoprefixer');
const path = require('path');
const webpack = require('webpack');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const UglifyJsPlugin = require('uglifyjs-webpack-plugin');
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
const OptimizeCSSAssetsPlugin = require('optimize-css-assets-webpack-plugin');
const ManifestPlugin = require('webpack-manifest-plugin');
@brian-lim-42
brian-lim-42 / Gruntfile.js
Created May 21, 2017 23:12
Portion of working Gruntfile.js
grunt.initConfig({
babel: {
options: {
sourceMap: false,
presets: ['es2015']
},
core: {
files: [{ expand: true, cwd: './', src: ['main.js', 'js/**/*.js'], dest: 'dist/'}]
},
var app = app || {};
var app.engine = app.engine || {};
var app.engine.renderer = app.engine.renderer || {};