Skip to content

Commit 7a2f10d

Browse files
authored
Merge pull request #69 from Software-Developers-IRL/f/lastlink3
F/lastlink3 0.0.8
2 parents ded996b + 249d340 commit 7a2f10d

File tree

17 files changed

+289
-633
lines changed

17 files changed

+289
-633
lines changed

.eslintrc

Lines changed: 47 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,51 @@
11
{
2+
"parser": "@typescript-eslint/parser",
3+
"extends": [
4+
"plugin:@typescript-eslint/recommended"
5+
],
6+
"parserOptions": {
7+
"ecmaVersion": 2018,
8+
"sourceType": "module"
9+
},
210
"rules": {
3-
"semi": ["error", "always"],
4-
"quotes": ["error", "single"]
11+
"semi": [
12+
"error",
13+
"always"
14+
],
15+
"quotes": [
16+
"error",
17+
"double"
18+
],
19+
"@typescript-eslint/explicit-function-return-type": "off",
20+
"@typescript-eslint/camelcase": "off",
21+
"@typescript-eslint/no-explicit-any": "off",
22+
"no-multiple-empty-lines": "error",
23+
"@typescript-eslint/no-inferrable-types": [
24+
"warn",
25+
{
26+
"ignoreParameters": true
27+
}
28+
],
29+
"@typescript-eslint/no-unused-vars": "warn",
30+
"@typescript-eslint/class-name-casing": "off"
531
},
6-
"extends": "eslint:recommended",
7-
"ignorePatterns": ["*.js"]
32+
"ignorePatterns": [
33+
"src/TextHighlighter.js",
34+
"lib/*",
35+
"deps/*",
36+
"dist/*",
37+
"src/mermaid/*",
38+
"archived"
39+
],
40+
"overrides": [
41+
{
42+
"files": [
43+
"**/__tests__/*.{j,t}s?(x)",
44+
"**/tests/**/*.spec.{j,t}s?(x)"
45+
],
46+
"env": {
47+
"jest": true
48+
}
49+
}
50+
]
851
}

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
Fixes # .
2+
3+
Changes proposed in this pull request:
4+
-
5+
-
6+
-

.github/dependabot.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# To get started with Dependabot version updates, you'll need to specify which
2+
# package ecosystems to update and where the package manifests are located.
3+
# Please see the documentation for all configuration options:
4+
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
5+
6+
version: 2
7+
updates:
8+
- package-ecosystem: "npm" # See documentation for possible values
9+
directory: "/" # Location of package manifests
10+
schedule:
11+
interval: "weekly"
12+

.github/workflows/publish.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@ jobs:
1717
registry-url: 'https://registry.npmjs.org'
1818
- run: npm ci
1919
- run: npm run build
20-
- run: npm publish
20+
- run: npm publish --access public
2121
env:
2222
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,4 +111,4 @@ samples/*/*.sql
111111
junit.xml
112112
*.bak
113113
output-*.sql
114-
funktechno-little-mermaid-2-the-sql-0.0.4-5*
114+
funktechno-little-mermaid-2-the-sql*

.npmignore

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,7 @@ typings/
101101

102102
# TernJS port file
103103
.tern-port
104-
deps/mermaid/*
105-
!deps/mermaid/src
104+
deps
106105
samples/output*.md
107106
samples/raw*.txt
108107
samples/*.sql
@@ -111,3 +110,5 @@ junit.xml
111110
*.bak
112111
output-*.sql
113112
tests
113+
build
114+
funktechno-little-mermaid-2-the-sql*

build/createDistFolder.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
const fs = require('fs');
2+
const path = require('path');
3+
4+
const dir = 'dist';
5+
// path.resolve(path.join(__dirname, 'dist'));
6+
7+
if (!fs.existsSync(dir)) {
8+
fs.mkdirSync(dir);
9+
}
10+
11+
// OR
12+
if (!fs.existsSync(dir)) {
13+
fs.mkdirSync(dir, {
14+
mode: 0o744, // Not supported on Windows. Default: 0o777
15+
});
16+
}

0 commit comments

Comments
 (0)