forked from criticalmanufacturing/cli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
66 lines (66 loc) · 4.8 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
{
"name": "cmf-cli-builder",
"version": "1.0.0",
"description": "Builder package for cmf-cli",
"main": "index.js",
"private": true,
"scripts": {
"prepare": "husky install",
"build:clean": "rimraf dist/** && rimraf npm/dist/**",
"bump:pre": "npm run bump:npm:pre && npm run bump:dotnet:pre",
"bump:pre:breaking": "npm run bump:npm:pre:breaking && npm run bump:dotnet:pre:breaking",
"bump:pre:feature": "npm run bump:npm:pre:feature && npm run bump:dotnet:pre:feature",
"bump:patch": "npm run bump:npm:patch && npm run bump:dotnet:patch",
"bump:feature": "npm run bump:npm:feature && npm run bump:dotnet:feature",
"bump:breaking": "npm run bump:npm:breaking && npm run bump:dotnet:breaking",
"build:prod": "npm run build:clean && npm run build:prod:win && npm run build:prod:linux && npm run build:prod:osx",
"build:prod:singlefile": "npm run build:clean && npm run build:prod:selfcontained:win && npm run build:prod:selfcontained:linux && npm run build:prod:selfcontained:osx",
"build:prod:win": "dotnet publish ./cmf-cli/cmf.csproj -c Release -r win10-x64 -o dist/win-x64 --self-contained /p:nowarn=NU1603",
"build:prod:linux": "dotnet publish ./cmf-cli/cmf.csproj -c Release -r linux-x64 -o dist/linux-x64 --self-contained /p:nowarn=NU1603",
"build:prod:osx": "dotnet publish ./cmf-cli/cmf.csproj -c Release -r osx-x64 -o dist/osx-x64 --self-contained /p:nowarn=NU1603",
"build:bundle": "npm run build:clean && npm run build:bundle:win && npm run build:bundle:linux && npm run build:bundle:osx",
"build:bundle:win": "dotnet publish ./cmf-cli/cmf.csproj -c Release -r win10-x64 -o npm/dist/win-x64 --no-self-contained",
"build:bundle:linux": "dotnet publish ./cmf-cli/cmf.csproj -c Release -r linux-x64 -o npm/dist/linux-x64 --no-self-contained",
"build:bundle:osx": "dotnet publish ./cmf-cli/cmf.csproj -c Release -r osx-x64 -o npm/dist/osx-x64 --no-self-contained",
"build:prod:singlefile:win": "dotnet publish ./cmf-cli/cmf.csproj -c Release -r win10-x64 -o dist/win-x64 --self-contained /p:PublishSingleFile=true",
"build:prod:singlefile:linux": "dotnet publish ./cmf-cli/cmf.csproj -c Release -r linux-x64 -o dist/linux-x64 --self-contained /p:PublishSingleFile=true",
"build:prod:singlefile:osx": "dotnet publish ./cmf-cli/cmf.csproj -c Release -r osx-x64 -o dist/osx-x64 --self-contained /p:PublishSingleFile=true",
"publish": "cd npm && npm publish --tag next && cd ..",
"publish:live": "cd npm && npm publish --tag latest && cd ..",
"publish:dev": "DEV_VERSION=0.0.0-$(git branch --show-current)-$(date '+%Y%m%d%H%M') npm run bump:npm:dev && npm run build:bundle && cd npm && npm publish --tag $(git branch --show-current) --registry https://dev.criticalmanufacturing.io/repository/npm-releases/ && cd ..",
"bump:npm:pre": "cd npm && npm version prerelease --no-git-tag-version && cd ..",
"bump:npm:pre:breaking": "cd npm && npm version premajor --no-git-tag-version && cd ..",
"bump:npm:pre:feature": "cd npm && npm version preminor --no-git-tag-version && cd ..",
"bump:npm:patch": "cd npm && npm version patch --no-git-tag-version && cd ..",
"bump:npm:feature": "cd npm && npm version minor --no-git-tag-version && cd ..",
"bump:npm:breaking": "cd npm && npm version major --no-git-tag-version && cd ..",
"bump:npm:dev": "cd npm && npm version $DEV_VERSION --no-git-tag-version && cd ..",
"bump:dotnet:pre": "cd cmf-cli && dotnet-bump prerelease --force --no-commit && cd .. && cd core && dotnet-bump prerelease --force --no-commit && cd ..",
"bump:dotnet:pre:breaking": "cd cmf-cli && dotnet-bump premajor --force --no-commit && cd .. && cd core && dotnet-bump premajor --force --no-commit && cd ..",
"bump:dotnet:pre:feature": "cd cmf-cli && dotnet-bump preminor --force --no-commit && cd .. && cd core && dotnet-bump preminor --force --no-commit && cd ..",
"bump:dotnet:patch": "cd cmf-cli && dotnet-bump patch --force --no-commit && cd .. && cd core && dotnet-bump patch --force --no-commit && cd ..",
"bump:dotnet:feature": "cd cmf-cli && dotnet-bump minor --force --no-commit && cd .. && cd core && dotnet-bump minor --force --no-commit && cd ..",
"bump:dotnet:breaking": "cd cmf-cli && dotnet-bump major --force --no-commit && cd .. && cd core && dotnet-bump major --force --no-commit && cd ..",
"gen:changelog": "cd npm && standard-version && cd ..",
"commit": "git-cz"
},
"config": {
"commitizen": {
"path": "@commitlint/cz-commitlint"
}
},
"author": "Marco Silva",
"license": "BSD-3-Clause",
"dependencies": {
"dotnet-bump": "^1.6.0",
"rimraf": "^3.0.2"
},
"devDependencies": {
"@commitlint/cli": "^16.3.0",
"@commitlint/config-conventional": "^16.2.4",
"@commitlint/cz-commitlint": "^16.3.0",
"commitizen": "^4.2.5",
"husky": "^7.0.4",
"standard-version": "^9.5.0"
}
}