Skip to content
Snippets Groups Projects
Commit af6bbbdf authored by Skander Hatira's avatar Skander Hatira
Browse files

execSync for generating assets

parent 55124fc4
No related branches found
No related tags found
No related merge requests found
Pipeline #40390 passed
// ./hooks.js
const path = require("path");
const { exec } = require("child_process");
const { execSync } = require("child_process");
const fs = require("fs");
module.exports = {
generateAssets: async (forgeConfig, options) => {
exec(
execSync(
`jbrowse create ${__dirname}/resources/jbrowse2 -f || true`,
(error, stdout, stderr) => {
if (error) {
......@@ -38,28 +38,5 @@ module.exports = {
// });
},
postPackage: async (forgeConfig, options) => {
// const resources = path.join(
// options.outputPaths[0],
// "resources/app/.webpack/main/resources"
// );
// const jbrowse = path.join(
// options.outputPaths[0],
// "resources/app/.webpack/main/backend/node_modules/"
// );
// chmodr(resources, 0o777, (err) => {
// if (err) {
// console.log("Failed to execute chmod", err);
// } else {
// console.log("Successful");
// }
// });
// chmodr(jbrowse, 0o777, (err) => {
// if (err) {
// console.log("Failed to execute chmod", err);
// } else {
// console.log("Successful");
// }
// });
},
postPackage: async (forgeConfig, options) => {},
};
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment