Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated dependencies #1

Merged
merged 6 commits into from
May 7, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Build

on:
push:
branches: ['master', 'main']
pull_request:
branches: ['master', 'main']

jobs:
build:

runs-on: ubuntu-20.04

steps:
- uses: actions/checkout@v2
with:
submodules: 'recursive'

- uses: actions/setup-node@v1
with:
node-version: 14

- run: npm install
- run: npm run build

- run: cp ./coverage/*/lcov.info ./coverage/

- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
12 changes: 0 additions & 12 deletions .travis.yml

This file was deleted.

47 changes: 0 additions & 47 deletions Gruntfile.js

This file was deleted.

6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# autolink-js - JS link formatting library

[![Build Status](https://travis-ci.org/iamcal/autolink-js.svg)](https://travis-ci.org/iamcal/autolink-js)
<span class="badge-npmversion"><a href="https://npmjs.org/package/@iamcal/autolink-js" title="View this project on NPM"><img src="https://img.shields.io/npm/v/@iamcal/autolink-js.svg" alt="NPM version" /></a></span>
<span class="badge-npmdownloads"><a href="https://npmjs.org/package/@iamcal/autolink-js" title="View this project on NPM"><img src="https://img.shields.io/npm/dm/@iamcal/autolink-js.svg" alt="NPM downloads" /></a></span>
[![Build Status](https://github.com/iamcal/autolink-js/actions/workflows/build.yml/badge.svg)](https://github.com/iamcal/autolink-js/actions)
[![Coverage Status](https://coveralls.io/repos/iamcal/autolink-js/badge.svg)](https://coveralls.io/r/iamcal/autolink-js)

This library helps to detect URLs (and email addresses) in text, and turn them into links.
Expand All @@ -9,7 +11,7 @@ It is based on the original PHP version here: https://github.com/iamcal/lib_auto

## Installation

Either clone the git repo, or `npm install autolink-js`
Either clone the git repo, or `npm install @iamcal/autolink-js`


## Usage
Expand Down
30 changes: 0 additions & 30 deletions bower.json

This file was deleted.

59 changes: 9 additions & 50 deletions karma-cover.conf.js
Original file line number Diff line number Diff line change
@@ -1,80 +1,39 @@
// Karma configuration
// Generated on Wed Jun 24 2015 19:44:32 GMT-0700 (PDT)
process.env.CHROME_BIN = require('puppeteer').executablePath();

module.exports = function(config) {
config.set({

// base path that will be used to resolve all patterns (eg. files, exclude)
basePath: '',


// frameworks to use
// available frameworks: https://npmjs.org/browse/keyword/karma-adapter
frameworks: ['jasmine'],


// list of files / patterns to load in the browser
files: [
'test/preamble.js',
'lib/autolink.js',
'test/*.spec.js'
],


// list of files to exclude
exclude: [
],


// preprocess matching files before serving them to the browser
// available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor

preprocessors: {
"lib/*.js": "coverage"
},

coverageReporter: {
type: "lcov",
dir: "coverage/"
},


// test results reporter to use
// possible values: 'dots', 'progress'
// available reporters: https://npmjs.org/browse/keyword/karma-reporter
reporters: ['coverage'],


// web server port
port: 9876,


// enable / disable colors in the output (reporters and logs)
colors: true,


// level of logging
// possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
logLevel: config.LOG_DISABLE,


// enable / disable watching file and executing tests whenever any file changes
autoWatch: false,


// start these browsers
// available browser launchers: https://npmjs.org/browse/keyword/karma-launcher
browsers: ['PhantomJS'],


// Continuous Integration mode
// if true, Karma captures browsers, runs the tests and exits
browsers: ['ChromeHeadless'],
singleRun: false,

plugins: [
'karma-jasmine',
'karma-phantomjs-launcher',
'karma-chrome-launcher',
'karma-coverage'
]
],
client: {
jasmine: {
random: false
}
}
})
}
53 changes: 9 additions & 44 deletions karma.conf.js
Original file line number Diff line number Diff line change
@@ -1,67 +1,32 @@
// Karma configuration
// Generated on Wed Jun 24 2015 19:44:32 GMT-0700 (PDT)
process.env.CHROME_BIN = require('puppeteer').executablePath();

module.exports = function(config) {
config.set({

// base path that will be used to resolve all patterns (eg. files, exclude)
basePath: '',


// frameworks to use
// available frameworks: https://npmjs.org/browse/keyword/karma-adapter
frameworks: ['jasmine'],


// list of files / patterns to load in the browser
files: [
'test/preamble.js',
'lib/autolink.min.js',
'test/*.spec.js'
],


// list of files to exclude
exclude: [
],


// test results reporter to use
// possible values: 'dots', 'progress'
// available reporters: https://npmjs.org/browse/keyword/karma-reporter
reporters: ['story'],


// web server port
port: 9876,


// enable / disable colors in the output (reporters and logs)
colors: true,


// level of logging
// possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
logLevel: config.LOG_INFO,


// enable / disable watching file and executing tests whenever any file changes
autoWatch: false,


// start these browsers
// available browser launchers: https://npmjs.org/browse/keyword/karma-launcher
browsers: ['PhantomJS'],


// Continuous Integration mode
// if true, Karma captures browsers, runs the tests and exits
browsers: ['ChromeHeadless'],
singleRun: false,

plugins: [
'karma-jasmine',
'karma-phantomjs-launcher',
'karma-chrome-launcher',
'karma-story-reporter',
]
],
client: {
jasmine: {
random: false
}
}
})
}
4 changes: 2 additions & 2 deletions lib/autolink.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading