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>
This commit is contained in:
27
packages/twenty-cli/src/index.ts
Normal file
27
packages/twenty-cli/src/index.ts
Normal file
@ -0,0 +1,27 @@
|
||||
#!/usr/bin/env node
|
||||
import { program } from 'commander';
|
||||
import { showWelcomeScreen, firstQuestion } from './install/index.js';
|
||||
import prompts from 'prompts';
|
||||
import { askContributeQuestions } from './install/contribute/index.js';
|
||||
import { askDemoQuestions } from './install/demo/index.js';
|
||||
import { askSelfhostQuestions } from './install/selfhost/index.js';
|
||||
|
||||
program;
|
||||
|
||||
showWelcomeScreen();
|
||||
|
||||
(async () => {
|
||||
const response = await prompts(firstQuestion);
|
||||
|
||||
switch (response.install_type) {
|
||||
case 'contribute':
|
||||
askContributeQuestions();
|
||||
break;
|
||||
case 'demo':
|
||||
askDemoQuestions();
|
||||
break;
|
||||
case 'selfhost':
|
||||
askSelfhostQuestions();
|
||||
break;
|
||||
}
|
||||
})();
|
||||
Reference in New Issue
Block a user