mirror of
https://gitlab.com/PronounsPage/PronounsPage.git
synced 2025-09-24 21:46:22 -04:00
Merge branch 'remove-ide-configuration' into 'main'
remove IDE configuration & fix CI See merge request PronounsPage/PronounsPage!441
This commit is contained in:
commit
839e318eae
1
.gitignore
vendored
1
.gitignore
vendored
@ -111,6 +111,7 @@ dist
|
||||
|
||||
# IDE / Editor
|
||||
.idea
|
||||
.vscode
|
||||
|
||||
# Service worker
|
||||
sw.*
|
||||
|
7
.idea/jsLinters/eslint.xml
generated
7
.idea/jsLinters/eslint.xml
generated
@ -1,7 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="EslintConfiguration">
|
||||
<files-pattern value="**/*.{cjs,js,json,suml,ts,yml,vue}" />
|
||||
<option name="fix-on-save" value="true" />
|
||||
</component>
|
||||
</project>
|
28
.idea/jsonSchemas.xml
generated
28
.idea/jsonSchemas.xml
generated
@ -1,28 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="JsonSchemaMappingsProjectConfiguration">
|
||||
<state>
|
||||
<map>
|
||||
<entry key="Pronouns.Page Config">
|
||||
<value>
|
||||
<SchemaInfo>
|
||||
<option name="generatedName" value="New Schema" />
|
||||
<option name="name" value="Pronouns.Page Config" />
|
||||
<option name="relativePathToSchema" value="locale/config.schema.json" />
|
||||
<option name="schemaVersion" value="JSON Schema version 7" />
|
||||
<option name="patterns">
|
||||
<list>
|
||||
<Item>
|
||||
<option name="pattern" value="true" />
|
||||
<option name="path" value="locale/*/config.suml" />
|
||||
<option name="mappingKind" value="Pattern" />
|
||||
</Item>
|
||||
</list>
|
||||
</option>
|
||||
</SchemaInfo>
|
||||
</value>
|
||||
</entry>
|
||||
</map>
|
||||
</state>
|
||||
</component>
|
||||
</project>
|
11
.idea/runConfigurations/jest-all-tests.run.xml
generated
11
.idea/runConfigurations/jest-all-tests.run.xml
generated
@ -1,11 +0,0 @@
|
||||
<component name="ProjectRunConfigurationManager">
|
||||
<configuration default="false" name="All Tests" type="JavaScriptTestRunnerJest" nameIsGenerated="true">
|
||||
<node-interpreter value="project" />
|
||||
<node-options value="--experimental-vm-modules" />
|
||||
<jest-package value="$PROJECT_DIR$/node_modules/jest" />
|
||||
<working-dir value="$PROJECT_DIR$" />
|
||||
<envs />
|
||||
<scope-kind value="ALL" />
|
||||
<method v="2" />
|
||||
</configuration>
|
||||
</component>
|
20
.idea/vcs.xml
generated
20
.idea/vcs.xml
generated
@ -1,20 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="IssueNavigationConfiguration">
|
||||
<option name="links">
|
||||
<list>
|
||||
<IssueNavigationLink>
|
||||
<option name="issueRegexp" value="!(\d+)" />
|
||||
<option name="linkRegexp" value="https://gitlab.com/PronounsPage/PronounsPage/-/merge_requests/$1" />
|
||||
</IssueNavigationLink>
|
||||
<IssueNavigationLink>
|
||||
<option name="issueRegexp" value="#(\d+)" />
|
||||
<option name="linkRegexp" value="https://gitlab.com/PronounsPage/PronounsPage/-/issues/$1" />
|
||||
</IssueNavigationLink>
|
||||
</list>
|
||||
</option>
|
||||
</component>
|
||||
<component name="VcsDirectoryMappings">
|
||||
<mapping directory="" vcs="Git" />
|
||||
</component>
|
||||
</project>
|
8
.vscode/extensions.json
vendored
8
.vscode/extensions.json
vendored
@ -1,8 +0,0 @@
|
||||
{
|
||||
"recommendations": [
|
||||
"dbaeumer.vscode-eslint",
|
||||
"janisdd.vscode-edit-csv",
|
||||
"Orta.vscode-jest",
|
||||
"Vue.volar"
|
||||
]
|
||||
}
|
20
.vscode/settings.json
vendored
20
.vscode/settings.json
vendored
@ -1,20 +0,0 @@
|
||||
{
|
||||
"editor.formatOnSave": false,
|
||||
"editor.formatOnPaste": false,
|
||||
"editor.codeActionsOnSave": {
|
||||
"source.fixAll.eslint": "explicit"
|
||||
},
|
||||
"eslint.validate": ["javascript", "json", "jsonc", "ts", "yaml"],
|
||||
"files.associations": {
|
||||
"*.suml": "yaml"
|
||||
},
|
||||
"jest.jestCommandLine": "pnpm test",
|
||||
"[tsv]": {
|
||||
"files.trimTrailingWhitespace": false,
|
||||
},
|
||||
"yaml.schemas": {
|
||||
"locale/config.schema.json": "locale/*/config.suml"
|
||||
},
|
||||
// validation is done by ESLint and the plugin generates false positives for `null` keys
|
||||
"yaml.validate": false
|
||||
}
|
16
README.md
16
README.md
@ -78,23 +78,13 @@ SECRET=replaceThis
|
||||
|
||||
### Editor
|
||||
|
||||
#### Visual Studio Code
|
||||
Recommended extensions are provided in `.vscode/extensions.json`
|
||||
and Visual Studio Code will ask for your permission to install them upon project open.
|
||||
`.vscode/settings.json` already includes settings to integrate with tooling.
|
||||
|
||||
#### JetBrains IDE (WebStorm, PhpStorm, …)
|
||||
Most of the tooling is already shipped with a JetBrains IDE.
|
||||
`.idea` already contains some settings to integrate with the tooling.
|
||||
If you want syntax highlighting for `.suml` files, you need to manually bind them to `yaml` syntax
|
||||
via `Settings › Editor › File Types`.
|
||||
|
||||
#### Others
|
||||
When you want to use a different editor, you may need to configure some points to reduce manual work:
|
||||
To work effectively with this project, it is recommended to configure these points in your editor:
|
||||
|
||||
- Integrating ESLint with auto-fixing on save (the formatting relies on it)
|
||||
- Integrating Jest to easily view test results
|
||||
- Use `yaml` syntax highlighting for `.suml` files
|
||||
- Link `locale/config.schema.json` to `locale/*/config.suml` for schema validation and type hints
|
||||
(the schema file is automatically generated by `locale/generateSchemas.ts` in `make install`)
|
||||
|
||||
### Git
|
||||
|
||||
|
@ -213,7 +213,7 @@
|
||||
</template>
|
||||
|
||||
<template #socials-header>
|
||||
<Icon v="sign-in-alt"/>
|
||||
<Icon v="sign-in-alt" />
|
||||
<T>user.socialConnection.header</T>
|
||||
</template>
|
||||
<template #socials>
|
||||
@ -255,7 +255,7 @@
|
||||
</template>
|
||||
|
||||
<template #backup-header>
|
||||
<Icon v="copy"/>
|
||||
<Icon v="copy" />
|
||||
<T>profile.backup.headerShort</T>
|
||||
</template>
|
||||
<template #backup>
|
||||
|
@ -10,7 +10,7 @@ const config: Config = {
|
||||
'^(\\.{1,2}/.*)\\.js$': '$1',
|
||||
},
|
||||
testEnvironment: 'node',
|
||||
testPathIgnorePatterns: ['.yarn', 'node_modules'],
|
||||
testPathIgnorePatterns: ['.yarn', 'new', 'node_modules'],
|
||||
transform: {
|
||||
'^.+\\.ts$': ['ts-jest', {
|
||||
// use isolated modules to speed up test execution; type checking happens separately
|
||||
|
@ -27,7 +27,7 @@ const banner = `${process.env.BASE_URL}/api/banner/zaimki.png`;
|
||||
const colour = '#C71585';
|
||||
|
||||
let __dirname = new URL('.', import.meta.url).pathname;
|
||||
if (process.platform === "win32") {
|
||||
if (process.platform === 'win32') {
|
||||
// A small hack, for Windows can't have nice things.
|
||||
__dirname = __dirname.slice(1);
|
||||
}
|
||||
|
@ -156,5 +156,6 @@
|
||||
},
|
||||
"peerDependencies": {
|
||||
"postcss": "^8.0.0"
|
||||
}
|
||||
},
|
||||
"packageManager": "pnpm@8.15.7+sha256.50783dd0fa303852de2dd1557cd4b9f07cb5b018154a6e76d0f40635d6cee019"
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user