Skip to content

Commit

Permalink
Rename client dir to ui for clarity in turms-admin
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesChenX committed May 9, 2023
1 parent 5eb5df3 commit e49a45c
Show file tree
Hide file tree
Showing 120 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion turms-admin/cypress.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const { defineConfig } = require('cypress');
module.exports = defineConfig({
env: {
baseUrl: 'http://localhost:8510',
turms: require('./client/src/configs/resources.json')
turms: require('./ui/src/configs/resources.json')
},
e2e: {
specPattern: 'cypress/e2e/**/*.{cy,spec}.{js,ts}',
Expand Down
4 changes: 2 additions & 2 deletions turms-admin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"build:client-ast": "node script/generate-client-ast.js",
"cypress": "cypress open",
"delete": "pm2 delete server/ecosystem.config.js",
"eslint": "eslint --fix --ext .js,.ts,.vue client server",
"eslint": "eslint --fix --ext .js,.ts,.vue server ui",
"eslint:print": "eslint --print-config .eslintrc.js",
"inspect": "vite inspect",
"lint": "npm run eslint && npm run stylelint",
Expand All @@ -26,7 +26,7 @@
"serve": "vite serve --port 6510",
"start": "pm2 start server/ecosystem.config.js --env production",
"stop": "pm2 stop server/ecosystem.config.js",
"stylelint": "stylelint --fix client/**/*.{vue,css,sss,less,scss,sass}",
"stylelint": "stylelint --fix ui/**/*.{vue,css,sss,less,scss,sass}",
"test": "cypress run"
},
"husky": {
Expand Down
2 changes: 1 addition & 1 deletion turms-admin/script/generate-client-ast.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ const rootDir = path.dirname(path.dirname(__filename));

const declarations = parser.parse(path.join(rootDir, 'node_modules/turms-client-js/dist/turms-client.d.ts'));
const data = `${JSON.stringify(declarations, null, 2)}`;
fs.writeFileSync(path.join(rootDir, 'client/src/assets/turms-client-ast.json'), data);
fs.writeFileSync(path.join(rootDir, 'ui/src/assets/turms-client-ast.json'), data);

console.info('Done');
10 changes: 5 additions & 5 deletions turms-admin/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@
".eslintrc.js",
"vite.config.ts",
"cypress.config.ts",
"client/**/*",
"client/src/**/*.json",
"client/src/**/*.ts",
"client/src/**/*.vue",
"server/src/**/*"
"server/src/**/*",
"ui/**/*",
"ui/src/**/*.json",
"ui/src/**/*.ts",
"ui/src/**/*.vue"
]
}
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions turms-admin/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ import { visualizer } from 'rollup-plugin-visualizer';
const isReportMode = process.env.REPORT === 'true';

export default defineConfig(({mode }) => ({
root: './client',
root: './ui',
build: {
outDir: '../dist',
rollupOptions: {
input: {
app: fileURLToPath(new URL('./client/index.html', import.meta.url))
app: fileURLToPath(new URL('./ui/index.html', import.meta.url))
}
}
},
Expand Down

0 comments on commit e49a45c

Please sign in to comment.