virmator 1.3.2 → 1.3.3
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/.cspell.json +1 -0
- package/.github/workflows/virmator-prerelease.yml +39 -0
- package/.github/workflows/virmator-tagged-release.yml +1 -6
- package/dist/cli/config/config-key.d.ts +2 -0
- package/dist/cli/config/config-key.js +1 -0
- package/dist/cli/config/config-paths.js +1 -0
- package/package.json +3 -5
package/.cspell.json
CHANGED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
name: branch-prerelease
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
workflow_run:
|
|
5
|
+
workflows: ['tests']
|
|
6
|
+
branches: '**'
|
|
7
|
+
types:
|
|
8
|
+
- completed
|
|
9
|
+
|
|
10
|
+
jobs:
|
|
11
|
+
package-release:
|
|
12
|
+
name: 'package release'
|
|
13
|
+
runs-on: 'ubuntu-latest'
|
|
14
|
+
if: ${{ github.event.workflow_run.conclusion == 'success' }}
|
|
15
|
+
steps:
|
|
16
|
+
- uses: actions/checkout@v1
|
|
17
|
+
- name: Use Node.js 14.x
|
|
18
|
+
uses: actions/setup-node@v1
|
|
19
|
+
with:
|
|
20
|
+
node-version: 14.x
|
|
21
|
+
- name: pack and set vars
|
|
22
|
+
id: vars
|
|
23
|
+
run: |
|
|
24
|
+
branchName="${GITHUB_REF#refs/*/}"
|
|
25
|
+
echo ::set-output name=short_ref::"$branchName"
|
|
26
|
+
|
|
27
|
+
originalTarName="$(npm pack)"
|
|
28
|
+
packageName="$(npm -s run env echo '$npm_package_name')"
|
|
29
|
+
timeStamp="$(date +%s)"
|
|
30
|
+
newTarName="$packageName-$timeStamp.tgz"
|
|
31
|
+
mv "$originalTarName" "$newTarName"
|
|
32
|
+
echo ::set-output name=tar_name::"$newTarName"
|
|
33
|
+
- uses: 'marvinpinto/action-automatic-releases@latest'
|
|
34
|
+
with:
|
|
35
|
+
repo_token: '${{ secrets.GITHUB_TOKEN }}'
|
|
36
|
+
automatic_release_tag: 'prerelease-${{ steps.vars.outputs.short_ref }}'
|
|
37
|
+
prerelease: true
|
|
38
|
+
files: |
|
|
39
|
+
${{ steps.vars.outputs.tar_name }}
|
|
@@ -11,12 +11,7 @@ jobs:
|
|
|
11
11
|
runs-on: 'ubuntu-latest'
|
|
12
12
|
|
|
13
13
|
steps:
|
|
14
|
-
-
|
|
15
|
-
- name: Use Node.js 14.x
|
|
16
|
-
uses: actions/setup-node@v1
|
|
17
|
-
with:
|
|
18
|
-
node-version: 14.x
|
|
19
|
-
- name: run test
|
|
14
|
+
- name: 'build and test'
|
|
20
15
|
run: |
|
|
21
16
|
npm ci
|
|
22
17
|
npm run test:full
|
|
@@ -3,6 +3,7 @@ export declare enum BareConfigKey {
|
|
|
3
3
|
GitAttributes = "GitAttributes",
|
|
4
4
|
GitHubActionsTest = "GitHubActionsTest",
|
|
5
5
|
GitHubActionsTaggedRelease = "GitHubActionsTaggedRelease",
|
|
6
|
+
GitHubActionsPrerelease = "GitHubActionsPrerelease",
|
|
6
7
|
GitIgnore = "GitIgnore",
|
|
7
8
|
NpmIgnore = "NpmIgnore",
|
|
8
9
|
PrettierIgnore = "PrettierIgnore",
|
|
@@ -19,6 +20,7 @@ export declare const ConfigKey: {
|
|
|
19
20
|
GitAttributes: BareConfigKey.GitAttributes;
|
|
20
21
|
GitHubActionsTest: BareConfigKey.GitHubActionsTest;
|
|
21
22
|
GitHubActionsTaggedRelease: BareConfigKey.GitHubActionsTaggedRelease;
|
|
23
|
+
GitHubActionsPrerelease: BareConfigKey.GitHubActionsPrerelease;
|
|
22
24
|
GitIgnore: BareConfigKey.GitIgnore;
|
|
23
25
|
NpmIgnore: BareConfigKey.NpmIgnore;
|
|
24
26
|
PrettierIgnore: BareConfigKey.PrettierIgnore;
|
|
@@ -7,6 +7,7 @@ var BareConfigKey;
|
|
|
7
7
|
BareConfigKey["GitAttributes"] = "GitAttributes";
|
|
8
8
|
BareConfigKey["GitHubActionsTest"] = "GitHubActionsTest";
|
|
9
9
|
BareConfigKey["GitHubActionsTaggedRelease"] = "GitHubActionsTaggedRelease";
|
|
10
|
+
BareConfigKey["GitHubActionsPrerelease"] = "GitHubActionsPrerelease";
|
|
10
11
|
BareConfigKey["GitIgnore"] = "GitIgnore";
|
|
11
12
|
BareConfigKey["NpmIgnore"] = "NpmIgnore";
|
|
12
13
|
BareConfigKey["PrettierIgnore"] = "PrettierIgnore";
|
|
@@ -16,6 +16,7 @@ const configFileMap = {
|
|
|
16
16
|
[config_key_1.ConfigKey.Cspell]: '.cspell.json',
|
|
17
17
|
[config_key_1.ConfigKey.GitAttributes]: '.gitattributes',
|
|
18
18
|
[config_key_1.ConfigKey.GitHubActionsTest]: (0, path_1.join)('.github', 'workflows', 'virmator-tests.yml'),
|
|
19
|
+
[config_key_1.ConfigKey.GitHubActionsPrerelease]: (0, path_1.join)('.github', 'workflows', 'virmator-prerelease.yml'),
|
|
19
20
|
[config_key_1.ConfigKey.GitHubActionsTaggedRelease]: (0, path_1.join)('.github', 'workflows', 'virmator-tagged-release.yml'),
|
|
20
21
|
[config_key_1.ConfigKey.GitIgnore]: {
|
|
21
22
|
virmator: (0, path_1.join)(virmator_repo_paths_1.relativeSeparateConfigsDir, 'gitignore.txt'),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "virmator",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.3",
|
|
4
4
|
"description": "Handle all the stuffs in one package.",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"homepage": "https://github.com/electrovir/virmator",
|
|
@@ -23,13 +23,10 @@
|
|
|
23
23
|
"format:base": "prettier \"./**/*.+(ts|json|html|css|md|js)\"",
|
|
24
24
|
"format:check": "npm run format:base -- --check",
|
|
25
25
|
"prepublishOnly": "npm install && npm run test:full",
|
|
26
|
-
"sanitize": "npm run compile && node dist/sanitizer/sanitize-for-test-file-cli.js",
|
|
27
|
-
"sanitize:all": "./bulk-sanitize.sh files/downloads",
|
|
28
|
-
"sanitize:no-compile": "node dist/sanitizer/sanitize-for-test-file-cli.js",
|
|
29
26
|
"spellcheck": "cspell \"{*,.*,**/{.*,*}/**/{.*,*}}\" --exclude \"test-repos/spellcheck/invalid-spellcheck-repo/**/*\" --exclude \"extender-configs\"",
|
|
30
27
|
"test": "npm run compile && test-vir \"./dist/**/!(*.type).test.js\"",
|
|
31
28
|
"test:file": "ts-node ./scripts/test-specific-file.ts",
|
|
32
|
-
"test:full": "npm run test && npm run spellcheck -- --no-progress && npm run format:check",
|
|
29
|
+
"test:full": "npm run test && npm run spellcheck -- --no-progress && npm run format:check && md-code --check README.md",
|
|
33
30
|
"test:help": "npm run compile && node dist/cli/cli.js --help"
|
|
34
31
|
},
|
|
35
32
|
"dependencies": {
|
|
@@ -37,6 +34,7 @@
|
|
|
37
34
|
"augment-vir": "^1.1.0",
|
|
38
35
|
"cspell": "^5.12.3",
|
|
39
36
|
"fs-extra": "^10.0.0",
|
|
37
|
+
"markdown-code-example-inserter": "^0.1.5",
|
|
40
38
|
"prettier": "^2.4.1",
|
|
41
39
|
"prettier-plugin-jsdoc": "^0.3.24",
|
|
42
40
|
"prettier-plugin-organize-imports": "^2.3.4",
|