Skip to content
This repository has been archived by the owner on Jan 3, 2024. It is now read-only.

Commit

Permalink
👍 Clone from denops.vim/denops/@denops for v6
Browse files Browse the repository at this point in the history
  • Loading branch information
lambdalisue committed Dec 31, 2023
1 parent 5c84d01 commit 6f98fc1
Show file tree
Hide file tree
Showing 14 changed files with 247 additions and 334 deletions.
77 changes: 33 additions & 44 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,49 +1,38 @@
name: deno
name: test

on: [push, pull_request]
on:
schedule:
- cron: "0 7 * * 0"
push:
paths:
- "**.md"
- "**.ts"
- ".github/workflows/test.yml"
- "deno.jsonc"
pull_request:
paths:
- "**.md"
- "**.ts"
- ".github/workflows/test.yml"
- "deno.jsonc"

jobs:
lint:
runs-on: ubuntu-20.04
check:
strategy:
matrix:
runner:
- ubuntu-latest
version:
- "1.x"
runs-on: ${{ matrix.runner }}
steps:
- uses: actions/checkout@v2
- uses: denolib/setup-deno@v2
- uses: actions/checkout@v4
- uses: denoland/setup-deno@v1
with:
deno-version: v1.7.2
- name: Lint
run: deno lint --unstable

format:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: denolib/setup-deno@v2
with:
deno-version: v1.7.2
- name: Format
run: |
deno fmt --check
test:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: denolib/setup-deno@v2
with:
deno-version: v1.7.2
- uses: rhysd/action-setup-vim@v1
id: vim
with:
neovim: false
version: v8.2.2525
- uses: rhysd/action-setup-vim@v1
id: nvim
with:
neovim: true
version: stable
- name: Test
run: |
deno test --allow-run --allow-net --allow-env
env:
DENOPS_VIM: ${{ steps.vim.outputs.executable }}
DENOPS_NVIM: ${{ steps.nvim.outputs.executable }}
deno-version: "${{ matrix.version }}"
- name: Lint check
run: deno lint
- name: Format check
run: deno fmt --check
- name: Type check
run: deno task check
49 changes: 49 additions & 0 deletions .github/workflows/update.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: update

on:
schedule:
- cron: "0 0 * * *"
workflow_dispatch:

jobs:
update:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: denoland/setup-deno@v1
with:
deno-version: 1.x
- name: Configure Git
run: |
git config user.name github-actions[bot]
git config user.email github-actions[bot]@users.noreply.github.com
- name: Update dependencies and commit changes
run: deno task -q upgrade:commit --summary ../title.txt --report ../body.md
- name: Check result
id: result
uses: andstor/file-existence-action@v2
with:
files: ../title.txt, ../body.md
- name: Read title.txt
id: title
if: steps.result.outputs.files_exists == 'true'
uses: juliangruber/read-file-action@v1
with:
path: ../title.txt
- name: Read body.md
id: body
if: steps.result.outputs.files_exists == 'true'
uses: juliangruber/read-file-action@v1
with:
path: ../body.md
- name: Create a pull request
if: steps.result.outputs.files_exists == 'true'
uses: peter-evans/create-pull-request@v5
with:
token: ${{ secrets.PA_TOKEN }}
author: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
branch: automation/update-dependencies
title: ${{ steps.title.outputs.content }}
body: ${{ steps.body.outputs.content }}
labels: automation
delete-branch: true
25 changes: 25 additions & 0 deletions .gitmessage
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@


# Guide (v1.0)
#
# 👍 :+1: Apply changes.
#
# 🌿 :herb: Add or update things for tests.
# ☕ :coffee: Add or update things for developments.
# 📦 :package: Add or update dependencies.
# 📝 :memo: Add or update documentations.
#
# 🐛 :bug: Bugfixes.
# 💋 :kiss: Critical hotfixes.
# 🚿 :shower: Remove features, codes, or files.
#
# 🚀 :rocket: Improve performance.
# 💪 :muscle: Refactor codes.
# 💥 :boom: Breaking changes.
# 💩 :poop: Bad codes needs to be improved.
#
# How to use:
# git config commit.template .gitmessage
#
# Reference:
# https://github.com/lambdalisue/emojiprefix
3 changes: 1 addition & 2 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright 2021 Alisue, hashnote.net
Copyright 2021 vim-denops

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand All @@ -17,4 +17,3 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

34 changes: 10 additions & 24 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,31 +1,17 @@
**DEPRECATED**

Use https://deno.land/x/denops_core instead.

# 🐜 denops-deno
# denops_core

[![test](https://github.com/vim-denops/deno-denops/workflows/test/badge.svg)](https://github.com/vim-denops/deno-denops/actions?query=workflow%3Atest)
[![deno doc](https://doc.deno.land/badge.svg)](https://doc.deno.land/https/deno.land/x/denops/mod.ts)
[![deno](https://github.com/vim-denops/denops-deno/workflows/deno/badge.svg)](https://github.com/vim-denops/denops-deno/actions?query=workflow%3Adeno)
[![deno land](http://img.shields.io/badge/available%20on-deno.land/x/denops-lightgrey.svg?logo=deno)](https://deno.land/x/denops)

[Deno][deno] module for [denops.vim][denops.vim]. This module is assumed to be
used in denops plugin and the code is assumed to be called in a worker thread
for a plugin.
This is a core module of [denops.vim][denops.vim] which is an ecosystem of
Vim/Neovim to write plugins in [Deno][deno].

Note that this module focused to provide primitive features. See
[denops-std-deno](https://github.com/vim-denops/denops-std-deno) for more useful
features.

**UNDER DEVELOPMENT**
Note that most of users should use [denops_std][denops_std] module instead to
write plugins of [denops.vim][denops.vim]. This module is designed as a core
layer of [denops_std][denops_std] so using this module directly from plugins is
strongly dis-recommended.

[deno]: https://deno.land/
[denops.vim]: https://github.com/vim-denops/denops.vim

## Example

See
[denops-helloworld.vim](https://github.com/vim-denops/denops-helloworld.vim).

## License

The code follows MIT license written in [LICENSE](./LICENSE). Contributors need
to agree that any modifications sent in this repository follow the license.
[denops_std]: https://deno.land/x/denops_std
39 changes: 0 additions & 39 deletions api.ts

This file was deleted.

29 changes: 0 additions & 29 deletions cache.ts

This file was deleted.

10 changes: 10 additions & 0 deletions deno.jsonc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"lock": false,
"tasks": {
"test": "deno test --unstable -A --parallel --shuffle --doc --coverage=.coverage",
"check": "deno check --unstable $(find . -name '*.ts')",
"coverage": "deno coverage --unstable .coverage",
"upgrade": "deno run -q -A https://deno.land/x/molt@0.11.0/cli.ts ./**/*.ts",
"upgrade:commit": "deno task -q upgrade --commit --prefix :package: --pre-commit=fmt"
}
}

0 comments on commit 6f98fc1

Please sign in to comment.