Skip to content
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
2 changes: 1 addition & 1 deletion .github/workflows/check_version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ jobs:
- name: Check package version
uses: technote-space/package-version-check-action@v1
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
TEST_TAG_PREFIX: test/
BRANCH_PREFIX: release/
147 changes: 74 additions & 73 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,73 +1,74 @@
on:
pull_request:
push:
branches:
- master
tags:
- "!*"

name: Build

jobs:
eslint:
name: ESLint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
with:
fetch-depth: 3
- name: Install Package dependencies
run: yarn install
- name: Check code style
run: yarn lint
- uses: 8398a7/action-slack@v1
with:
type: failure
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
if: failure()

jest:
name: Jest
needs: eslint
runs-on: ubuntu-latest
strategy:
matrix:
node: ['8', '10', '11', '12']
steps:
- uses: actions/checkout@v1
with:
fetch-depth: 3
- name: Setup node
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}
- name: Install Package dependencies
run: yarn install
- name: Run tests
run: yarn cover
- name: Codecov
run: curl -s https://codecov.io/bash | bash -s -- -t $CODECOV_TOKEN -f $COVERAGE_FILE
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
COVERAGE_FILE: ./coverage/lcov.info
- uses: 8398a7/action-slack@v1
with:
type: failure
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
if: failure()

slack:
name: Slack
needs: jest
runs-on: ubuntu-latest
steps:
- uses: 8398a7/action-slack@v1
with:
type: success
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
on:
pull_request:
push:
branches:
- master
tags:
- "!*"

name: Build

jobs:
eslint:
name: ESLint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
with:
fetch-depth: 3
- name: Install Package dependencies
run: yarn install
- name: Check code style
run: yarn lint
- uses: 8398a7/action-slack@v1
with:
type: failure
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
if: failure()

jest:
name: Jest
needs: eslint
runs-on: ubuntu-latest
strategy:
matrix:
node: ['8', '10', '11', '12']
steps:
- uses: actions/checkout@v1
with:
fetch-depth: 3
- name: Setup node
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}
- name: Install Package dependencies
run: yarn install
- name: Run tests
run: yarn cover
- name: Codecov
run: curl -s https://codecov.io/bash | bash -s -- -t $CODECOV_TOKEN -f $COVERAGE_FILE
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
COVERAGE_FILE: ./coverage/lcov.info
if: matrix.node == '12'
- uses: 8398a7/action-slack@v1
with:
type: failure
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
if: failure()

slack:
name: Slack
needs: jest
runs-on: ubuntu-latest
steps:
- uses: 8398a7/action-slack@v1
with:
type: success
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
4 changes: 3 additions & 1 deletion .github/workflows/project_card_moved.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
on: project_card
on:
project_card:
types: [moved]
name: Project Card Event
jobs:
triage:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- name: Check package version
uses: technote-space/package-version-check-action@v1
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
- name: Install Package dependencies
run: yarn install
- name: Test
Expand Down Expand Up @@ -106,7 +106,7 @@ jobs:
- name: Upload
uses: technote-fork/action-gh-release@v1
with:
files: jquery.marker-animation.min.js
files: build/index.js
draft: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/toc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ jobs:
- name: TOC Generator
uses: technote-space/toc-generator@v1
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
TARGET_PATHS: 'README.md,README.ja.md'
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
node_modules/
/coverage
/.idea
/jquery.marker-animation.min.js
/build
/travis-ci
/gh-pages
.work/
Expand Down
12 changes: 0 additions & 12 deletions .npmignore

This file was deleted.

15 changes: 8 additions & 7 deletions README.ja.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
- [スクリーンショット](#%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%B3%E3%82%B7%E3%83%A7%E3%83%83%E3%83%88)
- [動作](#%E5%8B%95%E4%BD%9C)
- [Installation](#installation)
- [ダウンロードして利用](#%E3%83%80%E3%82%A6%E3%83%B3%E3%83%AD%E3%83%BC%E3%83%89%E3%81%97%E3%81%A6%E5%88%A9%E7%94%A8)
- [npmから利用](#npm%E3%81%8B%E3%82%89%E5%88%A9%E7%94%A8)
- [ダウンロードして利用](#%E3%83%80%E3%82%A6%E3%83%B3%E3%83%AD%E3%83%BC%E3%83%89%E3%81%97%E3%81%A6%E5%88%A9%E7%94%A8)
- [WordPressで利用](#wordpress%E3%81%A7%E5%88%A9%E7%94%A8)
- [基本的な使用方法](#%E5%9F%BA%E6%9C%AC%E7%9A%84%E3%81%AA%E4%BD%BF%E7%94%A8%E6%96%B9%E6%B3%95)
- [オプション](#%E3%82%AA%E3%83%97%E3%82%B7%E3%83%A7%E3%83%B3)
Expand All @@ -43,19 +43,20 @@
![動作](https://raw.githubusercontent.com/technote-space/jquery.marker-animation/images/marker-animation.gif)

## Installation
### ダウンロードして利用
[リリースバージョン](https://github.com/technote-space/jquery.marker-animation/releases/latest/download/jquery.marker-animation.min.js)をダウンロードして
```html
<script type="text/javascript" src="/assets/jquery.marker-animation.min.js"></script>
```
のように読み込む
### npmから利用
https://www.npmjs.com/package/jquery.marker-animation

```bash
npm install --save jquery.marker-animation
```

### ダウンロードして利用
[リリースバージョン](https://github.com/technote-space/jquery.marker-animation/releases/latest/download/index.js)をダウンロードして
```html
<script type="text/javascript" src="/assets/jquery.marker-animation/index.js"></script>
```
のように読み込む

### WordPressで利用
プラグインとして利用できるようにしました。

Expand Down
21 changes: 11 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ jQuery plugin to add under line animation like highlighter.
- [Screenshot](#screenshot)
- [Behavior](#behavior)
- [Installation](#installation)
- [Use from download](#use-from-download)
- [Use from npm](#use-from-npm)
- [for WordPress](#for-wordpress)
- [npm](#npm)
- [Browser](#browser)
- [WordPress](#wordpress)
- [Usage](#usage)
- [Options](#options)
- [color](#color)
Expand All @@ -43,19 +43,20 @@ jQuery plugin to add under line animation like highlighter.
![Behavior](https://raw.githubusercontent.com/technote-space/jquery.marker-animation/images/marker-animation.gif)

## Installation
### Use from download
Download [Release version](https://github.com/technote-space/jquery.marker-animation/releases/latest/download/jquery.marker-animation.min.js) and enqueue script.
```html
<script type="text/javascript" src="/assets/jquery.marker-animation.min.js"></script>
```
### Use from npm
### npm
https://www.npmjs.com/package/jquery.marker-animation

```bash
npm install --save jquery.marker-animation
```

### for WordPress
### Browser
Download [Release version](https://github.com/technote-space/jquery.marker-animation/releases/latest/download/index.js) and enqueue script.
```html
<script type="text/javascript" src="/assets/jquery.marker-animation/index.js"></script>
```

### WordPress
[GitHub](https://github.com/technote-space/marker-animation)

## Usage
Expand Down
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
{
"name": "jquery.marker-animation",
"version": "1.4.3",
"version": "1.4.4",
"description": "Marker animation jQuery plugin",
"main": "jquery.marker-animation.min.js",
"main": "build/index.js",
"files": [
"build"
],
"scripts": {
"start": "yarn build",
"test": "yarn lint && yarn cover",
Expand Down
29 changes: 14 additions & 15 deletions webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,27 +1,26 @@
const SpeedMeasurePlugin = require( 'speed-measure-webpack-plugin' );
const DuplicatePackageCheckerPlugin = require( 'duplicate-package-checker-webpack-plugin' );
const smp = new SpeedMeasurePlugin();
const webpack = require( 'webpack' );
const pkg = require( './package' );
const path = require( 'path' );

const banner = `${ pkg.name } ${ pkg.version } - ${ pkg.description }\nCopyright (c) ${ new Date().getFullYear() } ${ pkg.author } - ${ pkg.homepage }\nLicense: ${ pkg.license }`;

const webpackConfig = {
'context': path.resolve( __dirname, 'src' ),
'entry': './index.js',
'output': {
'path': __dirname,
'filename': `${ pkg.name }.min.js`,
'library': 'MarkerAnimation',
'libraryTarget': 'umd',
context: path.resolve( __dirname, 'src' ),
entry: './index.js',
output: {
path: path.resolve( __dirname, 'build' ),
filename: 'index.js',
library: 'MarkerAnimation',
libraryTarget: 'umd',
},
'module': {
'rules': [
module: {
rules: [
{
'test': /\.js$/,
'exclude': /node_modules/,
'loader': 'babel-loader',
test: /\.js$/,
exclude: /node_modules/,
loader: 'babel-loader',
},
],
},
Expand All @@ -33,10 +32,10 @@ const webpackConfig = {
amd: 'jquery',
},
},
'plugins': [
plugins: [
new webpack.BannerPlugin( banner ),
new DuplicatePackageCheckerPlugin(),
],
};

module.exports = smp.wrap( webpackConfig );
module.exports = ( new SpeedMeasurePlugin() ).wrap( webpackConfig );