@betty-blocks/cli 25.38.0 → 25.38.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.
@@ -1,15 +1,12 @@
1
1
  {
2
2
  "name": "component-set",
3
- "version": "1.227.0",
3
+ "version": "1.0.0",
4
4
  "main": "dist/templates.json",
5
5
  "license": "UNLICENSED",
6
- "private": false,
6
+ "private": true,
7
7
  "devDependencies": {
8
8
  "@betty-blocks/cli": "^25.27.1",
9
- "@commitlint/cli": "^16.1.0",
10
- "@commitlint/config-angular": "^16.0.0",
11
- "@semantic-release/changelog": "^6.0.1",
12
- "@semantic-release/git": "^10.0.1",
9
+ "@betty-blocks/component-sdk": "^1.7.1",
13
10
  "@types/node": "^17.0.10",
14
11
  "@typescript-eslint/eslint-plugin": "^5.21.0",
15
12
  "@typescript-eslint/parser": "^5.21.0",
@@ -22,47 +19,15 @@
22
19
  "eslint-plugin-prettier": "^4.0.0",
23
20
  "eslint-plugin-react": "^7.27.1",
24
21
  "eslint-plugin-react-hooks": "^4.3.0",
25
- "husky": "^4.2.5",
26
22
  "nodemon": "^2.0.15",
27
- "prettier": "^2.5.0",
28
- "semantic-release": "^19.0.2",
29
- "webpack": "^5.64.4",
30
- "webpack-cli": "^4.9.1"
31
- },
32
- "husky": {
33
- "hooks": {
34
- "pre-commit": "yarn lint",
35
- "commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
36
- }
23
+ "prettier": "^2.5.0"
37
24
  },
38
25
  "scripts": {
39
26
  "start": "bb components serve -p 5002",
40
27
  "build": "bb components build",
41
28
  "dev": "nodemon",
42
29
  "lint": "eslint --ext .js,.ts,.tsx ./src",
43
- "lint:ci": "yarn lint --max-warnings 0",
44
- "prettier:base": "prettier --single-quote",
45
- "prettier:check": "yarn prettier:base --list-different \"src/**/*.js\"",
46
- "prettier:write": "yarn prettier:base --write \"src/**/*.js\"",
47
- "upload": "bb components publish -b material-ui-component-set",
48
- "test": "echo \"Error: no test specified\" && exit 0",
49
- "bundle": "npx webpack --config webpack.config.js"
50
- },
51
- "files": ["dist"],
52
- "dependencies": {
53
- "@betty-blocks/component-sdk": "^1.7.1",
54
- "@date-io/date-fns": "^1.3.13",
55
- "@material-ui/core": "^4.9.11",
56
- "@material-ui/icons": "^4.11.2",
57
- "@material-ui/lab": "^4.0.0-alpha.50",
58
- "@material-ui/pickers": "^3.2.10",
59
- "@material-ui/styles": "^4.9.10",
60
- "date-fns": "^2.11.0",
61
- "react": "^16.13.1",
62
- "react-dom": "^16.13.1"
30
+ "lint:ci": "yarn lint --max-warnings 0"
63
31
  },
64
- "repository": {
65
- "type": "git",
66
- "url": "https://github.com/bettyblocks/material-ui-component-set.git"
67
- }
32
+ "files": ["dist"]
68
33
  }
@@ -1,17 +1,4 @@
1
- import { PrefabComponentOption, showIfTrue } from '@betty-blocks/component-sdk';
2
-
3
- // TODO: export OptionProducer from the sdk
4
- type OptionProducer = (key: string) => PrefabComponentOption;
5
- type Attributes = Partial<PrefabComponentOption>;
6
-
7
- export type PartialBy<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>;
8
-
9
- export const updateOption = (
10
- producer: OptionProducer,
11
- attrs: Attributes,
12
- ): OptionProducer => {
13
- return (key) => ({ ...producer(key), ...attrs });
14
- };
1
+ import { showIfTrue } from '@betty-blocks/component-sdk';
15
2
 
16
3
  export const showOn = (key: string) => ({
17
4
  configuration: { condition: showIfTrue(key) },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@betty-blocks/cli",
3
- "version": "25.38.0",
3
+ "version": "25.38.1",
4
4
  "description": "A Betty Blocks CLI",
5
5
  "main": "build/index.js",
6
6
  "author": "Niek Nijland <niek.nijland@bettyblocks.com>",