1.1.17 • Published 5 years ago
node-webresource v1.1.17
node-webresource
Node module for publishing Dynamics 365 web resources, inspired by gulp-webresource
Build | NPM | Semantic-Release |
---|---|---|
Usage
npm install -D node-webresource
Sign in here to grant access to your Dynamics 365 organization.
Sample config file and usage
For a more complete sample using webpack, see generator-xrm-webresource
var uploadConfig = {
tenant: "mycompany.onmicrosoft.com",
server: "https://mycompany.crm.dynamics.com",
webResources: [
{
"path": "path\\to\\file\\formscript.js",
"name": "new_formscript.js"
}
],
solution: "MySolution"
};
// Can use username/password or client id/secret
uploadConfig.username: "me@mycompany.onmicrosoft.com";
uploadConfig.password: "MyPassword";
uploadConfig.clientId: "ClientId";
uploadConfig.clientSecret: "ClientSecret";
var assets = [
{
path: "path\\to\\file\\formscript.js", // Should match webResources path
content: "function onLoad() {}"
};
];
webResource.upload(uploadConfig, assets).then(() => {
callback();
}, (error) => {
console.log(error);
callback();
});
1.1.17
5 years ago
1.1.16
5 years ago
1.1.15
5 years ago
1.1.14
5 years ago
1.1.13
5 years ago
1.1.12
5 years ago
1.1.11
6 years ago
1.1.9
6 years ago
1.1.8
6 years ago
1.1.7
6 years ago
1.1.6
6 years ago
1.1.5
6 years ago
1.1.4
6 years ago
1.1.3
6 years ago
1.1.2
6 years ago
1.1.1
6 years ago
1.1.0
6 years ago
1.0.5
6 years ago
1.0.4
6 years ago
1.0.3
7 years ago
1.0.2
7 years ago
1.0.1
7 years ago
1.0.0
7 years ago