virmator 1.2.0 → 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 CHANGED
@@ -13,6 +13,7 @@
13
13
  "accum",
14
14
  "adipiscing",
15
15
  "amet",
16
+ "andymckay",
16
17
  "argb",
17
18
  "autofix",
18
19
  "autofixable",
@@ -23,10 +24,13 @@
23
24
  "derp",
24
25
  "derpy",
25
26
  "electrovir",
27
+ "entrypoints",
26
28
  "esbenp",
27
29
  "gitattributes",
28
30
  "globstar",
29
31
  "locationchange",
32
+ "marvinpinto",
33
+ "nojekyll",
30
34
  "npmignore",
31
35
  "packagejson",
32
36
  "parens",
@@ -42,6 +46,7 @@
42
46
  "stylelintrc",
43
47
  "subcommand",
44
48
  "thingie",
49
+ "threejs",
45
50
  "transpiled",
46
51
  "transpiling",
47
52
  "typeof",
@@ -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 }}
@@ -0,0 +1,22 @@
1
+ name: 'tagged-release'
2
+
3
+ on:
4
+ push:
5
+ tags:
6
+ - 'v*'
7
+
8
+ jobs:
9
+ tagged-release:
10
+ name: 'Tagged Release'
11
+ runs-on: 'ubuntu-latest'
12
+
13
+ steps:
14
+ - name: 'build and test'
15
+ run: |
16
+ npm ci
17
+ npm run test:full
18
+
19
+ - uses: 'marvinpinto/action-automatic-releases@latest'
20
+ with:
21
+ repo_token: '${{ secrets.GITHUB_TOKEN }}'
22
+ prerelease: false
@@ -2,6 +2,8 @@
2
2
  export declare enum BareConfigKey {
3
3
  GitAttributes = "GitAttributes",
4
4
  GitHubActionsTest = "GitHubActionsTest",
5
+ GitHubActionsTaggedRelease = "GitHubActionsTaggedRelease",
6
+ GitHubActionsPrerelease = "GitHubActionsPrerelease",
5
7
  GitIgnore = "GitIgnore",
6
8
  NpmIgnore = "NpmIgnore",
7
9
  PrettierIgnore = "PrettierIgnore",
@@ -17,6 +19,8 @@ export declare enum CommandConfigKey {
17
19
  export declare const ConfigKey: {
18
20
  GitAttributes: BareConfigKey.GitAttributes;
19
21
  GitHubActionsTest: BareConfigKey.GitHubActionsTest;
22
+ GitHubActionsTaggedRelease: BareConfigKey.GitHubActionsTaggedRelease;
23
+ GitHubActionsPrerelease: BareConfigKey.GitHubActionsPrerelease;
20
24
  GitIgnore: BareConfigKey.GitIgnore;
21
25
  NpmIgnore: BareConfigKey.NpmIgnore;
22
26
  PrettierIgnore: BareConfigKey.PrettierIgnore;
@@ -6,6 +6,8 @@ var BareConfigKey;
6
6
  (function (BareConfigKey) {
7
7
  BareConfigKey["GitAttributes"] = "GitAttributes";
8
8
  BareConfigKey["GitHubActionsTest"] = "GitHubActionsTest";
9
+ BareConfigKey["GitHubActionsTaggedRelease"] = "GitHubActionsTaggedRelease";
10
+ BareConfigKey["GitHubActionsPrerelease"] = "GitHubActionsPrerelease";
9
11
  BareConfigKey["GitIgnore"] = "GitIgnore";
10
12
  BareConfigKey["NpmIgnore"] = "NpmIgnore";
11
13
  BareConfigKey["PrettierIgnore"] = "PrettierIgnore";
@@ -16,6 +16,8 @@ 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'),
20
+ [config_key_1.ConfigKey.GitHubActionsTaggedRelease]: (0, path_1.join)('.github', 'workflows', 'virmator-tagged-release.yml'),
19
21
  [config_key_1.ConfigKey.GitIgnore]: {
20
22
  virmator: (0, path_1.join)(virmator_repo_paths_1.relativeSeparateConfigsDir, 'gitignore.txt'),
21
23
  repo: '.gitignore',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "virmator",
3
- "version": "1.2.0",
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",
@@ -19,37 +19,35 @@
19
19
  "bin": "dist/cli/cli.js",
20
20
  "scripts": {
21
21
  "compile": "rm -rf dist && tsc && chmod +x dist/cli/cli.js",
22
+ "format": "npm run format:base -- --write",
22
23
  "format:base": "prettier \"./**/*.+(ts|json|html|css|md|js)\"",
23
24
  "format:check": "npm run format:base -- --check",
24
- "format": "npm run format:base -- --write",
25
25
  "prepublishOnly": "npm install && npm run test:full",
26
- "sanitize:all": "./bulk-sanitize.sh files/downloads",
27
- "sanitize:no-compile": "node dist/sanitizer/sanitize-for-test-file-cli.js",
28
- "sanitize": "npm run compile && node dist/sanitizer/sanitize-for-test-file-cli.js",
29
26
  "spellcheck": "cspell \"{*,.*,**/{.*,*}/**/{.*,*}}\" --exclude \"test-repos/spellcheck/invalid-spellcheck-repo/**/*\" --exclude \"extender-configs\"",
27
+ "test": "npm run compile && test-vir \"./dist/**/!(*.type).test.js\"",
30
28
  "test:file": "ts-node ./scripts/test-specific-file.ts",
31
- "test:full": "npm run test && npm run spellcheck -- --no-progress && npm run format:check",
32
- "test:help": "npm run compile && node dist/cli/cli.js --help",
33
- "test": "npm run compile && test-vir \"./dist/**/!(*.type).test.js\""
29
+ "test:full": "npm run test && npm run spellcheck -- --no-progress && npm run format:check && md-code --check README.md",
30
+ "test:help": "npm run compile && node dist/cli/cli.js --help"
34
31
  },
35
32
  "dependencies": {
36
33
  "ansi-styles": "5.2.0",
37
- "augment-vir": "^1.0.0",
38
- "cspell": "^5.10.0",
34
+ "augment-vir": "^1.1.0",
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
- "prettier-plugin-organize-imports": "^2.3.3",
43
- "prettier-plugin-packagejson": "^2.2.12",
40
+ "prettier-plugin-organize-imports": "^2.3.4",
41
+ "prettier-plugin-packagejson": "^2.2.13",
44
42
  "prettier-plugin-sort-json": "^0.0.2",
45
- "simple-git": "^2.45.1",
43
+ "simple-git": "^2.46.0",
46
44
  "test-vir": "^0.2.1",
47
- "typescript": "^4.4.3"
45
+ "typescript": "^4.4.4"
48
46
  },
49
47
  "devDependencies": {
50
- "@types/fs-extra": "^9.0.12",
51
- "@types/node": "^16.9.2",
52
- "ts-node": "^10.2.1"
48
+ "@types/fs-extra": "^9.0.13",
49
+ "@types/node": "^16.10.4",
50
+ "ts-node": "^10.3.0"
53
51
  },
54
52
  "engines": {
55
53
  "node": ">=12",
@@ -1,15 +1,19 @@
1
1
  .cspell-base.json
2
2
  .cspell.json
3
3
  .gitattributes
4
- .github
4
+ .github/
5
5
  .gitignore
6
6
  .prettierignore
7
7
  .prettierrc.js
8
- .vscode
8
+ .vscode/
9
9
  *.test.d.ts
10
10
  *.test.js
11
- scripts
12
- src
13
- test-repos
11
+ dist/test/
12
+ scripts/
13
+ snowpack.config.js
14
+ snowpack.config.mjs
15
+ src/
16
+ static/
17
+ test-repos/
14
18
  tsconfig-base.json
15
19
  tsconfig.json
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "scripts": {
3
+ "format": "virmator format write",
3
4
  "prepublishOnly": "npm run test:full",
4
5
  "spellcheck": "virmator spellcheck",
5
6
  "test": "virmator test",
6
- "test:full": "npm test && npm run spellcheck && virmator format check",
7
- "format": "virmator format write"
7
+ "test:full": "npm test && npm run spellcheck && virmator format check"
8
8
  }
9
9
  }