-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into jmc/10_add_rdm_to_clm_migrator_cli
- Loading branch information
Showing
12 changed files
with
525 additions
and
535 deletions.
There are no files selected for viewing
This file contains 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 |
---|---|---|
|
@@ -4,7 +4,7 @@ source = | |
|
||
omit = | ||
*/python?.?/* | ||
*/models/migrations/* | ||
*/migrations/* | ||
*/settings*.py | ||
*/urls.py | ||
*/wsgi.py | ||
|
This file contains 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 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 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 |
---|---|---|
@@ -1,6 +1,14 @@ | ||
from django.apps import AppConfig | ||
from django.conf import settings | ||
|
||
from arches.settings_utils import generate_frontend_configuration | ||
|
||
|
||
class ArchesReferencesConfig(AppConfig): | ||
name = "arches_references" | ||
verbose_name = "Arches References" | ||
is_arches_application = True | ||
|
||
def ready(self): | ||
if settings.APP_NAME.lower() == self.name: | ||
generate_frontend_configuration() |
This file contains 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
File renamed without changes.
File renamed without changes.
This file contains 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 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 |
---|---|---|
@@ -1,29 +1,20 @@ | ||
{ | ||
"extends": "./.tsconfig-paths.json", | ||
"compilerOptions": { | ||
"noEmit": true, | ||
"target": "ESNext", | ||
"module": "ESNext", | ||
"moduleResolution": "bundler", | ||
"resolveJsonModule": true, | ||
"jsx": "preserve", | ||
"jsxImportSource": "vue", | ||
"noImplicitThis": false, | ||
"strict": true, | ||
"noEmit": true, | ||
"noImplicitThis": false, | ||
"verbatimModuleSyntax": true, | ||
"target": "ESNext", | ||
"useDefineForClassFields": true, | ||
"esModuleInterop": true, | ||
"forceConsistentCasingInFileNames": true, | ||
"resolveJsonModule": true, | ||
"skipLibCheck": true, | ||
"baseUrl": "arches_references/src/", | ||
"paths": { | ||
"@/*": [ | ||
"*.ts", | ||
"*.vue" | ||
] | ||
} | ||
}, | ||
"include": [ | ||
"**/*.ts", | ||
"**/*.vue" | ||
] | ||
"allowImportingTsExtensions": true | ||
} | ||
} |
This file contains 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 |
---|---|---|
@@ -1,36 +1,64 @@ | ||
import fs from 'fs'; | ||
import path from 'path'; | ||
import vue from "@vitejs/plugin-vue"; | ||
import { defineConfig } from "vitest/config"; | ||
|
||
|
||
const exclude = [ | ||
'**/node_modules/**', | ||
'**/dist/**', | ||
'**/cypress/**', | ||
'**/.{idea,git,cache,output,temp}/**', | ||
'**/{karma,rollup,webpack,vite,vitest,jest,ava,babel,nyc,cypress,tsup,build}.config.*', | ||
path.join(path.basename(__dirname), 'install', '**') | ||
]; | ||
|
||
export default defineConfig({ | ||
plugins: [vue()], | ||
test: { | ||
alias: { | ||
'@/': new URL(path.join(path.basename(__dirname), 'src', '/'), import.meta.url).pathname, | ||
}, | ||
coverage: { | ||
include: [path.join(path.basename(__dirname), 'src', '/')], | ||
exclude: exclude, | ||
reporter: [ | ||
['clover', { 'file': 'coverage.xml' }], | ||
'text', | ||
], | ||
reportsDirectory: path.join(__dirname, 'coverage', 'frontend'), | ||
}, | ||
environment: "jsdom", | ||
globals: true, | ||
exclude: exclude, | ||
passWithNoTests: true, | ||
setupFiles: ['vitest.setup.mts'], | ||
}, | ||
}); | ||
|
||
import { defineConfig } from 'vite'; | ||
|
||
import type { UserConfigExport } from 'vite'; | ||
|
||
|
||
function generateConfig(): Promise<UserConfigExport> { | ||
return new Promise((resolve, reject) => { | ||
const exclude = [ | ||
'**/node_modules/**', | ||
'**/dist/**', | ||
'**/install/**', | ||
'**/cypress/**', | ||
'**/.{idea,git,cache,output,temp}/**', | ||
'**/{karma,rollup,webpack,vite,vitest,jest,ava,babel,nyc,cypress,tsup,build}.config.*', | ||
]; | ||
|
||
const rawData = fs.readFileSync(path.join(__dirname, '.frontend-configuration-settings.json'), 'utf-8'); | ||
const parsedData = JSON.parse(rawData); | ||
|
||
const alias: { [key: string]: string } = { | ||
'@/arches': path.join(parsedData['ROOT_DIR'], 'app', 'src', 'arches'), | ||
}; | ||
|
||
for ( | ||
const [archesApplicationName, archesApplicationPath] | ||
of Object.entries( | ||
parsedData['ARCHES_APPLICATIONS_PATHS'] as { [key: string]: string } | ||
) | ||
) { | ||
alias[`@/${archesApplicationName}`] = path.join(archesApplicationPath, 'src', archesApplicationName); | ||
} | ||
|
||
resolve({ | ||
plugins: [vue()], | ||
test: { | ||
alias: alias, | ||
coverage: { | ||
include: [path.join(path.basename(__dirname), 'app', 'src', path.sep)], | ||
exclude: exclude, | ||
reporter: [ | ||
['clover', { 'file': 'coverage.xml' }], | ||
'text', | ||
], | ||
reportsDirectory: path.join(__dirname, 'coverage', 'frontend'), | ||
}, | ||
environment: "jsdom", | ||
globals: true, | ||
exclude: exclude, | ||
passWithNoTests: true, | ||
setupFiles: ['vitest.setup.mts'], | ||
}, | ||
}); | ||
|
||
}); | ||
}; | ||
|
||
export default (async () => { | ||
const config = await generateConfig(); | ||
return defineConfig(config); | ||
})(); |
This file contains 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.