Skip to content

Commit

Permalink
changes from yo
Browse files Browse the repository at this point in the history
  • Loading branch information
ChuckJonas committed Nov 2, 2019
1 parent 5bbfcdf commit dc72e06
Show file tree
Hide file tree
Showing 11 changed files with 1,772 additions and 566 deletions.
10 changes: 5 additions & 5 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# sfdx org aliases or usernames to configure targets for npm scripts
# These should not be checked into .git (to allow each developer to configure independently)
dev_alias=demo@bass.starter
scratch_alias=scratch
prod_alias=demo@bass.starter
dev_alias=
scratch_alias=bass-scratch
prod_alias=

devPort=8080
40 changes: 14 additions & 26 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -1,28 +1,16 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "debug locally", //webpack-dev-server must be running
"type": "chrome",
"request": "launch",
"sourceMaps": true,
"url": "https://c.na73.visual.force.com/apex/app?local=1",
"webRoot": "${workspaceRoot}",
"internalConsoleOptions": "openOnSessionStart",
"skipFiles": [
"node_modules/**"
],
"runtimeArgs": [
"--remote-debugging-port=9222", //Open in port 9222 (standard chrome debug port)
"--allow-insecure-localhost=1"
],
"sourceMapPathOverrides": {
"webpack:///*": "${webRoot}/*"
},
"smartStep": true
}
]
// Use IntelliSense to learn about possible Node.js debug attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Attach to url with files served from ./out",
"type": "chrome",
"request": "attach",
"port": 9222,
"url": "https://your-salesforce-url.com/apex/app?local=1",
"webRoot": "${workspaceFolder}"
}
]
}
158 changes: 80 additions & 78 deletions README.md

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions app/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import App from './app';
// tslint:disable-next-line:no-var-requires
require('@src/styles/styles.less');


// globals. set on page window
declare var __RESTHOST__: string;
declare var __ACCESSTOKEN__: string;
Expand All @@ -18,4 +19,5 @@ setDefaultConfig({
instanceUrl: __RESTHOST__,
});


ReactDOM.render(<App />, document.getElementById('root') as HTMLElement);
10 changes: 6 additions & 4 deletions config/project-scratch-def.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
{
"orgName": "jonas Company",
"edition": "Developer",
"orgPreferences" : {
"enabled": ["S1DesktopEnabled"]
"orgName": "jonas Company",
"edition": "Developer",
"settings": {
"lightningExperienceSettings": {
"enableS1DesktopEnabled": true
}
}
}
2 changes: 1 addition & 1 deletion config/ts-force-config.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "https://raw.githubusercontent.com/ChuckJonas/ts-force/master/ts-force-gen/ts-force-config.schema.json",
"auth": {
"username": "demo@bass.starter"
"username": ""
},
"sObjects": ["Account", "Contact"],
"outPath": "./app/generated"
Expand Down
2 changes: 1 addition & 1 deletion config/webpack.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const PATHS = {
const themeVariables = lessToJs(fs.readFileSync(path.join(PATHS.styles, './ant-theme-vars.less'), 'utf8'));

module.exports = (env: any = {}) => {
const PORT = env.port || 8080; // should match ./config/sfdc-cors-enable
const PORT = parseInt(env.port) || 8080;
const resourceName = env.resource || 'app';
const isBuild = !!env.build; // build vs dev-server
const isProd = !!env.prod; // for Prod ENV optimizations
Expand Down
2 changes: 1 addition & 1 deletion force-app/main/default/pages/App.page
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
//rest details
const __ACCESSTOKEN__ = '{!$Api.Session_ID}';
const __RESTHOST__ = '';
</script>
</script>
<div id="root"></div>
<apex:outputPanel layout="none" rendered="{!$CurrentPage.parameters.local != '1'}">
<script type='text/javascript' src="{!URLFOR($Resource.app, 'dist/vendors.js')}"></script>
Expand Down
2 changes: 1 addition & 1 deletion force-app/main/default/pages/App.page-meta.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
<apiVersion>38.0</apiVersion>
<availableInTouch>false</availableInTouch>
<confirmationTokenRequired>false</confirmationTokenRequired>
<label>App</label>
<label>bass-yo</label>
</ApexPage>
Loading

0 comments on commit dc72e06

Please sign in to comment.