Skip to content

Commit

Permalink
Merge ecb048a into d371f20
Browse files Browse the repository at this point in the history
  • Loading branch information
iamcal committed May 7, 2021
2 parents d371f20 + ecb048a commit 2d6db35
Show file tree
Hide file tree
Showing 7 changed files with 47 additions and 96 deletions.
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.

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.

13 changes: 10 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "autolink-js",
"name": "@iamcal/autolink-js",
"version": "0.1.0",
"description": "JS link formatting library",
"main": "lib/autolink.js",
Expand All @@ -21,7 +21,8 @@
"karma-jasmine": "~0.3.5",
"karma-phantomjs-launcher": "~1.0.0",
"karma-story-reporter": "^0.3.1",
"phantomjs-prebuilt": "~2.1.7"
"phantomjs-prebuilt": "~2.1.7",
"uglify-js": "^3.13.5"
},
"repository": {
"type": "git",
Expand All @@ -39,5 +40,11 @@
"bugs": {
"url": "https://github.com/iamcal/autolink-js/issues"
},
"homepage": "https://github.com/iamcal/autolink-js"
"homepage": "https://github.com/iamcal/autolink-js",
"scripts": {
"uglify": "echo \"/* $(npm -s run env echo '$npm_package_name') $(date +%Y-%m-%d) */\" > lib/autolink.min.js; ./node_modules/.bin/uglifyjs -c -m -- lib/autolink.js >> lib/autolink.min.js",
"test": "./node_modules/.bin/karma start karma.conf.js --single-run --log-level error",
"coverage": "./node_modules/.bin/karma start karma-cover.conf.js --single-run --log-level disable",
"build": "npm run uglify && npm run test && npm run coverage"
}
}

0 comments on commit 2d6db35

Please sign in to comment.