Skip to content

Commit

Permalink
fix: avoid delta between templates locally and on org
Browse files Browse the repository at this point in the history
  • Loading branch information
mingxuanzhangsfdx committed Sep 27, 2024
1 parent 6ffe583 commit caf41db
Show file tree
Hide file tree
Showing 21 changed files with 26 additions and 24 deletions.
2 changes: 1 addition & 1 deletion src/templates/apexclass/_class.cls-meta.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
<ApexClass xmlns="http://soap.sforce.com/2006/04/metadata">
<apiVersion><%= apiVersion %></apiVersion>
<status>Active</status>
</ApexClass>
</ApexClass>
4 changes: 2 additions & 2 deletions src/templates/apextrigger/_trigger.trigger-meta.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version='1.0' encoding='UTF-8'?>
<?xml version="1.0" encoding="UTF-8"?>
<ApexTrigger xmlns="http://soap.sforce.com/2006/04/metadata">
<apiVersion><%= apiVersion %></apiVersion>
<status>Active</status>
</ApexTrigger>
</ApexTrigger>
2 changes: 1 addition & 1 deletion src/templates/lightningapp/DefaultLightningApp.app
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<aura:application>

</aura:application>
</aura:application>
2 changes: 1 addition & 1 deletion src/templates/lightningapp/DefaultLightningController.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
myAction : function(component, event, helper) {

}
})
})
2 changes: 1 addition & 1 deletion src/templates/lightningapp/DefaultLightningCss.css
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
.THIS {
}
}
2 changes: 1 addition & 1 deletion src/templates/lightningapp/DefaultLightningHelper.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
helperMethod : function() {

}
})
})
2 changes: 1 addition & 1 deletion src/templates/lightningapp/DefaultLightningRenderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

// Your renderer method overrides go here

})
})
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
<AuraDefinitionBundle xmlns="http://soap.sforce.com/2006/04/metadata">
<apiVersion><%= apiVersion %></apiVersion>
<description><%= description %></description>
</AuraDefinitionBundle>
</AuraDefinitionBundle>
2 changes: 1 addition & 1 deletion src/templates/lightningcomponent/aura/default/default.cmp
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<aura:component>

</aura:component>
</aura:component>
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" ?>
<?xml version="1.0" encoding="UTF-8"?>
<AuraDefinitionBundle xmlns="http://soap.sforce.com/2006/04/metadata">
<apiVersion><%= apiVersion %></apiVersion>
<description><%= description %></description>
</AuraDefinitionBundle>
</AuraDefinitionBundle>
2 changes: 1 addition & 1 deletion src/templates/lightningcomponent/aura/default/default.css
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
.THIS {
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
myAction : function(component, event, helper) {

}
})
})
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
helperMethod : function() {

}
})
})
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

// Your renderer method overrides go here

})
})
2 changes: 1 addition & 1 deletion src/templates/lightningevent/DefaultLightningEvt.evt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<aura:event type="APPLICATION" description="Event template"/>
<aura:event type="APPLICATION" description="Event template" />
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
<AuraDefinitionBundle xmlns="http://soap.sforce.com/2006/04/metadata">
<apiVersion><%= apiVersion %></apiVersion>
<description><%= description %></description>
</AuraDefinitionBundle>
</AuraDefinitionBundle>
2 changes: 1 addition & 1 deletion src/templates/lightninginterface/DefaultLightningIntf.intf
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<aura:interface description="Interface template">
<aura:attribute name="example" type="String" default="" description="An example attribute."/>
</aura:interface>
</aura:interface>
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<apex:component>
<apex:component >
<!-- Begin Default Content REMOVE THIS -->
<h1>Congratulations</h1>
This is your new Component
<!-- End Default Content REMOVE THIS -->
</apex:component>
</apex:component>
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
<ApexComponent xmlns="http://soap.sforce.com/2006/04/metadata">
<apiVersion><%= apiVersion %></apiVersion>
<label><%= vfLabel %></label>
</ApexComponent>
</ApexComponent>
2 changes: 1 addition & 1 deletion src/templates/visualforcepage/DefaultVFPage.page
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<apex:page>
<apex:page >
<!-- Begin Default Content REMOVE THIS -->
<h1>Congratulations</h1>
This is your new Page
Expand Down
4 changes: 3 additions & 1 deletion src/templates/visualforcepage/_page.page-meta.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<ApexPage xmlns="http://soap.sforce.com/2006/04/metadata">
<apiVersion><%= apiVersion %></apiVersion>
<availableInTouch>false</availableInTouch>
<confirmationTokenRequired>false</confirmationTokenRequired>
<label><%= vfLabel %></label>
</ApexPage>
</ApexPage>

0 comments on commit caf41db

Please sign in to comment.