Skip to content

Instantly share code, notes, and snippets.

View gashcrumb's full-sized avatar

Stan Lewis gashcrumb

View GitHub Profile
@gashcrumb
gashcrumb / storybook-config.patch
Created April 17, 2020 18:30
terser fix for storybook
diff --git a/app/ui-react/packages/.storybook/webpack.config.js b/app/ui-react/packages/.storybook/webpack.config.js
index 17fd6d6c82..e687c11b77 100644
--- a/app/ui-react/packages/.storybook/webpack.config.js
+++ b/app/ui-react/packages/.storybook/webpack.config.js
@@ -1,5 +1,7 @@
const path = require('path');
const TsconfigPathsPlugin = require('tsconfig-paths-webpack-plugin');
+const TerserPlugin = require('terser-webpack-plugin');
+
module.exports = ({ config, mode }) => {
@gashcrumb
gashcrumb / test.patch
Created April 17, 2020 17:00
diff output
diff --git a/app/ui-react/syndesis/src/app/App.test.tsx b/app/ui-react/syndesis/src/app/App.test.tsx
index 301f84f27e..9fca935a80 100644
--- a/app/ui-react/syndesis/src/app/App.test.tsx
+++ b/app/ui-react/syndesis/src/app/App.test.tsx
@@ -1,7 +1,7 @@
import { render, waitForElement } from '@testing-library/react';
import * as React from 'react';
import { MemoryRouter } from 'react-router';
-import { App } from './App';
+// import { App } from './App';
@gashcrumb
gashcrumb / test.patch
Created April 17, 2020 17:00
diff output
diff --git a/app/ui-react/syndesis/src/app/App.test.tsx b/app/ui-react/syndesis/src/app/App.test.tsx
index 301f84f27e..9fca935a80 100644
--- a/app/ui-react/syndesis/src/app/App.test.tsx
+++ b/app/ui-react/syndesis/src/app/App.test.tsx
@@ -1,7 +1,7 @@
import { render, waitForElement } from '@testing-library/react';
import * as React from 'react';
import { MemoryRouter } from 'react-router';
-import { App } from './App';
+// import { App } from './App';
gashcrumb@plucky (master)
~/Source/syndesis/app/ui
] ../../tools/bin/syndesis minishift -p syndesis --local --dev --install
Switched to context "minishift".
=============== WARNING -- Going to delete project syndesis
NAME READY STATUS RESTARTS AGE
pod/syndesis-operator-1-ttr2s 1/1 Running 0 3m
NAME DESIRED CURRENT READY AGE
replicationcontroller/syndesis-operator-1 1 1 1 3m
gashcrumb@plucky (master)
~/Source/syndesis/app/ui
] ../../tools/bin/syndesis minishift --full-reset
Removed cache content at: '/home/gashcrumb/.minishift/cache'
Add-on 'admin-user' enabled
Starting minishift ....
-- Starting profile 'minishift'
-- Check if deprecated options are used ... OK
-- Checking if https://github.com is reachable ... OK
-- Checking if requested OpenShift version 'v3.10.0' is valid ... OK
{
"componentScheme": "salesforce",
"connectorCustomizers": [
"io.syndesis.connector.salesforce.customizer.ForUpdateCustomizer",
"io.syndesis.connector.salesforce.customizer.DataShapeCustomizer"
],
"inputDataShape": {
"kind": "any"
},
"outputDataShape": {
ERROR] Failed to execute goal on project connector-servicenow: Could not resolve dependencies for project io.syndesis.connector:connector-servicenow:jar:1.6-SNAPSHOT: Failed to collect dependencies at org.apache.camel:camel-servicenow:jar:2.21.0.fuse-730029 -> org.apache.cxf:cxf-core:jar:3.2.7.fuse-730009: Failed to read artifact descriptor fororg.apache.cxf:cxf-core:jar:3.2.7.fuse-730009: Could not transfer artifact org.apache.cxf:cxf-core:pom:3.2.7.fuse-730009 from/to jb-fuse-7-brew (http://download.eng.bos.redhat.com/brewroot/repos/jb-fuse-7-maven-build/latest/maven):download.eng.bos.redhat.com: Name or service not known: Unknown host download.eng.bos.redhat.com: Name or service not known -> [Help 1]
] oc logs docker-registry-1-deploy
error: couldn't get deployment docker-registry-1: replicationcontrollers "docker-registry-1" is forbidden: User "system:serviceaccount:default:deployer" cannot get replicationcontrollers in the namespace "default": User "system:serviceaccount:default:deployer" cannot get replicationcontrollers in project "default"
{
"commment":"This config should for testing against a minishift using the syndesis-dev application templates.",
"apiBase": "https://syndesis.10.0.0.136.nip.io",
"apiEndpoint": "/api/v1",
"mapperEndpoint": "/mapper/v1",
"metricsPollingInterval": 5000,
"consoleUrl": "https://10.0.0.136:8443/console",
"project": "syndesis",
"branding": {
"logoWhiteBg": "assets/images/syndesis-logo-svg-white.svg",
ERROR in : Unexpected value 'NotificationModule in /mnt/d/Users/gashcrumb/Source/syndesis/app/ui/node_modules/patternfly-ng/index.d.ts' imported by the module 'VendorModule in /mnt/d/Users/gashcrumb/Source/syndesis/app/ui/src/app/vendor/vendor.module.ts'. Please add a @NgModule annotation.
src/app/vendor/vendor.module.ts(17,3): error TS2305: Module '"/mnt/d/Users/gashcrumb/Source/syndesis/app/ui/node_modules/patternfly-ng/index"' has no exported member 'NotificationModule'.
src/app/app.module.ts(7,10): error TS2305: Module '"/mnt/d/Users/gashcrumb/Source/syndesis/app/ui/node_modules/patternfly-ng/index"' has no exported member 'NotificationModule'.
src/app/app.component.spec.ts(6,10): error TS2305: Module '"/mnt/d/Users/gashcrumb/Source/syndesis/app/ui/node_modules/patternfly-ng/index"' has no exported member 'NotificationModule'.
src/app/connections/list/list.component.spec.ts(9,10): error TS2305: Module '"/mnt/d/Users/gashcrumb/Source/syndesis/app/ui/node_modules/patternfly-ng/index"' has no exported member