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.
- package/README.md +29 -94
- package/build/enums.d.ts +1 -0
- package/build/enums.js +4 -0
- package/build/enums.js.map +1 -0
- package/build/index.d.ts +5 -0
- package/build/index.js +10 -0
- package/build/index.js.map +1 -0
- package/package.json +45 -6
- package/.editorconfig +0 -11
- package/.github/workflows/node.js.yml +0 -25
- package/.nvmrc +0 -1
- package/.prettierrc.json +0 -8
- package/.vscode/extensions.json +0 -3
- package/.vscode/settings.json +0 -4
- package/CHANGELOG.md +0 -113
- package/packages/cli/README.md +0 -53
- package/packages/cli/bin/dev.js +0 -5
- package/packages/cli/bin/run.cmd +0 -3
- package/packages/cli/enums.ts +0 -4
- package/packages/cli/index.ts +0 -11
- package/packages/cli/package.json +0 -59
- package/packages/cli/tsconfig.json +0 -9
- package/packages/shared/index.ts +0 -6
- package/packages/shared/package.json +0 -45
- package/packages/shared/src/cli-progress.ts +0 -3
- package/packages/shared/src/commands/cli-all-commands.ts +0 -6
- package/packages/shared/src/commands/version-command.ts +0 -12
- package/packages/shared/src/consola.ts +0 -1
- package/packages/shared/src/open.ts +0 -3
- package/packages/shared/src/unzip.ts +0 -15
- package/packages/shared/tsconfig.json +0 -9
- package/packages/theme/bin/dev.js +0 -5
- package/packages/theme/bin/run.cmd +0 -3
- package/packages/theme/bin/run.js +0 -5
- package/packages/theme/index.ts +0 -21
- package/packages/theme/jest.config.ts +0 -3
- package/packages/theme/package.json +0 -66
- package/packages/theme/src/commands/theme/create.ts +0 -51
- package/packages/theme/src/commands/theme/delete-site.ts +0 -30
- package/packages/theme/src/commands/theme/delete-theme.ts +0 -39
- package/packages/theme/src/commands/theme/dev.ts +0 -47
- package/packages/theme/src/commands/theme/pull.ts +0 -26
- package/packages/theme/src/enums.ts +0 -55
- package/packages/theme/src/services/ClientCredentials.ts +0 -127
- package/packages/theme/src/services/Constants.ts +0 -19
- package/packages/theme/src/services/CreateTheme.ts +0 -88
- package/packages/theme/src/services/DeleteSite.ts +0 -30
- package/packages/theme/src/services/DeleteTheme.ts +0 -46
- package/packages/theme/src/services/FileManager.ts +0 -62
- package/packages/theme/src/services/Request.ts +0 -18
- package/packages/theme/src/services/StartTheme.ts +0 -363
- package/packages/theme/src/services/SyncTheme.ts +0 -108
- package/packages/theme/src/services/ThemeManager.ts +0 -118
- package/packages/theme/src/services/Tsoft.ts +0 -151
- package/packages/theme/src/services/types.ts +0 -90
- package/packages/theme/src/types.ts +0 -20
- package/packages/theme/src/utils/screen.ts +0 -28
- package/packages/theme/src/utils/utils.ts +0 -83
- package/packages/theme/tests/FileManager.test.js +0 -90
- package/packages/theme/tsconfig.json +0 -9
- package/pnpm-workspace.yaml +0 -2
- package/pull_request_template.md +0 -5
- package/scripts/prebuild.js +0 -45
- package/scripts/versions.js +0 -70
- package/tsconfig.build.json +0 -21
- /package/{packages/cli/bin → bin}/run.js +0 -0
package/scripts/versions.js
DELETED
|
@@ -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()
|
package/tsconfig.build.json
DELETED
|
@@ -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
|