@adbayb/create 0.6.0 → 0.10.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/CHANGELOG.md CHANGED
@@ -3,6 +3,28 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [0.10.0](https://github.com/adbayb/stack/compare/v0.9.0...v0.10.0) (2021-11-25)
7
+
8
+ ### Features
9
+
10
+ - **prettier-config:** make prettier a peer dependency ([7ff4fe8](https://github.com/adbayb/stack/commit/7ff4fe86438dbccfebe27ad71fabd2108e1b848e))
11
+
12
+ # [0.9.0](https://github.com/adbayb/stack/compare/v0.8.0...v0.9.0) (2021-11-23)
13
+
14
+ **Note:** Version bump only for package @adbayb/create
15
+
16
+ # [0.8.0](https://github.com/adbayb/stack/compare/v0.7.0...v0.8.0) (2021-11-23)
17
+
18
+ ### Features
19
+
20
+ - **create:** use husky v4 ([982c8be](https://github.com/adbayb/stack/commit/982c8bea835f1610d578175071b6d52e83cc8e92))
21
+
22
+ # [0.7.0](https://github.com/adbayb/stack/compare/v0.6.1...v0.7.0) (2021-07-17)
23
+
24
+ ### Features
25
+
26
+ - update dependencies ([6efb186](https://github.com/adbayb/stack/commit/6efb1864152fc7c1a2a697e0795fd2f104cfd09e))
27
+
6
28
  # [0.6.0](https://github.com/adbayb/stack/compare/v0.5.0...v0.6.0) (2021-04-05)
7
29
 
8
30
  ### Features
package/cli/index.js CHANGED
@@ -39,12 +39,10 @@ const processPkg = async () => {
39
39
  },
40
40
  license: "MIT",
41
41
  scripts: {
42
- "check:format":
43
- "prettier . --ignore-path .gitignore --ignore-path .prettierignore",
44
- "check:lint": "eslint . --ignore-path .gitignore",
45
- "check:types": "tsc --noEmit",
46
- format: "yarn check:format --write",
47
- lint: "yarn check:lint --fix",
42
+ verify: "yarn lint & tsc --noEmit",
43
+ fix: "yarn lint --fix",
44
+ lint: "eslint . --ignore-path .gitignore",
45
+ format: "prettier . --ignore-path .gitignore --ignore-path .prettierignore --write",
48
46
  },
49
47
  prettier: "@adbayb/prettier-config",
50
48
  eslintConfig: {
@@ -102,14 +100,22 @@ const copyTemplates = async () => {
102
100
  };
103
101
 
104
102
  const install = async () => {
103
+ await exec("yarn add typescript@latest --dev");
104
+ await exec("yarn add eslint@latest --dev");
105
+ await exec("yarn add prettier@latest --dev");
105
106
  await exec("yarn add @adbayb/eslint-config@latest --dev");
106
107
  await exec("yarn add @adbayb/prettier-config@latest --dev");
107
108
  await exec("yarn add @adbayb/ts-config@latest --dev");
109
+ await exec("yarn add @adbayb/create@latest --dev"); // @todo: replace with @adbayb/scripts once ready (scripts should hoist the husky and other core dev packages)
108
110
  };
109
111
 
110
112
  const clean = async () => {
111
- await exec("yarn lint");
112
- await exec("yarn format");
113
+ try {
114
+ await exec("yarn lint");
115
+ await exec("yarn format");
116
+ } catch (error) {
117
+ // @note: encapsulate lint/format logic to be error tolerant in case of new project without any files
118
+ }
113
119
  };
114
120
 
115
121
  const run = async () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adbayb/create",
3
- "version": "0.6.0",
3
+ "version": "0.10.0",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -26,9 +26,9 @@
26
26
  },
27
27
  "license": "MIT",
28
28
  "dependencies": {
29
- "husky": "5.2.0",
30
- "lint-staged": "10.5.4",
31
- "ora": "5.4.0"
29
+ "husky": "4.3.8",
30
+ "lint-staged": "12.1.2",
31
+ "ora": "5.4.1"
32
32
  },
33
- "gitHead": "a2692e5168f1d95fa785494cd271b24bff0903e8"
33
+ "gitHead": "ed6e52774ccf2171754b36f1a73390a0f0e012a0"
34
34
  }