Skip to content

Commit e193c6e

Browse files
⚙️ Chore(commitsmile2,enviroment): Implement Script Separator and basic Script structure for @packages/commitsmile2"
1 parent 1483146 commit e193c6e

File tree

5 files changed

+83
-21
lines changed

5 files changed

+83
-21
lines changed

commitSmile.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { defaultConfig } from "./packages/commitsmile/lib";
22

33
export default defaultConfig().deepMerge({
44
prompts: {
5-
scopes: { workspaces: true, options: [], custom: false, required: false },
5+
scopes: { workspaces: true, options: [], custom: true, required: false },
66
description: false,
77
},
88
});

package.json

Lines changed: 22 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,26 +3,37 @@
33
"version": "0.1.0",
44
"private": true,
55
"scripts": {
6-
"dev": "turbo dev",
7-
"build": "turbo build",
8-
"build:npm": "turbo build:npm",
9-
"start": "turbo start",
6+
"------------------------INSTALLATION-------------------": "",
7+
"preinstall": "husky init",
8+
"prepare": "husky",
9+
"pre": "turbo pre",
10+
"pre:husky": "git add . && lint-staged",
11+
"------------------------UTILS--------------------------": "",
1012
"lint": "turbo lint",
1113
"lint:fix": "turbo lint:fix",
14+
"lint:next": "turbo lint:next",
15+
"lint:test": "turbo lint:test",
1216
"format": "turbo format",
1317
"clean": "turbo clean",
1418
"link-cli": "turbo link-cli",
15-
"link-cli:dev": "turbo link-cli:dev",
16-
"unlink-cli:dev": "turbo unlink-cli:dev",
19+
"link-cli:dev": "turbo link-cli",
20+
"unlink-cli:dev": "turbo link-cli",
21+
"------------------------BUILDS-------------------------": "",
22+
"dev": "turbo dev",
23+
"build": "turbo build",
24+
"build:dev": "turbo build:dev",
25+
"build:prod": "turbo build:prod",
26+
"build:npm": "turbo build:npm",
27+
"------------------------DEPLOYS------------------------": "",
28+
"start:dev": "turbo start:dev",
29+
"start:prod": "turbo start:prod",
1730
"npm:prepack": "turbo npm:prepack",
1831
"npm:postpack": "turbo npm:postpack",
1932
"npm:version": "changeset version",
2033
"npm:publish": "changeset publish",
21-
"preinstall": "husky init",
22-
"pre": "turbo pre",
23-
"pre:husky": "husky && git add . && npx lint-staged",
24-
"prepare": "husky",
25-
"test": "echo \"Error: no test specified\""
34+
"------------------------TESTS--------------------------": "",
35+
"test": "turbo test",
36+
"bench": "turbo bench"
2637
},
2738
"devDependencies": {
2839
"@changesets/cli": "^2.27.10",

packages/commitsmile/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
"pre": "git add . && npx lint-staged",
4949
"prepare": "ts-patch install && typia patch",
5050
"prepublishOnly": "pnpm build:npm",
51-
"test": "echo \"Error: no test specified\" && exit 1",
51+
"test": "echo \"Error: no test specified\"",
5252
"unlink-cli:dev": "cd lib && pnpm unlink --global"
5353
},
5454
"lint-staged": {

packages/commitsmile2/package.json

Lines changed: 30 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,35 @@
44
"private": true,
55

66
"scripts": {
7-
"test": "echo \"Error: no test specified\" && exit 1"
7+
"------------------------INSTALLATION-------------------": "",
8+
"preinstall":"",
9+
"prepare":"",
10+
"pre":"",
11+
"pre:husky":"",
12+
"------------------------UTILS--------------------------":"",
13+
"lint":"",
14+
"lint:fix":"",
15+
"lint:next":"",
16+
"lint:test":"",
17+
"format":"",
18+
"clean":"",
19+
"link-cli":"",
20+
"link-cli:dev":"",
21+
"unlink-cli:dev":"",
22+
"------------------------BUILDS-------------------------":"",
23+
"dev":"",
24+
"build":"",
25+
"build:dev":"",
26+
"build:prod":"",
27+
"build:npm":"",
28+
"------------------------DEPLOYS------------------------":"",
29+
"start:dev":"",
30+
"start:prod":"",
31+
"npm:prepack":"",
32+
"npm:postpack":"",
33+
"npm:version":"",
34+
"npm:publish":"",
35+
"------------------------TESTS--------------------------":"",
36+
"test":"echo \"Error: no test specified\""
837
}
9-
1038
}

turbo.json

Lines changed: 29 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,28 +2,51 @@
22
"$schema": "https://turbo.build/schema.json",
33
"tasks": {
44
"pre": {},
5+
"start": {
6+
"outputs": []
7+
},
8+
"start:dev": {
9+
"outputs": []
10+
},
11+
"start:prod": {
12+
"outputs": []
13+
},
14+
"bench": {},
515
"build": {},
16+
"build:dev": {
17+
"outputs": ["dist/**"]
18+
},
19+
"build:prod": {
20+
"outputs": ["dist/**"]
21+
},
622
"build:npm": {
723
"inputs": ["*", "!dist"]
824
},
9-
"lint": {
10-
"cache": true
11-
},
25+
"test": {},
26+
"lint": {},
1227
"lint:fix": {},
28+
"lint:test": {},
29+
"lint:next": {},
1330
"link-cli": {},
1431
"link-cli:dev": {},
1532
"unlink-cli": {},
1633
"unlink-cli:dev": {},
1734
"format": {},
35+
"clean": {
36+
"cache": false
37+
},
1838
"npm:prepack": {},
1939
"npm:postpack": {},
2040
"prepublishOnly": {},
21-
"prepare": {
22-
"cache": false
23-
},
2441
"dev": {
2542
"cache": false,
2643
"persistent": true
44+
},
45+
"commands:dev": {
46+
"outputs": []
47+
},
48+
"commands:prod": {
49+
"outputs": []
2750
}
2851
}
2952
}

0 commit comments

Comments
 (0)