Comments (5)
@omniphx thanks,
Updated
So this currently includes an build script that makes it very easy to bring into your existing project.
if you run npm install apex-q
from your root of a salesforce project, it will install files into your src
directory (note: it will also create a node_models
folder. You can then deploy it with Mavensmate, DMC, Eclipse or whatever your IDE of choice is.
This is kinda an experiment idea but has some advantages over Unmanaged Packages.
If that doesn't work for you, you're more than welcome to fork this and package it!
from apex-q.
So running npm install apex-q
doesn't merge the contents into my src directory (using Mavensmate btw). Here's the output:
> [email protected] postinstall C:\Users\matthew.mitchener\Salesforce\Marty2\node_modules\apex-q
> node -e "require('sfdc-pkg-postinstall').install()"
SFDC PACKAGE POST INSTALL => [email protected]
-> package src dir: C:\Users\matthew.mitchener\Salesforce\Marty2\node_modules\apex-q/src
-> project src dir: C:\Users\matthew.mitchener\Salesforce\Marty2\node_modules\apex-q\src
-> merging files
-> merging dir: C:\Users\matthew.mitchener\Salesforce\Marty2\node_modules\apex-q/src
-> merging dir: C:\Users\matthew.mitchener\Salesforce\Marty2\node_modules\apex-q/src/classes
-> merging file: C:\Users\matthew.mitchener\Salesforce\Marty2\node_modules\apex-q/src/classes/Q.cls
-> merging file: C:\Users\matthew.mitchener\Salesforce\Marty2\node_modules\apex-q/src/classes/Q.cls-meta.xml
-> merging file: C:\Users\matthew.mitchener\Salesforce\Marty2\node_modules\apex-q/src/classes/QBase.cls
-> merging file: C:\Users\matthew.mitchener\Salesforce\Marty2\node_modules\apex-q/src/classes/QBase.cls-meta.xml
-> merging file: C:\Users\matthew.mitchener\Salesforce\Marty2\node_modules\apex-q/src/classes/QFuture.cls
-> merging file: C:\Users\matthew.mitchener\Salesforce\Marty2\node_modules\apex-q/src/classes/QFuture.cls-meta.xml
-> ignoring file: C:\Users\matthew.mitchener\Salesforce\Marty2\node_modules\apex-q/src/package.xml
-> merge complete!
[email protected] node_modules\apex-q
└── [email protected]
Seems like this package is missing a way to configure the src directory. Also was under the impression that the package could handle the deployment aspect as well (but that doesn't currently seem to be the case)
I'll close this ticket and move this issue to the other repository. I do really like how you are adopting npm. Its seems like a much simpler solution to handle Salesforce package management.
from apex-q.
I just ran it at the root of my projects and here is the output:
SFDC PACKAGE POST INSTALL => [email protected]
-> package src dir: /Users/jonas/Documents/mm/ccc-sfdc/node_modules/apex-q/src
-> project src dir: /Users/jonas/Documents/mm/ccc-sfdc/src
-> merging files
-> merging dir: /Users/jonas/Documents/mm/ccc-sfdc/node_modules/apex-q/src
-> merging dir: /Users/jonas/Documents/mm/ccc-sfdc/node_modules/apex-q/src/classes
-> merging file: /Users/jonas/Documents/mm/ccc-sfdc/node_modules/apex-q/src/classes/Q.cls
-> merging file: /Users/jonas/Documents/mm/ccc-sfdc/node_modules/apex-q/src/classes/Q.cls-meta.xml
-> merging file: /Users/jonas/Documents/mm/ccc-sfdc/node_modules/apex-q/src/classes/QBase.cls
-> merging file: /Users/jonas/Documents/mm/ccc-sfdc/node_modules/apex-q/src/classes/QBase.cls-meta.xml
-> merging file: /Users/jonas/Documents/mm/ccc-sfdc/node_modules/apex-q/src/classes/QFuture.cls
-> merging file: /Users/jonas/Documents/mm/ccc-sfdc/node_modules/apex-q/src/classes/QFuture.cls-meta.xml
-> ignoring file: /Users/jonas/Documents/mm/ccc-sfdc/node_modules/apex-q/src/package.xml
-> merge complete!
The second post install line seems to be where yours is going wrong:
-> project src dir: /Users/jonas/Documents/mm/ccc-sfdc/src
vs
project src dir: C:\Users\matthew.mitchener\Salesforce\Marty2\node_modules\apex-q\src
did you run it from the root of your workspace (folder containing src
)?
When I first added it, I was also under the impression that sfdc-pkg-postinstall
would push meta-data to the org. However, on second thought, its probably better that it doesn't (just incase it overwrites a conflicting file).
from apex-q.
Ah.. guess I was in the root of my Mavensmate project, not the src folder.
Getting a little off topic, but I think it would actually be nice to deploy the files. Would want to configure the destination deployment and if conflicts arise the user could be prompted to overwrite/rename.
from apex-q.
sorry that was ambiguous. You should actually be running it from the workspace root.
> cd .
should output /src/classes/..
from apex-q.
Related Issues (1)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from apex-q.