@xylabs/ts-scripts-react-yarn3 6.0.9 → 6.1.0
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/package.json +9 -4
- package/src/actions/analyze.ts +0 -5
- package/src/actions/eject.ts +0 -6
- package/src/actions/index.ts +0 -5
- package/src/actions/sitemap.ts +0 -6
- package/src/actions/start.ts +0 -6
- package/src/actions/test.ts +0 -6
- package/src/bin/package/clean-outputs.ts +0 -5
- package/src/bin/package/clean-typescript.ts +0 -5
- package/src/bin/package/clean.ts +0 -12
- package/src/bin/package/compile-only.ts +0 -11
- package/src/bin/package/compile-tsup.ts +0 -11
- package/src/bin/package/compile.ts +0 -15
- package/src/bin/package/copy-assets-cjs.ts +0 -11
- package/src/bin/package/copy-assets-esm.ts +0 -11
- package/src/bin/package/deps.ts +0 -11
- package/src/bin/package/gen-docs.ts +0 -12
- package/src/bin/package/publint.ts +0 -12
- package/src/bin/package/recompile.ts +0 -11
- package/src/bin/xy.ts +0 -12
- package/src/index.ts +0 -2
- package/src/lib/index.ts +0 -1
- package/src/lib/xyReact.ts +0 -64
- package/tsconfig.build.json +0 -29
- package/tsconfig.json +0 -4
- package/tsconfig.test.json +0 -4
- package/tsup.config.ts +0 -21
- package/xy.config.ts +0 -10
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xylabs/ts-scripts-react-yarn3",
|
|
3
|
-
"version": "6.0
|
|
3
|
+
"version": "6.1.0",
|
|
4
4
|
"description": "TypeScript project scripts",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"xylabs",
|
|
@@ -39,15 +39,20 @@
|
|
|
39
39
|
"package-deps": "dist/neutral/bin/package/deps.mjs",
|
|
40
40
|
"xy": "dist/neutral/bin/xy.mjs"
|
|
41
41
|
},
|
|
42
|
+
"files": [
|
|
43
|
+
"dist",
|
|
44
|
+
"README.md",
|
|
45
|
+
"LICENSE"
|
|
46
|
+
],
|
|
42
47
|
"dependencies": {
|
|
43
|
-
"@xylabs/ts-scripts-yarn3": "^6.0
|
|
48
|
+
"@xylabs/ts-scripts-yarn3": "^6.1.0",
|
|
44
49
|
"chalk": "^5.4.1",
|
|
45
50
|
"yargs": "^17.7.2"
|
|
46
51
|
},
|
|
47
52
|
"devDependencies": {
|
|
48
53
|
"@types/yargs": "^17.0.33",
|
|
49
|
-
"@xylabs/ts-scripts-yarn3": "^6.0
|
|
50
|
-
"@xylabs/tsconfig": "^6.0
|
|
54
|
+
"@xylabs/ts-scripts-yarn3": "^6.1.0",
|
|
55
|
+
"@xylabs/tsconfig": "^6.1.0",
|
|
51
56
|
"publint": "^0.3.9",
|
|
52
57
|
"tsup": "8.4.0",
|
|
53
58
|
"typescript": "^5.8.2"
|
package/src/actions/analyze.ts
DELETED
package/src/actions/eject.ts
DELETED
package/src/actions/index.ts
DELETED
package/src/actions/sitemap.ts
DELETED
package/src/actions/start.ts
DELETED
package/src/actions/test.ts
DELETED
package/src/bin/package/clean.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
import { packageCompile } from '@xylabs/ts-scripts-yarn3'
|
|
4
|
-
import chalk from 'chalk'
|
|
5
|
-
|
|
6
|
-
packageCompile({ verbose: true, publint: false })
|
|
7
|
-
.then(value => (process.exitCode = value))
|
|
8
|
-
.catch((reason) => {
|
|
9
|
-
console.error(chalk.red(reason))
|
|
10
|
-
process.exitCode = 1
|
|
11
|
-
})
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
import { packageCompileTsup } from '@xylabs/ts-scripts-yarn3'
|
|
4
|
-
import chalk from 'chalk'
|
|
5
|
-
|
|
6
|
-
packageCompileTsup({ verbose: true })
|
|
7
|
-
.then(value => (process.exitCode = value))
|
|
8
|
-
.catch((reason) => {
|
|
9
|
-
console.error(chalk.red(reason))
|
|
10
|
-
process.exitCode = 1
|
|
11
|
-
})
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
import { packageCompile } from '@xylabs/ts-scripts-yarn3'
|
|
4
|
-
import chalk from 'chalk'
|
|
5
|
-
|
|
6
|
-
packageCompile({ verbose: false })
|
|
7
|
-
.then((value) => {
|
|
8
|
-
if (value) {
|
|
9
|
-
process.exit(value)
|
|
10
|
-
}
|
|
11
|
-
})
|
|
12
|
-
.catch((reason) => {
|
|
13
|
-
console.error(chalk.red(reason))
|
|
14
|
-
process.exit(-1)
|
|
15
|
-
})
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
import { packageCopyAssets } from '@xylabs/ts-scripts-yarn3'
|
|
4
|
-
import chalk from 'chalk'
|
|
5
|
-
|
|
6
|
-
packageCopyAssets({ target: 'cjs' })
|
|
7
|
-
.then(value => (process.exitCode = value))
|
|
8
|
-
.catch((reason) => {
|
|
9
|
-
console.error(chalk.red(reason))
|
|
10
|
-
process.exitCode = 1
|
|
11
|
-
})
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
import { packageCopyAssets } from '@xylabs/ts-scripts-yarn3'
|
|
4
|
-
import chalk from 'chalk'
|
|
5
|
-
|
|
6
|
-
packageCopyAssets({ target: 'esm' })
|
|
7
|
-
.then(value => (process.exitCode = value))
|
|
8
|
-
.catch((reason) => {
|
|
9
|
-
console.error(chalk.red(reason))
|
|
10
|
-
process.exitCode = 1
|
|
11
|
-
})
|
package/src/bin/package/deps.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
import { packageDeps } from '@xylabs/ts-scripts-yarn3'
|
|
4
|
-
import chalk from 'chalk'
|
|
5
|
-
|
|
6
|
-
packageDeps()
|
|
7
|
-
.then(value => (process.exitCode = value))
|
|
8
|
-
.catch((ex: Error) => {
|
|
9
|
-
console.error(`Deps Failed: ${chalk.red(ex)}`)
|
|
10
|
-
process.exitCode = 0
|
|
11
|
-
})
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
import { packagePublint } from '@xylabs/ts-scripts-yarn3'
|
|
4
|
-
import chalk from 'chalk'
|
|
5
|
-
|
|
6
|
-
packagePublint()
|
|
7
|
-
.then(value => (process.exitCode = value))
|
|
8
|
-
.catch((ex: Error) => {
|
|
9
|
-
console.error(`Publint Failed: ${chalk.red(ex)}`)
|
|
10
|
-
console.error(chalk.gray(ex.stack))
|
|
11
|
-
process.exitCode = -1
|
|
12
|
-
})
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
import { packageRecompile } from '@xylabs/ts-scripts-yarn3'
|
|
4
|
-
import chalk from 'chalk'
|
|
5
|
-
|
|
6
|
-
packageRecompile()
|
|
7
|
-
.then(value => (process.exitCode = value))
|
|
8
|
-
.catch((reason) => {
|
|
9
|
-
console.error(chalk.red(reason))
|
|
10
|
-
process.exitCode = 1
|
|
11
|
-
})
|
package/src/bin/xy.ts
DELETED
package/src/index.ts
DELETED
package/src/lib/index.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './xyReact.ts'
|
package/src/lib/xyReact.ts
DELETED
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
xyBuildCommands, xyCommonCommands, xyInstallCommands, xyLintCommands, xyParseOptions,
|
|
5
|
-
} from '@xylabs/ts-scripts-yarn3'
|
|
6
|
-
import chalk from 'chalk'
|
|
7
|
-
|
|
8
|
-
import {
|
|
9
|
-
analyze, eject, sitemap, start,
|
|
10
|
-
} from '../actions/index.ts'
|
|
11
|
-
|
|
12
|
-
export const xyReact = async () => {
|
|
13
|
-
return await xyBuildCommands(xyInstallCommands(xyLintCommands(xyInstallCommands(xyCommonCommands(xyParseOptions())))))
|
|
14
|
-
.command(
|
|
15
|
-
'analyze',
|
|
16
|
-
'Analyze - Analyze Bundles',
|
|
17
|
-
(yargs) => {
|
|
18
|
-
return yargs
|
|
19
|
-
},
|
|
20
|
-
(argv) => {
|
|
21
|
-
if (argv.verbose) console.log('Analyzing')
|
|
22
|
-
process.exitCode = analyze()
|
|
23
|
-
},
|
|
24
|
-
)
|
|
25
|
-
.command(
|
|
26
|
-
'eject',
|
|
27
|
-
'Eject - Eject React project',
|
|
28
|
-
(yargs) => {
|
|
29
|
-
return yargs
|
|
30
|
-
},
|
|
31
|
-
(argv) => {
|
|
32
|
-
if (argv.verbose) console.log('Ejecting')
|
|
33
|
-
process.exitCode = eject()
|
|
34
|
-
},
|
|
35
|
-
)
|
|
36
|
-
.command(
|
|
37
|
-
'sitemap',
|
|
38
|
-
'Sitemap - Generate sitemap for the project',
|
|
39
|
-
(yargs) => {
|
|
40
|
-
return yargs
|
|
41
|
-
},
|
|
42
|
-
(argv) => {
|
|
43
|
-
if (argv.verbose) console.log('Generating Sitemap')
|
|
44
|
-
process.exitCode = sitemap()
|
|
45
|
-
},
|
|
46
|
-
)
|
|
47
|
-
.command(
|
|
48
|
-
'start',
|
|
49
|
-
'Start - Start project in browser',
|
|
50
|
-
(yargs) => {
|
|
51
|
-
return yargs
|
|
52
|
-
},
|
|
53
|
-
(argv) => {
|
|
54
|
-
if (argv.verbose) console.log('Starting')
|
|
55
|
-
process.exitCode = start()
|
|
56
|
-
},
|
|
57
|
-
)
|
|
58
|
-
.demandCommand(1)
|
|
59
|
-
.command('*', '', () => {
|
|
60
|
-
console.error(chalk.yellow(`Command not found [${chalk.magenta(process.argv[2])}]`))
|
|
61
|
-
console.log(chalk.gray("Try 'yarn xy --help' for list of commands"))
|
|
62
|
-
})
|
|
63
|
-
.help().argv
|
|
64
|
-
}
|
package/tsconfig.build.json
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"allowImportingTsExtensions": true,
|
|
4
|
-
"allowSyntheticDefaultImports": true,
|
|
5
|
-
"declaration": true,
|
|
6
|
-
"declarationMap": true,
|
|
7
|
-
"downlevelIteration": true,
|
|
8
|
-
"emitDecoratorMetadata": true,
|
|
9
|
-
"esModuleInterop": true,
|
|
10
|
-
"experimentalDecorators": true,
|
|
11
|
-
"isolatedModules": true,
|
|
12
|
-
"importHelpers": true,
|
|
13
|
-
"incremental": false,
|
|
14
|
-
"module": "NodeNext",
|
|
15
|
-
"moduleResolution": "NodeNext",
|
|
16
|
-
"noImplicitAny": true,
|
|
17
|
-
"noImplicitOverride": true,
|
|
18
|
-
"outDir": "dist",
|
|
19
|
-
"removeComments": true,
|
|
20
|
-
"resolveJsonModule": true,
|
|
21
|
-
"skipDefaultLibCheck": true,
|
|
22
|
-
"skipLibCheck": true,
|
|
23
|
-
"sourceMap": true,
|
|
24
|
-
"strict": true,
|
|
25
|
-
"target": "ESNext",
|
|
26
|
-
},
|
|
27
|
-
"exclude": [".github", ".vscode", ".yarn", "dist", "node_modules", "storybook-static", "build"],
|
|
28
|
-
"include": ["src"]
|
|
29
|
-
}
|
package/tsconfig.json
DELETED
package/tsconfig.test.json
DELETED
package/tsup.config.ts
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { defineConfig } from 'tsup'
|
|
2
|
-
|
|
3
|
-
export default defineConfig({
|
|
4
|
-
bundle: true,
|
|
5
|
-
cjsInterop: true,
|
|
6
|
-
clean: false,
|
|
7
|
-
dts: { entry: ['src/index.ts'] },
|
|
8
|
-
entry: ['src'],
|
|
9
|
-
format: ['esm'],
|
|
10
|
-
outExtension({ format }) {
|
|
11
|
-
if (format === 'cjs') {
|
|
12
|
-
return { js: '.cjs' }
|
|
13
|
-
}
|
|
14
|
-
return { js: '.mjs' }
|
|
15
|
-
},
|
|
16
|
-
outDir: 'dist',
|
|
17
|
-
sourcemap: true,
|
|
18
|
-
splitting: false,
|
|
19
|
-
target: 'esnext',
|
|
20
|
-
tsconfig: 'tsconfig.build.json',
|
|
21
|
-
})
|