Git Product home page Git Product logo

bad-ass-salesforce-stack's People

Contributors

chuckjonas avatar omniphx avatar ralphcallaway avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

bad-ass-salesforce-stack's Issues

Optimize Production build

Currently production build is using the same settings as dev environment. Should probably optimize react and potentially source maps?

add CI

could run both local typescript tests as well as any SF unit tests with SFDX

create script to rename app

Currently the page & static resource are defaulted to App. If you want to rename this you manually need to update the build-scripts & the force-app meta-data. Would be nice if there was a script to do this to make it less error prone.

__ACCESSTOKEN__ is not private

Hi guys, I base on this project to mount my react app directly inside of the VF page. But the problem is that I need to add the

    <script type="text/javascript">
            const __ACCESSTOKEN__ = '{!$Api.Session_ID}';
     </script>

If I put the __ACCESSTOKEN here, my app will not pass the security check to public my package to AppExchange. Do you have any solutions for it? Thanks for your help.

ts-force generation in documentation

Hi, could you add as part of the setup process the instructions to generate the Salesforce Object classes please.

npm run generate-ts-force

It wasn't obvious to me until a bit of digging, so it might be useful to add it.

Thanks
Andy

API request don't work when VF page is displayed in lightning

When the VF page is loaded into lightning, the request stop working because the app is using ?isdtp=p1 gets to the instance url __RESTHOST__.

Fix: update the header to remove extra junk:

const __RESTHOST__ = '{!URLFOR("/", null)}'.replace("?isdtp=p1", "");

Might want to come up with a more robust solution as there might be other URL param/values that get appended

support windows

Long over due... The build script have many OSX specific commands.

OSX commands to refactor:

  • zip
  • cp
  • mv
  • port
  • npmrc: seems to have issues on windows
  • env vars: use crossenv
  • npx
  • openssl: instructions for windows users to install

Might just make sense to create a npm build tool to help

Issue with latest antd package

I set up a project and on running npm run deploy-dev I received the following error:

rimraf dist

node_modules/antd/es/notification/PurePanel.d.ts:25:16 - error TS2304: Cannot find name 'PurePanel'.

25 export default PurePanel;
~~~~~~~~~

Found 1 error in node_modules/antd/es/notification/PurePanel.d.ts:25

I forced the package to downgrade to 5.2.3 and the error went away. I think maybe the package needs to be fixed to this version until the issue with antd is resolved.

Andy

refactor `src` -> `app`

This makes much more sense as your "source" is really contained in both the force-app and the react application. react-app might even be a better name, but then if someone were to port this to an angular application (which wouldn't be hard to do), they would have an additional set of paths to update.

make renaming app easier

Currently you have to rename it in multiple places... Would be ideal if it was possible to just rename it in one place (maybe .npmrc?) and have the build configuration take care of the rest

Unable to Setup Demo Project in Dev Org

Steps to reproduce

  • clone repo
  • npm install
  • authenticate target org
  • setup up .npmrc
  • npm run deploy-dev

Expected Outcome

  • stuff gets deployed

Actual Outcome

  • build errors

NPM Log: https://gist.github.com/ralphcallaway/bfd6313c319fbe12d32f47b89284f5a2

Console Log

➜  devBASS git:(master) ✗ npm run deploy-prod

> [email protected] deploy-prod /Users/ralphcallaway/Documents/eclipse 3.7/devBASS
> npm run build-prod && npm run push-prod


> [email protected] build-prod /Users/ralphcallaway/Documents/eclipse 3.7/devBASS
> npm run bundle-app-prod && npm run package-sfdc


> [email protected] bundle-app-prod /Users/ralphcallaway/Documents/eclipse 3.7/devBASS
> webpack run compile-prod && npm run copy-bundle

Hash: 5d2e1eb09050b2f0c2f2
Version: webpack 3.6.0
Time: 43ms

ERROR in Entry module not found: Error: Can't resolve 'run' in '/Users/ralphcallaway/Documents/eclipse 3.7/devBASS'
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! [email protected] bundle-app-prod: `webpack run compile-prod && npm run copy-bundle`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the [email protected] bundle-app-prod script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/ralphcallaway/.npm/_logs/2017-12-26T19_35_50_827Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! [email protected] build-prod: `npm run bundle-app-prod && npm run package-sfdc`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the [email protected] build-prod script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/ralphcallaway/.npm/_logs/2017-12-26T19_35_50_850Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! [email protected] deploy-prod: `npm run build-prod && npm run push-prod`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the [email protected] deploy-prod script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/ralphcallaway/.npm/_logs/2017-12-26T19_35_50_872Z-debug.log

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.