-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Add base application project yarn release file #16238
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
a6fccaf
Add base project
martmull b9076dd
Add gitinit command
martmull 3a83644
Fix yarn lock
martmull d010344
Fix gitinit
martmull feff508
Update readme files
martmull c209af6
Add yarn release and codegen generated folder to gitignore
martmull 9c64699
Update base app version
martmull f3c3468
Code review returns: Charles
martmull File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
packages/create-twenty-app/src/constants/base-application/.nvmrc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| 24.5.0 |
3 changes: 3 additions & 0 deletions
3
packages/create-twenty-app/src/constants/base-application/.yarnrc.yml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| yarnPath: .yarn/releases/yarn-4.9.2.cjs | ||
|
|
||
| nodeLinker: node-modules | ||
35 changes: 35 additions & 0 deletions
35
packages/create-twenty-app/src/constants/base-application/README.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| This is a [Twenty](https://twenty.com) application project bootstrapped with [`create-twenty-app`](https://www.npmjs.com/package/create-twenty-app). | ||
|
|
||
| ## Getting Started | ||
|
|
||
| First, authenticate to your workspace: | ||
|
|
||
| ```bash | ||
| yarn auth | ||
| ``` | ||
|
|
||
| Then, run the development server: | ||
|
|
||
| ```bash | ||
| yarn dev | ||
| ``` | ||
|
|
||
| Open your Twenty instance and go to `/settings/applications` section to see the result. | ||
|
|
||
| You can start adding twenty entities by running | ||
|
|
||
| ```bash | ||
| yarn create-entity | ||
| ``` | ||
|
|
||
| The application auto-updates as you edit the file. | ||
|
|
||
| ## Learn More | ||
|
|
||
| To learn more about Twenty applications, take a look at the following resources: | ||
|
|
||
| - [twenty-sdk](https://www.npmjs.com/package/twenty-sdk) - learn about `twenty-sdk` tool. | ||
| - [Twenty doc](https://docs.twenty.com/) - Twenty's documentation. | ||
| - Join our [Discord](https://discord.gg/cx5n4Jzs57) | ||
|
|
||
| You can check out [the Twenty GitHub repository](https://github.com/twentyhq/twenty) - your feedback and contributions are welcome! |
137 changes: 137 additions & 0 deletions
137
packages/create-twenty-app/src/constants/base-application/eslint.config.mjs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,137 @@ | ||
| import js from '@eslint/js'; | ||
| import typescriptEslint from '@typescript-eslint/eslint-plugin'; | ||
| import typescriptParser from '@typescript-eslint/parser'; | ||
| import importPlugin from 'eslint-plugin-import'; | ||
| import preferArrowPlugin from 'eslint-plugin-prefer-arrow'; | ||
| import prettierPlugin from 'eslint-plugin-prettier'; | ||
| import unusedImportsPlugin from 'eslint-plugin-unused-imports'; | ||
|
|
||
| export default [ | ||
| // Base JS rules | ||
| js.configs.recommended, | ||
|
|
||
| // Global ignores | ||
| { | ||
| ignores: ['**/node_modules/**', '**/dist/**', '**/coverage/**'], | ||
| }, | ||
|
|
||
| // Base config for TS/JS files | ||
| { | ||
| files: ['**/*.{js,jsx,ts,tsx}'], | ||
| languageOptions: { | ||
| ecmaVersion: 'latest', | ||
| sourceType: 'module', | ||
| }, | ||
| plugins: { | ||
| prettier: prettierPlugin, | ||
| import: importPlugin, | ||
| 'prefer-arrow': preferArrowPlugin, | ||
| 'unused-imports': unusedImportsPlugin, | ||
| }, | ||
| rules: { | ||
| // General rules (aligned with main project) | ||
| 'func-style': ['error', 'declaration', { allowArrowFunctions: true }], | ||
| 'no-console': [ | ||
| 'warn', | ||
| { allow: ['group', 'groupCollapsed', 'groupEnd'] }, | ||
| ], | ||
| 'no-control-regex': 0, | ||
| 'no-debugger': 'error', | ||
| 'no-duplicate-imports': 'error', | ||
| 'no-undef': 'off', | ||
| 'no-unused-vars': 'off', | ||
|
|
||
| // Import rules | ||
| 'import/no-relative-packages': 'error', | ||
| 'import/no-useless-path-segments': 'error', | ||
| 'import/no-duplicates': ['error', { considerQueryString: true }], | ||
|
|
||
| // Prefer arrow functions | ||
| 'prefer-arrow/prefer-arrow-functions': [ | ||
| 'error', | ||
| { | ||
| disallowPrototype: true, | ||
| singleReturnOnly: false, | ||
| classPropertiesAllowed: false, | ||
| }, | ||
| ], | ||
|
|
||
| // Unused imports | ||
| 'unused-imports/no-unused-imports': 'warn', | ||
| 'unused-imports/no-unused-vars': [ | ||
| 'warn', | ||
| { | ||
| vars: 'all', | ||
| varsIgnorePattern: '^_', | ||
| args: 'after-used', | ||
| argsIgnorePattern: '^_', | ||
| }, | ||
| ], | ||
|
|
||
| // Prettier (formatting as lint errors if you want) | ||
| 'prettier/prettier': 'error', | ||
| }, | ||
| }, | ||
|
|
||
| // TypeScript-specific configuration | ||
| { | ||
| files: ['**/*.{ts,tsx}'], | ||
| languageOptions: { | ||
| parser: typescriptParser, | ||
| parserOptions: { | ||
| ecmaFeatures: { | ||
| jsx: true, | ||
| }, | ||
| }, | ||
| }, | ||
| plugins: { | ||
| '@typescript-eslint': typescriptEslint, | ||
| }, | ||
| rules: { | ||
| // Turn off base rule and use TS-aware versions | ||
| 'no-redeclare': 'off', | ||
| '@typescript-eslint/no-redeclare': 'error', | ||
|
|
||
| '@typescript-eslint/ban-ts-comment': 'error', | ||
| '@typescript-eslint/consistent-type-imports': [ | ||
| 'error', | ||
| { | ||
| prefer: 'type-imports', | ||
| fixStyle: 'inline-type-imports', | ||
| }, | ||
| ], | ||
| '@typescript-eslint/explicit-function-return-type': 'off', | ||
| '@typescript-eslint/explicit-module-boundary-types': 'off', | ||
| '@typescript-eslint/interface-name-prefix': 'off', | ||
| '@typescript-eslint/no-empty-interface': [ | ||
| 'error', | ||
| { | ||
| allowSingleExtends: true, | ||
| }, | ||
| ], | ||
| '@typescript-eslint/no-explicit-any': 'off', | ||
| '@typescript-eslint/no-empty-function': 'off', | ||
| '@typescript-eslint/no-unused-vars': 'off', | ||
| }, | ||
| }, | ||
|
|
||
| // Test files (Jest) | ||
| { | ||
| files: ['**/*.spec.@(ts|tsx|js|jsx)', '**/*.test.@(ts|tsx|js|jsx)'], | ||
| languageOptions: { | ||
| globals: { | ||
| jest: true, | ||
| describe: true, | ||
| it: true, | ||
| expect: true, | ||
| beforeEach: true, | ||
| afterEach: true, | ||
| beforeAll: true, | ||
| afterAll: true, | ||
| }, | ||
| }, | ||
| rules: { | ||
| '@typescript-eslint/no-non-null-assertion': 'off', | ||
| }, | ||
| }, | ||
| ]; |
27 changes: 27 additions & 0 deletions
27
packages/create-twenty-app/src/constants/base-application/tsconfig.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| { | ||
| "compileOnSave": false, | ||
| "compilerOptions": { | ||
| "sourceMap": true, | ||
| "declaration": true, | ||
| "outDir": "./dist", | ||
| "rootDir": ".", | ||
| "moduleResolution": "node", | ||
| "allowSyntheticDefaultImports": true, | ||
| "emitDecoratorMetadata": true, | ||
| "experimentalDecorators": true, | ||
| "importHelpers": true, | ||
| "allowUnreachableCode": false, | ||
| "strictNullChecks": true, | ||
| "alwaysStrict": true, | ||
| "noImplicitAny": true, | ||
| "strictBindCallApply": false, | ||
| "target": "es2018", | ||
| "module": "esnext", | ||
| "lib": ["es2020", "dom"], | ||
| "skipLibCheck": true, | ||
| "skipDefaultLibCheck": true, | ||
| "resolveJsonModule": true, | ||
martmull marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| }, | ||
|
|
||
| "exclude": ["node_modules", "dist", "**/*.test.ts", "**/*.spec.ts"] | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.