@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.
Files changed (46) hide show
  1. package/assets/app-functions/wasm-template/.wasm-functions +0 -0
  2. package/assets/app-functions/wasm-template/functions/say-hello/1.0/Cargo.lock +449 -0
  3. package/assets/app-functions/wasm-template/functions/say-hello/1.0/Cargo.toml +10 -0
  4. package/assets/app-functions/wasm-template/functions/say-hello/1.0/Justfile +6 -0
  5. package/assets/app-functions/wasm-template/functions/say-hello/1.0/function.json +35 -0
  6. package/assets/app-functions/wasm-template/functions/say-hello/1.0/src/lib.rs +19 -0
  7. package/assets/app-functions/wasm-template/functions/say-hello/1.0/wit/world.wit +13 -0
  8. package/build/src/bb-blocks-new.js +5361 -2181
  9. package/build/src/bb-blocks-publish.js +11493 -18303
  10. package/build/src/bb-blocks-release.js +65 -46
  11. package/build/src/bb-blocks.js +32 -32
  12. package/build/src/bb-bundle-init.js +1542 -912
  13. package/build/src/bb-bundle.js +35 -32
  14. package/build/src/bb-components-build.js +34965 -7598
  15. package/build/src/bb-components-create.js +1542 -912
  16. package/build/src/bb-components-generate.js +1542 -912
  17. package/build/src/bb-components-publish-bundle.js +1519 -889
  18. package/build/src/bb-components-publish.js +1522 -892
  19. package/build/src/bb-components-serve.js +1524 -894
  20. package/build/src/bb-components.js +32 -32
  21. package/build/src/bb-functions-bump.js +6047 -2733
  22. package/build/src/bb-functions-init.js +100 -593
  23. package/build/src/bb-functions-login.js +65 -46
  24. package/build/src/bb-functions-logout.js +65 -46
  25. package/build/src/bb-functions-new.js +5464 -2195
  26. package/build/src/bb-functions-publish.js +15134 -76022
  27. package/build/src/bb-functions-validate.js +7262 -3950
  28. package/build/src/bb-functions.js +35 -37
  29. package/build/src/bb.js +76 -74
  30. package/package.json +41 -42
  31. package/assets/app-functions/templates/test/helpers.js +0 -3
  32. package/assets/app-functions/templates/test/say-hello.test.js +0 -4
  33. package/assets/functions/packer/package.json +0 -9
  34. package/assets/functions/packer/webpack.config.js +0 -12
  35. package/assets/functions/templates/functions.json +0 -14
  36. package/assets/functions/templates/package.json +0 -11
  37. package/assets/functions/templates/src/all-users.js +0 -14
  38. package/assets/functions/templates/src/get-json.js +0 -9
  39. package/assets/functions/templates/src/index.js +0 -5
  40. package/assets/functions/templates/src/say-hello.js +0 -13
  41. package/build/src/bb-functions-build.js +0 -4285
  42. package/src/bb.ts +0 -31
  43. /package/assets/app-functions/{templates → js-template}/.app-functions +0 -0
  44. /package/assets/app-functions/{templates → js-template}/functions/say-hello/1.0/function.json +0 -0
  45. /package/assets/app-functions/{templates → js-template}/functions/say-hello/1.0/index.js +0 -0
  46. /package/assets/app-functions/{templates → js-template}/package.json +0 -0
@@ -1,9 +0,0 @@
1
- {
2
- "scripts": {
3
- "build": "npx webpack --config webpack.config.js"
4
- },
5
- "dependencies": {
6
- "webpack": "^4.42.1",
7
- "webpack-cli": "^3.3.11"
8
- }
9
- }
@@ -1,12 +0,0 @@
1
- module.exports = {
2
- // WARNING: Do not change this section
3
- target: 'node',
4
- entry: './src/index.js',
5
- mode: 'production',
6
- output: {
7
- filename: 'custom.js',
8
- libraryTarget: 'var',
9
- library: 'custom',
10
- },
11
- // END SECTION
12
- };
@@ -1,14 +0,0 @@
1
- {
2
- "allUsers": {
3
- "returnType": "string"
4
- },
5
- "getJSON": {
6
- "returnType": "string"
7
- },
8
- "sayHello": {
9
- "returnType": "string",
10
- "inputVariables": {
11
- "name": "string"
12
- }
13
- }
14
- }
@@ -1,11 +0,0 @@
1
- {
2
- "name": "functions",
3
- "version": "1.0.0",
4
- "main": "index.js",
5
- "dependencies": {
6
- "lodash": "^4.17.15"
7
- },
8
- "scripts": {
9
- "test": "bb functions test"
10
- }
11
- }
@@ -1,14 +0,0 @@
1
- async function allUsers() {
2
- const { allUser } = await gql(`{
3
- allUser {
4
- results {
5
- id
6
- email
7
- }
8
- }
9
- }`);
10
-
11
- return allUser.results;
12
- }
13
-
14
- export default allUsers;
@@ -1,9 +0,0 @@
1
- async function getJSON() {
2
- const users = await fetch('https://jsonplaceholder.typicode.com/users').then(
3
- (response) => response.json(),
4
- );
5
-
6
- return users;
7
- }
8
-
9
- export default getJSON;
@@ -1,5 +0,0 @@
1
- import allUsers from './all-users';
2
- import getJSON from './get-json';
3
- import sayHello from './say-hello';
4
-
5
- export { allUsers, getJSON, sayHello };
@@ -1,13 +0,0 @@
1
- import join from 'lodash/join';
2
-
3
- async function sayHello() {
4
- const name = await context('name');
5
-
6
- if (name === 'oops') {
7
- throw 'Ooops. Something went wrong.';
8
- } else {
9
- return join(['Hello', name], ',');
10
- }
11
- }
12
-
13
- export default sayHello;