activeprospect / generator-leadconduit-integration Goto Github PK
View Code? Open in Web Editor NEWA Yeoman generator for LeadConduit integrations
A Yeoman generator for LeadConduit integrations
The LeadConduit handler is adding support for a validate()
function on an integration, to verify essential data is present before making the request (e.g., Telesign shouldn't be called if there's no phone number). An example of this should be added to generated outbound code.
Here are the steps to duplicate the issue:
module.js:340
throw err;
^
Error: Cannot find module 'leadconduit-fields'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object. (/Users/ap/Documents/leadconduit-integration-requestBin/spec/outbound-spec.coffee:2:10)
at Object. (/Users/ap/Documents/leadconduit-integration-requestBin/spec/outbound-spec.coffee:1:1)
at Module._compile (module.js:456:26)
at Object.loadFile (/Users/ap/Documents/leadconduit-integration-requestBin/node_modules/coffee-script/lib/coffee-script/register.js:16:19)
at Module.load (/Users/ap/Documents/leadconduit-integration-requestBin/node_modules/coffee-script/lib/coffee-script/register.js:45:36)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at /Users/ap/Documents/leadconduit-integration-requestBin/node_modules/mocha/lib/mocha.js:184:27
at Array.forEach (native)
at Mocha.loadFiles (/Users/ap/Documents/leadconduit-integration-requestBin/node_modules/mocha/lib/mocha.js:181:14)
at Mocha.run (/Users/ap/Documents/leadconduit-integration-requestBin/node_modules/mocha/lib/mocha.js:393:31)
at Object. (/Users/ap/Documents/leadconduit-integration-requestBin/node_modules/mocha/bin/_mocha:380:16)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Function.Module.runMain (module.js:497:10)
at startup (node.js:119:16)
at node.js:906:3
// regex for either "git://github.com/(user)/(repo).git ..." or "[email protected]:(user)/(repo).git ..."
var match = githubRepoUrl.match(/git[@:]/*github.com://([a-z0-9-_.]+).git/i);
Here is a regular expression that will parse either git://github.com/(user)/(repo).gitor
[email protected]:(user)/(repo).git from the variable githubRepoUrl:
([email protected]:[a-z0-9-.]+/[a-z0-9-.]+.git)|(git://github.com/[a-z0-9-.]+/[a-z0-9-.]+.git)
it seems that often when I build an integration, I'm looking for ways to parse integers and prices and etc in a way that doesn't break or return NaN. seems like we might be able to build a standard helper file to help guide newbies and oldbies alike.
The generated package.json
has the following reference, but no index.js
is created.
"main": "index.js",
Here are the steps for recreating the error:
After hitting enter, the following error is visible in my terminal:
/usr/local/lib/node_modules/yo/node_modules/yeoman-environment/node_modules/inquirer/node_modules/rx/dist/rx.all.js:8913
throw e;
^
TypeError: Cannot read property '1' of null
at yeoman.generators.Base.extend._processAnswers (/usr/local/lib/node_modules/generator-leadconduit-integration/app/index.js:275:30)
at PromptUI.completed (/usr/local/lib/node_modules/generator-leadconduit-integration/app/index.js:215:14)
at PromptUI.onCompletion (/usr/local/lib/node_modules/yo/node_modules/yeoman-environment/node_modules/inquirer/lib/ui/prompt.js:69:10)
at AnonymousObserver.Rx.AnonymousObserver.AnonymousObserver.completed (/usr/local/lib/node_modules/yo/node_modules/yeoman-environment/node_modules/inquirer/node_modules/rx/dist/rx.all.js:1761:12)
at AnonymousObserver.Rx.internals.AbstractObserver.AbstractObserver.onCompleted (/usr/local/lib/node_modules/yo/node_modules/yeoman-environment/node_modules/inquirer/node_modules/rx/dist/rx.all.js:1698:14)
at AutoDetachObserverPrototype.completed (/usr/local/lib/node_modules/yo/node_modules/yeoman-environment/node_modules/inquirer/node_modules/rx/dist/rx.all.js:8933:31)
at%
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.