Files
twenty/packages/twenty-cli/src/config.ts
Félix Malfait 31f3950439 Add a custom rule to prevent colors from being hardcoded outside of theme (#288)
* Add a custom rule to prevent colors from being hardcoded in ESLint

* Refactor colors

* Create packages folder and fix colors

* Remove external dependency for css alphabetical order linting

* Fix install with yarn

---------

Co-authored-by: Charles Bochet <charles@twenty.com>
2023-06-14 16:56:29 +02:00

18 lines
485 B
TypeScript

import { exec } from 'child_process';
export function execShell(cmd: string): Promise<string> {
return new Promise((resolve, reject) => {
exec(cmd, (error, stdout, stderr) => {
if (error) {
console.warn(`Error: ${error.message}`);
console.warn(`stderr: ${stderr}`);
reject(error);
}
resolve(stdout ? stdout : stderr);
});
});
}
export const REPO_URL = 'https://github.com/twentyhq/twenty.git';
export const CLONE_DIR = 'twenty';