-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f462775
commit 06c35be
Showing
24 changed files
with
11,160 additions
and
2,691 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,85 +1,76 @@ | ||
{ | ||
"ignorePaths": ["node_modules/**", "package-lock.json", "dist/**"], | ||
"version": "0.1", | ||
"ignorePaths": [ | ||
".DS_Store", | ||
".git/", | ||
"dist/", | ||
"node_modules/", | ||
"package-lock.json", | ||
".cspell-base.json", | ||
".cspell.json" | ||
], | ||
"version": "0.2", | ||
"words": [ | ||
"accum", | ||
"accumsan", | ||
"adipiscing", | ||
"Aenean", | ||
"aliquam", | ||
"Aliquam", | ||
"amet", | ||
"arcu", | ||
"augue", | ||
"blandit", | ||
"commodo", | ||
"consectetur", | ||
"Cras", | ||
"cubilia", | ||
"Curabitur", | ||
"curae", | ||
"dapibus", | ||
"dignissim", | ||
"Duis", | ||
"eget", | ||
"argb", | ||
"autofix", | ||
"autofixable", | ||
"autofixing", | ||
"browserconfig", | ||
"combinator", | ||
"combinators", | ||
"config's", | ||
"cpsell", | ||
"derp", | ||
"derpy", | ||
"electrovir", | ||
"elementum", | ||
"elit", | ||
"etiam", | ||
"facilisis", | ||
"faucibus", | ||
"felis", | ||
"fringilla", | ||
"Fusce", | ||
"gravida", | ||
"hendrerit", | ||
"interdum", | ||
"justo", | ||
"lacinia", | ||
"lacus", | ||
"lectus", | ||
"luctus", | ||
"malesuada", | ||
"Mauris", | ||
"metus", | ||
"Morbi", | ||
"neque", | ||
"nibh", | ||
"nisl", | ||
"Nulla", | ||
"nunc", | ||
"odio", | ||
"orci", | ||
"entrypoint", | ||
"entrypoints", | ||
"esbenp", | ||
"estree", | ||
"fleek", | ||
"gitattributes", | ||
"globbing", | ||
"globstar", | ||
"inconsolata", | ||
"lexend", | ||
"lfsr", | ||
"locationchange", | ||
"marvinpinto", | ||
"mmultiline", | ||
"monospace", | ||
"msapplication", | ||
"mstile", | ||
"nojekyll", | ||
"noopener", | ||
"noreferrer", | ||
"npmignore", | ||
"packagejson", | ||
"Phasellus", | ||
"placerat", | ||
"porta", | ||
"porttitor", | ||
"posuere", | ||
"potenti", | ||
"Praesent", | ||
"pretium", | ||
"primis", | ||
"quis", | ||
"rhoncus", | ||
"rutrum", | ||
"sagittis", | ||
"sollicitudin", | ||
"suscipit", | ||
"Suspendisse", | ||
"tempor", | ||
"tincidunt", | ||
"tortor", | ||
"parens", | ||
"pdfs", | ||
"postupgrade", | ||
"prettierignore", | ||
"prettierrc", | ||
"preupgrade", | ||
"protobuf", | ||
"pushstate", | ||
"replacestate", | ||
"repo's", | ||
"repos", | ||
"rgba", | ||
"stackoverflow", | ||
"stylelint", | ||
"stylelintrc", | ||
"tabbable", | ||
"tabindex", | ||
"thingie", | ||
"threejs", | ||
"transpiled", | ||
"transpiling", | ||
"turpis", | ||
"ultrices", | ||
"ultricies", | ||
"vehicula", | ||
"velit", | ||
"venenatis", | ||
"vestibulum", | ||
"Vivamus", | ||
"vulputate" | ||
"typeof", | ||
"virmator's", | ||
"virmator", | ||
"vite", | ||
"vitejs", | ||
"xlink" | ||
] | ||
} |
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,38 @@ | ||
name: 'tagged-release' | ||
|
||
on: | ||
push: | ||
tags: | ||
- 'v*' | ||
|
||
jobs: | ||
tagged-release: | ||
name: 'Tagged Release' | ||
runs-on: 'ubuntu-latest' | ||
|
||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Use Node.js 16.x | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 16.x | ||
- name: run test | ||
run: | | ||
npm ci | ||
npm run test:full | ||
- name: pack and set vars | ||
id: vars | ||
run: | | ||
tagName="${GITHUB_REF#refs/*/}" | ||
originalTarName="$(npm pack)" | ||
packageName="$(npm -s run env echo '$npm_package_name')" | ||
newTarName="$packageName-$tagName.tgz" | ||
mv "$originalTarName" "$newTarName" | ||
echo ::set-output name=tarName::"$newTarName" | ||
- uses: 'marvinpinto/action-automatic-releases@latest' | ||
with: | ||
repo_token: '${{ secrets.GITHUB_TOKEN }}' | ||
prerelease: false | ||
files: | | ||
${{ steps.vars.outputs.tarName }} |
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,2 +1,4 @@ | ||
.DS_Store | ||
node_modules | ||
dist | ||
dist | ||
Icon? |
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,9 +1,20 @@ | ||
.cspell-base.json | ||
.cspell.json | ||
.gitattributes | ||
.github | ||
.prettierrc.json | ||
.vscode | ||
dist/tests | ||
sample-files | ||
src | ||
.github/ | ||
.gitignore | ||
.prettierignore | ||
.prettierrc.js | ||
.virmator/ | ||
.vscode/ | ||
*.test.d.ts | ||
*.test.js | ||
*.test.ts | ||
dist/readme-examples/ | ||
dist/scripts/ | ||
dist/test/ | ||
dist/vite/ | ||
src/ | ||
test-files/ | ||
tsconfig-base.json | ||
tsconfig.json |
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 @@ | ||
dist/ | ||
node_modules/ | ||
package-lock.json | ||
test-files |
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,40 @@ | ||
const fs = require('fs'); | ||
const path = require('path'); | ||
|
||
const plugins = [ | ||
'prettier-plugin-sort-json', | ||
'prettier-plugin-packagejson', | ||
'prettier-plugin-multiline-arrays', | ||
'prettier-plugin-organize-imports', | ||
'prettier-plugin-jsdoc', | ||
].map((pluginName) => { | ||
// account for installations where deps are flattened and installations where they're nested | ||
const defaultPath = `./node_modules/${pluginName}`; | ||
if (fs.existsSync(path.resolve(__dirname, defaultPath))) { | ||
return defaultPath; | ||
} else { | ||
return `./node_modules/virmator/node_modules/${pluginName}`; | ||
} | ||
}); | ||
|
||
/** | ||
* @typedef {import('prettier-plugin-multiline-arrays').MultilineArrayOptions} MultilineOptions | ||
* | ||
* @typedef {import('prettier').Options} PrettierOptions | ||
* @type {PrettierOptions & MultilineOptions} | ||
*/ | ||
const prettierConfig = { | ||
arrowParens: 'always', | ||
bracketSpacing: false, | ||
endOfLine: 'lf', | ||
htmlWhitespaceSensitivity: 'ignore', | ||
jsonRecursiveSort: true, | ||
bracketSameLine: false, | ||
plugins, | ||
printWidth: 100, | ||
singleQuote: true, | ||
tabWidth: 4, | ||
trailingComma: 'all', | ||
}; | ||
|
||
module.exports = prettierConfig; |
This file was deleted.
Oops, something went wrong.
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 @@ | ||
import {join} from 'path'; | ||
import {InitialOptionsTsJest} from 'ts-jest'; | ||
|
||
const cwd = process.cwd(); | ||
|
||
export const virmatorJestConfig: InitialOptionsTsJest = { | ||
preset: 'ts-jest', | ||
testEnvironment: 'node', | ||
rootDir: cwd, | ||
modulePathIgnorePatterns: ['.*.type.test.ts$'], | ||
roots: [join(cwd, 'src')], | ||
setupFilesAfterEnv: [join(__dirname, 'jest-setup.ts')], | ||
globals: { | ||
'ts-jest': { | ||
tsconfig: join(cwd, 'tsconfig.json'), | ||
diagnostics: { | ||
warnOnly: true, | ||
ignoreCodes: ['TS151001'], | ||
}, | ||
}, | ||
}, | ||
}; | ||
|
||
export default virmatorJestConfig; |
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 @@ | ||
import {CustomConsole, LogMessage, LogType} from '@jest/console'; | ||
|
||
function simpleFormatter(type: LogType, message: LogMessage): string { | ||
const consoleIndent = ' '; | ||
|
||
return message | ||
.split(/\n/) | ||
.map((line) => consoleIndent + line) | ||
.join('\n'); | ||
} | ||
|
||
global.console = new CustomConsole(process.stdout, process.stderr, simpleFormatter); |
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
Oops, something went wrong.