Skip to content

Commit

Permalink
Merge pull request #374 from gregjacobs/build-script-update
Browse files Browse the repository at this point in the history
Build script update - remove gulp
  • Loading branch information
gregjacobs committed Feb 28, 2022
2 parents 9b01107 + ef2be96 commit 37efcf8
Show file tree
Hide file tree
Showing 161 changed files with 28,011 additions and 23,008 deletions.
4 changes: 0 additions & 4 deletions .editorconfig
Expand Up @@ -5,9 +5,5 @@ root = true

# Tab indentation (no size specified)
[*]
indent_style = tab

# Space indentation for markdown
[*.md]
indent_style = space
indent_size = 4
38 changes: 26 additions & 12 deletions .github/workflows/main.yml
@@ -1,14 +1,28 @@
name: run-tests
name: build-and-test
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '14'
- name: yarn install
run: yarn
- name: yarn test
run: yarn test
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '14'
- uses: actions/setup-python@v2
with:
python-version: '2.7.18' # Version range or exact version of a Python version to use, using SemVer's version range syntax

- name: npm install
run: npm install

- name: install jsduck
run: gem install jsduck --user-install # Need user install because system dir is not accessible

- name: add jsduck to $PATH var
run: echo "${HOME}/.gem/ruby/2.7.0/bin" >> ${GITHUB_PATH} # This is how to add to $PATH on GitHub's runners

- name: build
run: npm run build

- name: test
run: npm run test
4 changes: 0 additions & 4 deletions .gitignore
@@ -1,4 +1,3 @@
.externalToolBuilders
.idea
.project
.settings
Expand All @@ -7,9 +6,6 @@ node_modules/
npm-debug.log
yarn-error.log

# Temporary build artifacts
/docs/examples/live-example/build

# Note: /dist/Autolinker.js and /dist/Autolinker.min.js are not gitignored to
# allow for Bower
/dist/commonjs
Expand Down
1 change: 1 addition & 0 deletions .husky/.gitignore
@@ -0,0 +1 @@
_
4 changes: 4 additions & 0 deletions .husky/pre-commit
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx lint-staged
3 changes: 3 additions & 0 deletions .lintstagedrc.json
@@ -0,0 +1,3 @@
{
"*.{js,ts,tsx,css}": "prettier --write"
}
7 changes: 7 additions & 0 deletions .prettierignore
@@ -0,0 +1,7 @@
# Ignore artifacts:
.tmp
dist
docs
tsconfig.json
package-lock.json
*.md
8 changes: 8 additions & 0 deletions .prettierrc.json
@@ -0,0 +1,8 @@
{
"printWidth": 100,
"trailingComma": "es5",
"tabWidth": 4,
"semi": true,
"singleQuote": true,
"arrowParens": "avoid"
}
4 changes: 0 additions & 4 deletions .travis.yml

This file was deleted.

8 changes: 3 additions & 5 deletions .vscode/settings.json
@@ -1,7 +1,5 @@
{
"editor.insertSpaces": false,
"editor.rulers": [
80
],
"editor.insertSpaces": true,
"editor.rulers": [80],
"search.usePCRE2": true
}
}
33 changes: 8 additions & 25 deletions bower.json
@@ -1,27 +1,10 @@
{
"name": "autolinker.js",
"main": "dist/Autolinker.js",
"homepage": "https://github.com/gregjacobs/Autolinker.js",
"authors": [
"Gregory Jacobs <greg@greg-jacobs.com>"
],
"description": "Automatically links URLs, email addresses, mentions (Twitter, Instagram) in a string of text or HTML.",
"keywords": [
"auto",
"link",
"autolink",
"url",
"urls",
"anchor"
],
"license": "MIT",
"ignore": [
"**/.*",
"build",
"node_modules",
"bower_components",
"test",
"tests",
"vendor"
]
"name": "autolinker.js",
"main": "dist/Autolinker.js",
"homepage": "https://github.com/gregjacobs/Autolinker.js",
"authors": ["Gregory Jacobs <greg@greg-jacobs.com>"],
"description": "Automatically links URLs, email addresses, mentions (Twitter, Instagram) in a string of text or HTML.",
"keywords": ["auto", "link", "autolink", "url", "urls", "anchor"],
"license": "MIT",
"ignore": ["**/.*", "build", "node_modules", "bower_components", "test", "tests", "vendor"]
}
20 changes: 12 additions & 8 deletions dist/Autolinker.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/Autolinker.js.map

Large diffs are not rendered by default.

20 changes: 3 additions & 17 deletions dist/Autolinker.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/Autolinker.min.js.map

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions docs/api/data-505cded3cc3fe2e167e66ecc8bed613f.js

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion docs/api/data-c08d7056342d37d00a7b8bc0fa7b5768.js

This file was deleted.

19 changes: 5 additions & 14 deletions docs/api/index.html
Expand Up @@ -13,7 +13,7 @@
<link rel="stylesheet" href="styles-3eba09980fa05ead185cb17d9c0deb0f.css" type="text/css" />

<script type="text/javascript" src="extjs/ext-all.js"></script>
<script type="text/javascript" src="data-c08d7056342d37d00a7b8bc0fa7b5768.js"></script>
<script type="text/javascript" src="data-505cded3cc3fe2e167e66ecc8bed613f.js"></script>

<script type="text/javascript" src="app-0c945a27f43452df695771ddb60b3d14.js"></script>

Expand All @@ -30,17 +30,6 @@
<div class='section'>
<h1>Autolinker</h1>
<div class='left-column'>
<h3>htmlParser</h3>
<ul class='links'>
<li><a href="#!/api/Autolinker.htmlParser.CommentNode" rel="Autolinker.htmlParser.CommentNode" class="docClass">Autolinker.htmlParser.CommentNode</a></li>
<li><a href="#!/api/Autolinker.htmlParser.ElementNode" rel="Autolinker.htmlParser.ElementNode" class="docClass">Autolinker.htmlParser.ElementNode</a></li>
<li><a href="#!/api/Autolinker.htmlParser.EntityNode" rel="Autolinker.htmlParser.EntityNode" class="docClass">Autolinker.htmlParser.EntityNode</a></li>
<li><a href="#!/api/Autolinker.htmlParser.HtmlNode" rel="Autolinker.htmlParser.HtmlNode" class="docClass">Autolinker.htmlParser.HtmlNode</a></li>
<li><a href="#!/api/Autolinker.htmlParser.HtmlParser" rel="Autolinker.htmlParser.HtmlParser" class="docClass">Autolinker.htmlParser.HtmlParser</a></li>
<li><a href="#!/api/Autolinker.htmlParser.TextNode" rel="Autolinker.htmlParser.TextNode" class="docClass">Autolinker.htmlParser.TextNode</a></li>
</ul>
</div>
<div class='middle-column'>
<h3>match</h3>
<ul class='links'>
<li><a href="#!/api/Autolinker.match.Email" rel="Autolinker.match.Email" class="docClass">Autolinker.match.Email</a></li>
Expand All @@ -51,7 +40,7 @@ <h3>match</h3>
<li><a href="#!/api/Autolinker.match.Url" rel="Autolinker.match.Url" class="docClass">Autolinker.match.Url</a></li>
</ul>
</div>
<div class='right-column'>
<div class='middle-column'>
<h3>matcher</h3>
<ul class='links'>
<li><a href="#!/api/Autolinker.matcher.Email" rel="Autolinker.matcher.Email" class="docClass">Autolinker.matcher.Email</a></li>
Expand All @@ -61,6 +50,8 @@ <h3>matcher</h3>
<li><a href="#!/api/Autolinker.matcher.Phone" rel="Autolinker.matcher.Phone" class="docClass">Autolinker.matcher.Phone</a></li>
<li><a href="#!/api/Autolinker.matcher.Url" rel="Autolinker.matcher.Url" class="docClass">Autolinker.matcher.Url</a></li>
</ul>
</div>
<div class='right-column'>
<h3>Others...</h3>
<ul class='links'>
<li><a href="#!/api/Autolinker" rel="Autolinker" class="docClass">Autolinker</a></li>
Expand Down Expand Up @@ -88,7 +79,7 @@ <h3>Others...</h3>



<div id='footer-content' style='display: none'>Generated on Sun 27 Feb 2022 11:28:05 by <a href='https://github.com/senchalabs/jsduck'>JSDuck</a> 5.3.4.</div>
<div id='footer-content' style='display: none'>Generated on Mon 28 Feb 2022 17:38:03 by <a href='https://github.com/senchalabs/jsduck'>JSDuck</a> 5.3.4.</div>



Expand Down
1 change: 0 additions & 1 deletion docs/api/output/Autolinker.htmlParser.CommentNode.js

This file was deleted.

0 comments on commit 37efcf8

Please sign in to comment.