Coder Social home page Coder Social logo

nerdybeast / simple-vf-cli Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 3.45 MB

WIP - Simple command line utility for building Visualforce pages using your favorite local front-end build system.

JavaScript 3.37% TypeScript 96.63%
wip salesforce visualforce cli nodejs

simple-vf-cli's People

Contributors

nerdybeast avatar

Stargazers

 avatar

Watchers

 avatar  avatar

simple-vf-cli's Issues

Visualforce page has too much noise

Need to reduce the footprint of the visualforce page as well as remove the <link> tags from within an output panel because the page is being rendered before those styles are being applied.

TypeError: An exception has occurred

View details in Rollbar: https://rollbar.com/simple-vf-cli/development/items/10/


TypeError: cli.askOrgSelection is not a function
  File "C:\projects\simple-vf\simple-vf-cli\dist\flow.js", line 165, in <unknown>
  File "<anonymous>", line unknown, in Generator.next
  File "C:\projects\simple-vf\simple-vf-cli\dist\flow.js", line 7, in <unknown>
  File "<anonymous>", line unknown, in new Promise
  File "C:\projects\simple-vf\simple-vf-cli\dist\flow.js", line 3, in __awaiter
  File "C:\projects\simple-vf\simple-vf-cli\dist\flow.js", line 160, in _resolveOrgName
  File "C:\projects\simple-vf\simple-vf-cli\dist\flow.js", line 33, in Command.<anonymous>
  File "<anonymous>", line unknown, in Generator.next
  File "C:\projects\simple-vf\simple-vf-cli\dist\flow.js", line 7, in <unknown>
  File "<anonymous>", line unknown, in new Promise

Need to cleanup created objects if calling the new command fails

Things like the controller and static resource are still living in Salesforce when the new command is called and then fails half way through. These objects need to be cleaned up (in the exact reverse order that they were created) because Salesforce doesn't allow you to delete objects that are dependencies for another part of the system.

INVALID_SESSION_ID: An exception has occurred

View details in Rollbar: https://rollbar.com/simple-vf-cli/development/items/3/


INVALID_SESSION_ID: Session expired or invalid
  File "C:\projects\simple-vf\plugins\ember-cli\node_modules\jsforce\lib\http-api.js", line 250, in HttpApi.getError
  File "C:\projects\simple-vf\plugins\ember-cli\node_modules\jsforce\lib\http-api.js", line 95, in <unknown>
  File "C:\projects\simple-vf\plugins\ember-cli\node_modules\promise\lib\core.js", line 37, in tryCallOne
  File "C:\projects\simple-vf\plugins\ember-cli\node_modules\promise\lib\core.js", line 123, in <unknown>
  File "C:\projects\simple-vf\plugins\ember-cli\node_modules\asap\raw.js", line 50, in flush
  File "internal/process/next_tick.js", line 73, in _combinedTickCallback
  File "internal/process/next_tick.js", line 104, in process._tickCallback

Error: An exception has occurred

View details in Rollbar: https://rollbar.com/simple-vf-cli/development/items/6/


Error: Error: The module '\\?\C:\projects\simple-vf\simple-vf-cli\node_modules\leveldown\build\Release\leveldown.node'
was compiled against a different Node.js version using
NODE_MODULE_VERSION 48. This version of Node.js requires
NODE_MODULE_VERSION 57. Please try re-compiling or re-installing
the module (for instance, using `npm rebuild` or `npm install`).: unable to import leveldown
  File "C:\projects\simple-vf\simple-vf-cli\dist\db.js", line 122, in <unknown>
  File "<anonymous>", line unknown, in Generator.next
  File "C:\projects\simple-vf\simple-vf-cli\dist\db.js", line 7, in <unknown>
  File "<anonymous>", line unknown, in new Promise
  File "C:\projects\simple-vf\simple-vf-cli\dist\db.js", line 3, in __awaiter
  File "C:\projects\simple-vf\simple-vf-cli\dist\db.js", line 120, in processError
  File "C:\projects\simple-vf\simple-vf-cli\dist\db.js", line 39, in PouchDB$5.<anonymous>
  File "<anonymous>", line unknown, in Generator.throw
  File "C:\projects\simple-vf\simple-vf-cli\dist\db.js", line 5, in rejected
  File "<anonymous>", line unknown, in <unknown>

Error: An exception has occurred

View details in Rollbar: https://rollbar.com/simple-vf-cli/development/items/11/


Error: function appSettingsLocation() {
    let homeDir = os.homedir();
    let platform = os.platform();
    let appName = 'simple-vf-cli';
    let dbPath = '';
    switch (platform) {
        case 'win32':
            dbPath = `AppData/Local/${appName}`;
            break;
        case 'darwin':
            dbPath = `Library/Preferences/${appName}`;
            break;
        default:
            dbPath = `.${appName}`;
            break;
    }
    return path_1.join(homeDir, dbPath);
}/plugins contains invalid WIN32 path characters.
  File "C:\projects\simple-vf\simple-vf-cli\node_modules\fs-extra\lib\mkdirs\mkdirs.js", line 18, in Object.mkdirs
  File "C:\projects\simple-vf\simple-vf-cli\node_modules\universalify\index.js", line 5, in Object.mkdirs
  File "C:\projects\simple-vf\simple-vf-cli\node_modules\fs-extra\lib\json\output-json.js", line 20, in pathExists
  File "C:\projects\simple-vf\simple-vf-cli\node_modules\universalify\index.js", line 23, in fn.apply.then.r
  File "<anonymous>", line unknown, in <unknown>

TypeError: An exception has occurred

View details in Rollbar: https://rollbar.com/simple-vf-cli/development/items/7/


TypeError: Cannot read property 'orgName' of undefined
  File "c:\projects\simple-vf\simple-vf-cli\dist\cli.js", line 31, in <unknown>
  File "<anonymous>", line unknown, in Generator.next
  File "c:\projects\simple-vf\simple-vf-cli\dist\cli.js", line 4, in fulfilled
  File "<anonymous>", line unknown, in <unknown>
  File "internal/process/next_tick.js", line 188, in process._tickCallback

DatabaseError: An exception has occurred

View details in Rollbar: https://rollbar.com/simple-vf-cli/development/items/15/


DatabaseError: Can't Load Database
  File "C:\projects\simple-vf\simple-vf-cli\node_modules\node-json-db\dist\JsonDB.js", line 335, in JsonDB.load
  File "C:\projects\simple-vf\simple-vf-cli\node_modules\node-json-db\dist\JsonDB.js", line 78, in JsonDB.retrieveData
  File "C:\projects\simple-vf\simple-vf-cli\node_modules\node-json-db\dist\JsonDB.js", line 159, in JsonDB.getData
  File "C:\projects\simple-vf\simple-vf-cli\lib\JsonDB.ts", line 73, in OrgRepository.getData
  File "C:\projects\simple-vf\simple-vf-cli\lib\JsonDB.ts", line 54, in OrgRepository.findAll
  File "C:\projects\simple-vf\simple-vf-cli\lib\cli\get-org-selection.ts", line 16, in Object.default_1 [as askOrgSelection]
  File "C:\projects\simple-vf\simple-vf-cli\lib\flow.ts", line 185, in _resolveOrgName
  File "C:\projects\simple-vf\simple-vf-cli\lib\flow.ts", line 28, in Command.auth
  File "C:\projects\simple-vf\simple-vf-cli\node_modules\commander\index.js", line 300, in Command.listener
  File "events.js", line 189, in Command.emit

Error: An exception has occurred

View details in Rollbar: https://rollbar.com/simple-vf-cli/development/items/12/


Error: Error: The module '\\?\C:\projects\simple-vf\simple-vf-cli\node_modules\leveldown\build\Release\leveldown.node'
was compiled against a different Node.js version using
NODE_MODULE_VERSION 57. This version of Node.js requires
NODE_MODULE_VERSION 64. Please try re-compiling or re-installing
the module (for instance, using `npm rebuild` or `npm install`).: unable to import leveldown
  File "C:\projects\simple-vf\simple-vf-cli\dist\db.js", line 122, in <unknown>
  File "<anonymous>", line unknown, in Generator.next
  File "C:\projects\simple-vf\simple-vf-cli\dist\db.js", line 7, in <unknown>
  File "<anonymous>", line unknown, in new Promise
  File "C:\projects\simple-vf\simple-vf-cli\dist\db.js", line 3, in __awaiter
  File "C:\projects\simple-vf\simple-vf-cli\dist\db.js", line 120, in processError
  File "C:\projects\simple-vf\simple-vf-cli\dist\db.js", line 97, in PouchDB$5.<anonymous>
  File "<anonymous>", line unknown, in Generator.throw
  File "C:\projects\simple-vf\simple-vf-cli\dist\db.js", line 5, in rejected
  File "internal/process/next_tick.js", line 68, in process._tickCallback

Error: An exception has occurred

View details in Rollbar: https://rollbar.com/simple-vf-cli/development/items/14/


Error: Error: The module '\\?\C:\projects\simple-vf\simple-vf-cli\node_modules\leveldown\build\Release\leveldown.node'
was compiled against a different Node.js version using
NODE_MODULE_VERSION 57. This version of Node.js requires
NODE_MODULE_VERSION 64. Please try re-compiling or re-installing
the module (for instance, using `npm rebuild` or `npm install`).: unable to import leveldown
  File "C:\projects\simple-vf\simple-vf-cli\node_modules\pouchdb\lib\index.js", line 6200, in requireLeveldown
  File "C:\projects\simple-vf\simple-vf-cli\node_modules\pouchdb\lib\index.js", line 6400, in PouchDB$5.LevelDownPouch
  File "C:\projects\simple-vf\simple-vf-cli\node_modules\pouchdb\lib\index.js", line 2682, in new PouchDB$5
  File "C:\projects\simple-vf\simple-vf-cli\dist\db.js", line 133, in Object.<anonymous>
  File "internal/modules/cjs/loader.js", line 689, in Module._compile
  File "internal/modules/cjs/loader.js", line 700, in Object.Module._extensions..js
  File "internal/modules/cjs/loader.js", line 599, in Module.load
  File "internal/modules/cjs/loader.js", line 538, in tryModuleLoad
  File "internal/modules/cjs/loader.js", line 530, in Function.Module._load
  File "internal/modules/cjs/loader.js", line 637, in Module.require

Error: An exception has occurred

View details in Rollbar: https://rollbar.com/simple-vf-cli/development/items/19/


Error: Error: Could not locate the bindings file. Tried:
 → C:\projects\simple-vf\simple-vf-cli\node_modules\leveldown\build\leveldown.node
 → C:\projects\simple-vf\simple-vf-cli\node_modules\leveldown\build\Debug\leveldown.node
 → C:\projects\simple-vf\simple-vf-cli\node_modules\leveldown\build\Release\leveldown.node
 → C:\projects\simple-vf\simple-vf-cli\node_modules\leveldown\out\Debug\leveldown.node
 → C:\projects\simple-vf\simple-vf-cli\node_modules\leveldown\Debug\leveldown.node
 → C:\projects\simple-vf\simple-vf-cli\node_modules\leveldown\out\Release\leveldown.node
 → C:\projects\simple-vf\simple-vf-cli\node_modules\leveldown\Release\leveldown.node
 → C:\projects\simple-vf\simple-vf-cli\node_modules\leveldown\build\default\leveldown.node
 → C:\projects\simple-vf\simple-vf-cli\node_modules\leveldown\compiled\10.15.1\win32\x64\leveldown.node: unable to import leveldown
  File "C:\projects\simple-vf\simple-vf-cli\dist\db.js", line 101, in processError
  File "C:\projects\simple-vf\simple-vf-cli\dist\db.js", line 68, in PouchDB$5.getEncryptionKey
  File "internal/process/next_tick.js", line 68, in process._tickCallback

Error: An exception has occurred

View details in Rollbar: https://rollbar.com/simple-vf-cli/development/items/18/


Error: Error: Could not locate the bindings file. Tried:
 → C:\projects\simple-vf\simple-vf-cli\node_modules\leveldown\build\leveldown.node
 → C:\projects\simple-vf\simple-vf-cli\node_modules\leveldown\build\Debug\leveldown.node
 → C:\projects\simple-vf\simple-vf-cli\node_modules\leveldown\build\Release\leveldown.node
 → C:\projects\simple-vf\simple-vf-cli\node_modules\leveldown\out\Debug\leveldown.node
 → C:\projects\simple-vf\simple-vf-cli\node_modules\leveldown\Debug\leveldown.node
 → C:\projects\simple-vf\simple-vf-cli\node_modules\leveldown\out\Release\leveldown.node
 → C:\projects\simple-vf\simple-vf-cli\node_modules\leveldown\Release\leveldown.node
 → C:\projects\simple-vf\simple-vf-cli\node_modules\leveldown\build\default\leveldown.node
 → C:\projects\simple-vf\simple-vf-cli\node_modules\leveldown\compiled\10.15.1\win32\x64\leveldown.node: unable to import leveldown
  File "C:\projects\simple-vf\simple-vf-cli\dist\db.js", line 101, in processError
  File "C:\projects\simple-vf\simple-vf-cli\dist\db.js", line 29, in PouchDB$5.getWithDefault

Error: An exception has occurred

View details in Rollbar: https://rollbar.com/simple-vf-cli/development/items/20/


Error: Error: Could not locate the bindings file. Tried:
 → C:\projects\simple-vf\simple-vf-cli\node_modules\leveldown\build\leveldown.node
 → C:\projects\simple-vf\simple-vf-cli\node_modules\leveldown\build\Debug\leveldown.node
 → C:\projects\simple-vf\simple-vf-cli\node_modules\leveldown\build\Release\leveldown.node
 → C:\projects\simple-vf\simple-vf-cli\node_modules\leveldown\out\Debug\leveldown.node
 → C:\projects\simple-vf\simple-vf-cli\node_modules\leveldown\Debug\leveldown.node
 → C:\projects\simple-vf\simple-vf-cli\node_modules\leveldown\out\Release\leveldown.node
 → C:\projects\simple-vf\simple-vf-cli\node_modules\leveldown\Release\leveldown.node
 → C:\projects\simple-vf\simple-vf-cli\node_modules\leveldown\build\default\leveldown.node
 → C:\projects\simple-vf\simple-vf-cli\node_modules\leveldown\compiled\10.15.1\win32\x64\leveldown.node: unable to import leveldown
  File "C:\projects\simple-vf\simple-vf-cli\dist\db.js", line 101, in processError
  File "C:\projects\simple-vf\simple-vf-cli\dist\db.js", line 29, in PouchDB$5.getWithDefault
  File "internal/process/next_tick.js", line 68, in process._tickCallback
  File "internal/modules/cjs/loader.js", line 745, in Function.Module.runMain
  File "internal/bootstrap/node.js", line 283, in startup
  File "internal/bootstrap/node.js", line 743, in bootstrapNodeJSCore

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.