Skip to content

Commit

Permalink
Merge branch 'release/0.2.3'
Browse files Browse the repository at this point in the history
  • Loading branch information
abicky committed Jan 14, 2020
2 parents 0deb44e + 7ed33b7 commit 492e0d7
Show file tree
Hide file tree
Showing 4 changed files with 56 additions and 28 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: CI
on:
push:
pull_request:
schedule:
- cron: '0 13 * * *'

jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
emacs-version:
- '24.5'
- '25.1'
- '25.2'
- '25.3'
- '26.1'
- '26.2'
- '26.3'
node-version:
- '10'
- '12'
- '13'
steps:
- uses: actions/checkout@v2
- uses: purcell/setup-emacs@master
with:
version: ${{ matrix.emacs-version }}
- uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}

- name: Set environement variables
run: |
echo "::add-path::$HOME/.cask/bin"
- name: Install dependencies
run: |
curl -fsSL https://raw.githubusercontent.com/cask/cask/master/go | python
cask
- name: Run tests
run: |
node -v
make test
21 changes: 0 additions & 21 deletions .travis.yml

This file was deleted.

4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
nodejs-repl.el
===================================

![](https://github.com/abicky/nodejs-repl.el/workflows/CI/badge.svg)

Run Node.js REPL in Emacs

Description
Expand Down Expand Up @@ -71,7 +73,7 @@ Takeshi Arabiki (abicky)
Copyright and License
---------------------

Copyright (C) 2012-2018 Takeshi Arabiki (abicky)
Copyright (C) 2012-2020 Takeshi Arabiki (abicky)

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
Expand Down
12 changes: 6 additions & 6 deletions nodejs-repl.el
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
;;; nodejs-repl.el --- Run Node.js REPL

;; Copyright (C) 2012-2019 Takeshi Arabiki
;; Copyright (C) 2012-2020 Takeshi Arabiki

;; Author: Takeshi Arabiki
;; Version: 0.2.2
;; Version: 0.2.3

;; This program is free software: you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
Expand Down Expand Up @@ -73,7 +73,7 @@
"Run Node.js REPL and communicate the process."
:group 'processes)

(defconst nodejs-repl-version "0.2.2"
(defconst nodejs-repl-version "0.2.3"
"Node.js mode Version.")

(defcustom nodejs-repl-command "node"
Expand All @@ -94,7 +94,7 @@ such as nvm."
:group 'nodejs-repl
:type 'string)

(defcustom nodejs-repl-use-global "false"
(defcustom nodejs-repl-use-global "true"
"useGlobal option of Node.js REPL method repl.start"
:group 'nodejs-repl
:type 'string)
Expand Down Expand Up @@ -140,7 +140,7 @@ See also `comint-process-echoes'"
(defvar nodejs-repl-code-format
(concat
"require('repl').start({prompt: '%s', useGlobal: %s, replMode: "
"require('repl')['REPL_MODE_' + '%s'.toUpperCase()] })"))
"require('repl')['REPL_MODE_' + '%s'.toUpperCase()], preview: false})"))

(defvar nodejs-repl-extra-espace-sequence-re "\\(\x1b\\[[0-9]+[GJK]\\)")

Expand Down Expand Up @@ -530,7 +530,7 @@ otherwise spawn one."
;; "v7.3.0" => "7.3.0", "v7.x-dev" => "7"
(replace-regexp-in-string nodejs-repl--nodejs-version-re "\\1"
(shell-command-to-string (concat node-command " --version"))))
(let* ((repl-mode (or (getenv "NODE_REPL_MODE") "magic"))
(let* ((repl-mode (or (getenv "NODE_REPL_MODE") "sloppy"))
(nodejs-repl-code (format nodejs-repl-code-format
nodejs-repl-prompt nodejs-repl-use-global repl-mode)))
(pop-to-buffer
Expand Down

0 comments on commit 492e0d7

Please sign in to comment.