@betty-blocks/cli 25.109.0-beta.1 → 26.0.0-alpha.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/assets/app-functions/wasm-template/.wasm-functions +0 -0
- package/assets/app-functions/wasm-template/functions/say-hello/1.0/Cargo.lock +449 -0
- package/assets/app-functions/wasm-template/functions/say-hello/1.0/Cargo.toml +10 -0
- package/assets/app-functions/wasm-template/functions/say-hello/1.0/Justfile +6 -0
- package/assets/app-functions/wasm-template/functions/say-hello/1.0/function.json +35 -0
- package/assets/app-functions/wasm-template/functions/say-hello/1.0/src/lib.rs +19 -0
- package/assets/app-functions/wasm-template/functions/say-hello/1.0/wit/world.wit +13 -0
- package/build/src/bb-blocks-new.js +5361 -2181
- package/build/src/bb-blocks-publish.js +11493 -18303
- package/build/src/bb-blocks-release.js +65 -46
- package/build/src/bb-blocks.js +32 -32
- package/build/src/bb-bundle-init.js +1542 -912
- package/build/src/bb-bundle.js +35 -32
- package/build/src/bb-components-build.js +34965 -7598
- package/build/src/bb-components-create.js +1542 -912
- package/build/src/bb-components-generate.js +1542 -912
- package/build/src/bb-components-publish-bundle.js +1519 -889
- package/build/src/bb-components-publish.js +1522 -892
- package/build/src/bb-components-serve.js +1524 -894
- package/build/src/bb-components.js +32 -32
- package/build/src/bb-functions-bump.js +6047 -2733
- package/build/src/bb-functions-init.js +100 -593
- package/build/src/bb-functions-login.js +65 -46
- package/build/src/bb-functions-logout.js +65 -46
- package/build/src/bb-functions-new.js +5464 -2195
- package/build/src/bb-functions-publish.js +15134 -76022
- package/build/src/bb-functions-validate.js +7262 -3950
- package/build/src/bb-functions.js +35 -37
- package/build/src/bb.js +76 -74
- package/package.json +41 -42
- package/assets/app-functions/templates/test/helpers.js +0 -3
- package/assets/app-functions/templates/test/say-hello.test.js +0 -4
- package/assets/functions/packer/package.json +0 -9
- package/assets/functions/packer/webpack.config.js +0 -12
- package/assets/functions/templates/functions.json +0 -14
- package/assets/functions/templates/package.json +0 -11
- package/assets/functions/templates/src/all-users.js +0 -14
- package/assets/functions/templates/src/get-json.js +0 -9
- package/assets/functions/templates/src/index.js +0 -5
- package/assets/functions/templates/src/say-hello.js +0 -13
- package/build/src/bb-functions-build.js +0 -4285
- package/src/bb.ts +0 -31
- /package/assets/app-functions/{templates → js-template}/.app-functions +0 -0
- /package/assets/app-functions/{templates → js-template}/functions/say-hello/1.0/function.json +0 -0
- /package/assets/app-functions/{templates → js-template}/functions/say-hello/1.0/index.js +0 -0
- /package/assets/app-functions/{templates → js-template}/package.json +0 -0
package/src/bb.ts
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env bun
|
|
2
|
-
|
|
3
|
-
import chalk from 'chalk';
|
|
4
|
-
import { Command } from 'commander';
|
|
5
|
-
|
|
6
|
-
import pkg from '../package.json';
|
|
7
|
-
import { type CommandBB } from './types';
|
|
8
|
-
|
|
9
|
-
const availableCommands: CommandBB[] = [
|
|
10
|
-
'blocks',
|
|
11
|
-
'components',
|
|
12
|
-
'functions',
|
|
13
|
-
'bundle',
|
|
14
|
-
'help',
|
|
15
|
-
];
|
|
16
|
-
|
|
17
|
-
const program = new Command();
|
|
18
|
-
|
|
19
|
-
program
|
|
20
|
-
.description('Betty Blocks CLI')
|
|
21
|
-
.version(pkg.version, '-v, --version')
|
|
22
|
-
.command('components [cmd]', 'manage your component sets')
|
|
23
|
-
.command('blocks [cmd]', 'manage your blocks')
|
|
24
|
-
.command('functions [cmd]', 'manage your custom functions')
|
|
25
|
-
.command('bundle [cmd]', 'manage your vendor bundle')
|
|
26
|
-
.on('command:*', ([command]: string[]): void => {
|
|
27
|
-
if (!availableCommands.includes(command as CommandBB)) {
|
|
28
|
-
throw new Error(chalk.red(`\nInvalid command: ${command}\n`));
|
|
29
|
-
}
|
|
30
|
-
})
|
|
31
|
-
.parse(process.argv);
|
|
File without changes
|
/package/assets/app-functions/{templates → js-template}/functions/say-hello/1.0/function.json
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|