tsoft-cli 2.0.0 → 2.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (66) hide show
  1. package/README.md +29 -94
  2. package/build/enums.d.ts +1 -0
  3. package/build/enums.js +4 -0
  4. package/build/enums.js.map +1 -0
  5. package/build/index.d.ts +5 -0
  6. package/build/index.js +10 -0
  7. package/build/index.js.map +1 -0
  8. package/package.json +45 -6
  9. package/.editorconfig +0 -11
  10. package/.github/workflows/node.js.yml +0 -25
  11. package/.nvmrc +0 -1
  12. package/.prettierrc.json +0 -8
  13. package/.vscode/extensions.json +0 -3
  14. package/.vscode/settings.json +0 -4
  15. package/CHANGELOG.md +0 -113
  16. package/packages/cli/README.md +0 -53
  17. package/packages/cli/bin/dev.js +0 -5
  18. package/packages/cli/bin/run.cmd +0 -3
  19. package/packages/cli/enums.ts +0 -4
  20. package/packages/cli/index.ts +0 -11
  21. package/packages/cli/package.json +0 -59
  22. package/packages/cli/tsconfig.json +0 -9
  23. package/packages/shared/index.ts +0 -6
  24. package/packages/shared/package.json +0 -45
  25. package/packages/shared/src/cli-progress.ts +0 -3
  26. package/packages/shared/src/commands/cli-all-commands.ts +0 -6
  27. package/packages/shared/src/commands/version-command.ts +0 -12
  28. package/packages/shared/src/consola.ts +0 -1
  29. package/packages/shared/src/open.ts +0 -3
  30. package/packages/shared/src/unzip.ts +0 -15
  31. package/packages/shared/tsconfig.json +0 -9
  32. package/packages/theme/bin/dev.js +0 -5
  33. package/packages/theme/bin/run.cmd +0 -3
  34. package/packages/theme/bin/run.js +0 -5
  35. package/packages/theme/index.ts +0 -21
  36. package/packages/theme/jest.config.ts +0 -3
  37. package/packages/theme/package.json +0 -66
  38. package/packages/theme/src/commands/theme/create.ts +0 -51
  39. package/packages/theme/src/commands/theme/delete-site.ts +0 -30
  40. package/packages/theme/src/commands/theme/delete-theme.ts +0 -39
  41. package/packages/theme/src/commands/theme/dev.ts +0 -47
  42. package/packages/theme/src/commands/theme/pull.ts +0 -26
  43. package/packages/theme/src/enums.ts +0 -55
  44. package/packages/theme/src/services/ClientCredentials.ts +0 -127
  45. package/packages/theme/src/services/Constants.ts +0 -19
  46. package/packages/theme/src/services/CreateTheme.ts +0 -88
  47. package/packages/theme/src/services/DeleteSite.ts +0 -30
  48. package/packages/theme/src/services/DeleteTheme.ts +0 -46
  49. package/packages/theme/src/services/FileManager.ts +0 -62
  50. package/packages/theme/src/services/Request.ts +0 -18
  51. package/packages/theme/src/services/StartTheme.ts +0 -363
  52. package/packages/theme/src/services/SyncTheme.ts +0 -108
  53. package/packages/theme/src/services/ThemeManager.ts +0 -118
  54. package/packages/theme/src/services/Tsoft.ts +0 -151
  55. package/packages/theme/src/services/types.ts +0 -90
  56. package/packages/theme/src/types.ts +0 -20
  57. package/packages/theme/src/utils/screen.ts +0 -28
  58. package/packages/theme/src/utils/utils.ts +0 -83
  59. package/packages/theme/tests/FileManager.test.js +0 -90
  60. package/packages/theme/tsconfig.json +0 -9
  61. package/pnpm-workspace.yaml +0 -2
  62. package/pull_request_template.md +0 -5
  63. package/scripts/prebuild.js +0 -45
  64. package/scripts/versions.js +0 -70
  65. package/tsconfig.build.json +0 -21
  66. /package/{packages/cli/bin → bin}/run.js +0 -0
@@ -1,70 +0,0 @@
1
- /**
2
- * Her build alma işleminden sonra package.json içindeki bağımlılıklardan versiyonu workspace:* olanların gerçek versiyonlarını yerine yazar.
3
- */
4
-
5
- import fs from 'node:fs'
6
- import path from 'node:path'
7
-
8
- const cwd = process.cwd()
9
- const packages = 'packages'
10
- const packageJSON = 'package.json'
11
-
12
- /**
13
- * Packages içindeki klasör isimlerini alır.
14
- * @param {string} source
15
- * @returns {string[]} cli, shared, ...
16
- */
17
- function getPackagesFolder(source) {
18
- return fs.readdirSync(source).filter((file) => fs.statSync(path.join(source, file)).isDirectory())
19
- }
20
-
21
- /**
22
- * Packages klasörü içindeki package.json dosyalarını alır.
23
- * @param {string} pkgName
24
- * @returns {string}
25
- */
26
- function getPackagesPackageJsons(pkgName) {
27
- return fs.readFileSync(path.join(cwd, packages, pkgName, packageJSON)).toString()
28
- }
29
-
30
- /**
31
- * Packages klasörü içindeki paketlerin package.json dosyalarını değiştirir.
32
- * @param {string} pkgName
33
- * @param {string} data
34
- */
35
- function setPackagesPackageJsons(pkgName, data) {
36
- return fs.writeFileSync(path.join(cwd, packages, pkgName, packageJSON), JSON.stringify(data, null, 2))
37
- }
38
-
39
- let packageStore = []
40
-
41
- function start() {
42
- const packagesFolderNames = getPackagesFolder(path.join(cwd, packages))
43
-
44
- //Packages içindeki paketlerin isimlerini ve versiyonları aldık.
45
- for (const pkgName of packagesFolderNames) {
46
- const parsedPackageJSON = JSON.parse(getPackagesPackageJsons(pkgName))
47
- packageStore.push({
48
- name: parsedPackageJSON.name,
49
- version: parsedPackageJSON.version,
50
- })
51
- }
52
-
53
- //Packages içindeki paketlerin gerçek versiyonlarını bağımlılıklarda düzenledik.
54
- for (const pkgName of packagesFolderNames) {
55
- const parsedPackageJSON = JSON.parse(getPackagesPackageJsons(pkgName))
56
-
57
- for (const pkg of packageStore) {
58
- if (parsedPackageJSON.dependencies && parsedPackageJSON.dependencies[pkg.name]) {
59
- parsedPackageJSON.dependencies[pkg.name] = pkg.version
60
- }
61
- if (parsedPackageJSON.devDependencies && parsedPackageJSON.devDependencies[pkg.name]) {
62
- parsedPackageJSON.devDependencies[pkg.name] = pkg.version
63
- }
64
- }
65
-
66
- setPackagesPackageJsons(pkgName, parsedPackageJSON)
67
- }
68
- }
69
-
70
- start()
@@ -1,21 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "target": "ES2020",
4
- "module": "NodeNext",
5
- "moduleResolution": "NodeNext",
6
- "esModuleInterop": true,
7
- "allowSyntheticDefaultImports": true,
8
- "sourceMap": true,
9
- "outDir": "build",
10
- "resolveJsonModule": true,
11
- "declaration": true,
12
- "noImplicitAny": true,
13
- "strictNullChecks": false,
14
- "skipLibCheck": true,
15
- "forceConsistentCasingInFileNames": true,
16
- "lib": [ "ESNext" ],
17
- },
18
- "ts-node": {
19
- "esm": true
20
- }
21
- }
File without changes