-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Windows repo maker #2
Open
origin-yaropolk
wants to merge
61
commits into
1
Choose a base branch
from
windows-repo-maker
base: 1
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
61 commits
Select commit
Hold shift + click to select a range
e7f8333
init cli and config, implemented msxi repo builder
origin-yaropolk 75b7162
readme sketch
origin-yaropolk c6454c0
linter fix
origin-yaropolk c5c0822
dynamically loaded config, configurable appinstaller
origin-yaropolk c1fb961
Merge branch 'windows-repo-maker' of https://github.com/tradingview/j…
origin-yaropolk 5888bc9
fix tsconfig
origin-yaropolk e9b9e25
fixed exhaust config example in README
origin-yaropolk e82fb8b
refactor cli and config initialization
origin-yaropolk 8560eef
exhaust config will be type of unite of other config types
origin-yaropolk 15323b3
initial cli and configuration setup
origin-yaropolk 76cdee7
removed global state of config
origin-yaropolk 0e52df0
chore: use `program` to specify path to executable
Nipheris 2bfab2d
chore: create a separate package for integration tests
Nipheris f74dbaf
chore: unit tests via Jest
Nipheris 104bf65
chore(tests): integration tests via Jest
Nipheris 56b2933
chore: Volta + pnpm = love
Nipheris 066fdf8
chore: lint-staged: use package.json script to call eslint
Nipheris de91feb
chore: migrate from cross-env to pnpm's shell emulator
Nipheris b473122
chore: unit tests in Visual Studio Code
Nipheris e14e445
chore: move common TypeScript compiler options to base config, fix in…
Nipheris cc7bc9d
chore(tests): fix Volta configuration
Nipheris 75774bd
fix(tests): remove unused module (fixes 104bf65032018d00024e099a96cf8…
Nipheris ed85a5a
chore: update TypeScript to 5.0.4 :arrow_up:
Nipheris e8081a7
chore: migrate to separate @tsconfig packages (thanks to multiple con…
Nipheris 84d53d6
chore: update ts-jest to support TypeScript 5.x :arrow_up:
Nipheris 0c80e80
refactor: make things a bit simpler
Nipheris dafe416
chore: update Node.js to 18.13.0 :arrow_up:
Nipheris 267b155
chore: update pnpm to 8.3.1 and migrate lockfile to version 6.0 :arro…
Nipheris 5f774bb
docs: rephrase package description
Nipheris c18baae
some hepler things like artifactory, fs and http
1a704b4
Merge remote-tracking branch 'origin/cli-and-config' into deb-repo-maker
2dfd854
conflicts resolved
991df40
moved some parts of deb logick
ba9d0d6
lot of deb builder functionality
6b15b16
make release file and sign it
445e2c7
lots of linter issues fixed
ceabe0c
refactoring: removing awaits from loops
67c678c
refactor: linter fix
459cb9c
use --no-tty for gpg
624f246
review notes fix
0e47e62
renamed to artifact-provider
origin-yaropolk fe35c00
s3-gk moved from dev deps to runtime deps
origin-yaropolk 6c37179
discard mixin in config and remade using nested objects
origin-yaropolk 6db3ea1
store prepeared repository root path for reuse
origin-yaropolk 4a32567
adjust builder and artifact proviver to new s3gk api
origin-yaropolk 048b092
use fs.promises
origin-yaropolk 2e67c3b
use temp dir in cwd
origin-yaropolk 4a80c1d
rename channel to distribution
origin-yaropolk 0f0c7b4
review notes fix
origin-yaropolk 69d541f
move artifactory related logic from deb builder to config
origin-yaropolk debc292
fix releases path, configure deb builder with package creator function
e1d71d5
don't deploy pub key
origin-yaropolk f664580
reexport public entities from index
Nipheris b058bdc
use .gitignore as ignore list for ESLint
Nipheris efc9f17
fix some linting errors
Nipheris 9278fda
move DebBuilderConfig to deb-builder.mts
Nipheris 01fa12b
rename path-containing properties in DebBuilder
Nipheris 435e012
use parseInt instead of Number constructor
Nipheris 1f62ea9
initial mac repo builder commit
origin-yaropolk 3658895
Merge remote-tracking branch 'origin/mac-repo-maker' into windows-rep…
origin-yaropolk de0e5dc
windows repo maker remake
origin-yaropolk File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/usr/bin/env sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
npx pnpm lint-staged | ||
pnpm lint-staged |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
shell-emulator=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Remove with your credits and rename file to .evn | ||
ARTIFACTORY_HOST="artifactory.com" | ||
ARTIFACTORY_USER="yaropolk" | ||
ARTIFACTORY_API_KEY="1234" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
{ | ||
|
||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"type": "node", | ||
"request": "launch", | ||
"name": "Start plan command", | ||
"runtimeArgs": [ | ||
], | ||
"program": "${workspaceFolder}/dist/cli.mjs", | ||
"args": [ | ||
"plan" | ||
] | ||
}, | ||
{ | ||
"type": "node", | ||
"request": "launch", | ||
"name": "Start apply command", | ||
"runtimeArgs": [ | ||
], | ||
"program": "${workspaceFolder}/dist/cli.mjs", | ||
"args": [ | ||
"apply" | ||
] | ||
}, | ||
{ | ||
"type": "node", | ||
"name": "vscode-jest-tests.v2", | ||
"request": "launch", | ||
"env": { | ||
"NODE_OPTIONS": "--experimental-vm-modules" | ||
}, | ||
"args": [ | ||
"${workspaceRoot}/node_modules/jest/bin/jest", | ||
"--runInBand", | ||
"--no-coverage", | ||
"--watchAll=false", | ||
"--testNamePattern", | ||
"${jest.testNamePattern}", | ||
"--runTestsByPath", | ||
"${jest.testFile}" | ||
], | ||
"cwd": "${workspaceFolder}/src", | ||
"console": "integratedTerminal", | ||
"internalConsoleOptions": "neverOpen" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"jest.jestCommandLine": "pnpm src:test" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"version": "2.0.0", | ||
"tasks": [ | ||
{ | ||
"label": "Build", | ||
"type": "shell", | ||
"group": "build", | ||
"command": "pnpm build", | ||
"problemMatcher": [] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,16 @@ | ||
# jewel-case | ||
|
||
## Development | ||
[Volta](https://volta.sh/) is recommended to install pinned version of Node. See `volta` field in the top-level [`package.json`](./package.json). | ||
[Volta](https://volta.sh/) is recommended to install pinned versions of Node and pnpm. See `volta` field in the top-level [`package.json`](./package.json). Please also set `VOLTA_FEATURE_PNPM` environment variable to value `1`. | ||
|
||
Lifecycle commands: | ||
| Command | Description | | ||
|--------------------------| ----------------------------------------| | ||
| `npx pnpm install` | install all dependencies for a project | | ||
| `npx pnpm husky install` | enable Git hooks | | ||
| `npx pnpm build` | build everything | | ||
| `npx pnpm lint` | lint all files | | ||
| `npx pnpm lint-staged` | lint all staged files | | ||
| `npx pnpm test` | run unit tests | | ||
| `pnpm install` | install all dependencies for a project | | ||
| `pnpm husky install` | enable Git hooks | | ||
| `pnpm build` | build everything | | ||
| `pnpm lint` | lint all files | | ||
| `pnpm lint-staged` | lint all staged files | | ||
| `pnpm src:test` | run unit tests | | ||
| `pnpm tests:start` | run integration tests | | ||
| `pnpm test` | run all tests | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
export default { | ||
// A preset that is used as a base for Jest's configuration | ||
preset: 'ts-jest/presets/default-esm', | ||
|
||
// Automatically clear mock calls, instances, contexts and results before every test | ||
clearMocks: true, | ||
|
||
// The number of seconds after which a test is considered as slow and reported as such in the results. | ||
slowTestThreshold: 10, | ||
|
||
extensionsToTreatAsEsm: ['.mts'], | ||
resolver: '<rootDir>/../tools/mjs-resolver.cjs', | ||
moduleFileExtensions: ['js', 'mjs', 'mts'], | ||
testRegex: ['.*.spec.mts'], | ||
transform: { | ||
// to process mts with `ts-jest` | ||
'^.+\\.mts$': [ | ||
'ts-jest', | ||
{ | ||
useESM: true, | ||
}, | ||
], | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
export default { | ||
'*': 'ec', | ||
'*.{js,cjs,mjs,ts,cts,mts}': 'cross-env ESLINT_USE_FLAT_CONFIG=true pnpm eslint -c eslint.config.mjs', | ||
'*.{js,cjs,mjs,ts,cts,mts}': 'pnpm lint:eslint', | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,50 @@ | ||
{ | ||
"type": "module", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do we really need this in "dev" |
||
"devDependencies": { | ||
"@jest/globals": "^29.3.1", | ||
"@tsconfig/node16-strictest-esm": "^1.0.3", | ||
"@types/node": "16.18.1", | ||
"@tsconfig/esm": "^1.0.2", | ||
"@tsconfig/node18": "^2.0.0", | ||
"@tsconfig/strictest": "^2.0.0", | ||
"@types/ini": "^1.3.31", | ||
"@types/node": "18.13.0", | ||
"@types/tar": "^6.1.4", | ||
"@types/yargs": "^17.0.16", | ||
"@typescript-eslint/eslint-plugin": "^5.45.1", | ||
"@typescript-eslint/parser": "^5.45.1", | ||
"cross-env": "^7.0.3", | ||
"editorconfig-checker": "^4.0.2", | ||
"eslint": "^8.29.0", | ||
"eslint-config-flat-gitignore": "^0.1.3", | ||
"husky": "^8.0.0", | ||
"jest": "^29.3.1", | ||
"lint-staged": "^13.0.4", | ||
"ts-jest": "^29.0.3", | ||
"ts-jest": "^29.1.0", | ||
"ts-node": "^10.9.1", | ||
"typescript": "^4.9.3" | ||
"typescript": "^5.0.4" | ||
}, | ||
"engines": { | ||
"node": "^16.18.1", | ||
"pnpm": "^7.17.1" | ||
"node": "^18.13.0" | ||
}, | ||
"packageManager": "pnpm@7.17.1", | ||
"packageManager": "pnpm@8.3.1", | ||
"private": true, | ||
"scripts": { | ||
"build": "pnpm build:src", | ||
"build:src": "tsc --build src", | ||
"lint": "pnpm lint:ec && pnpm lint:eslint", | ||
"jest": "jest", | ||
"build": "pnpm src:build", | ||
"lint": "pnpm lint:ec && pnpm lint:eslint .", | ||
"lint:ec": "ec", | ||
"lint:eslint": "cross-env ESLINT_USE_FLAT_CONFIG=true eslint -c eslint.config.mjs .", | ||
"test": "jest --passWithNoTests" | ||
"lint:eslint": "ESLINT_USE_FLAT_CONFIG=true eslint -c eslint.config.mjs", | ||
"test": "pnpm src:test && pnpm tests:start", | ||
"src:build": "tsc --build src && node tools/package.mjs", | ||
"src:test": "NODE_OPTIONS=--experimental-vm-modules jest --projects src", | ||
"tests:start": "pnpm --filter ./tests start" | ||
}, | ||
"volta": { | ||
"node": "16.18.1" | ||
"node": "18.13.0", | ||
"pnpm": "8.3.1" | ||
}, | ||
"dependencies": { | ||
"ini": "^4.1.0", | ||
"s3-groundskeeper": "0.3.1", | ||
"tar": "^6.1.13", | ||
"yargs": "^17.6.2" | ||
} | ||
} |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need this tasks file at all?