Skip to content

Commit 492e0d7

Browse files
committed
Merge branch 'release/0.2.3'
2 parents 0deb44e + 7ed33b7 commit 492e0d7

File tree

4 files changed

+56
-28
lines changed

4 files changed

+56
-28
lines changed

.github/workflows/test.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: CI
2+
on:
3+
push:
4+
pull_request:
5+
schedule:
6+
- cron: '0 13 * * *'
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
strategy:
12+
fail-fast: false
13+
matrix:
14+
emacs-version:
15+
- '24.5'
16+
- '25.1'
17+
- '25.2'
18+
- '25.3'
19+
- '26.1'
20+
- '26.2'
21+
- '26.3'
22+
node-version:
23+
- '10'
24+
- '12'
25+
- '13'
26+
steps:
27+
- uses: actions/checkout@v2
28+
- uses: purcell/setup-emacs@master
29+
with:
30+
version: ${{ matrix.emacs-version }}
31+
- uses: actions/setup-node@v1
32+
with:
33+
node-version: ${{ matrix.node-version }}
34+
35+
- name: Set environement variables
36+
run: |
37+
echo "::add-path::$HOME/.cask/bin"
38+
39+
- name: Install dependencies
40+
run: |
41+
curl -fsSL https://raw.githubusercontent.com/cask/cask/master/go | python
42+
cask
43+
44+
- name: Run tests
45+
run: |
46+
node -v
47+
make test

.travis.yml

Lines changed: 0 additions & 21 deletions
This file was deleted.

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
nodejs-repl.el
22
===================================
33

4+
![](https://github.com/abicky/nodejs-repl.el/workflows/CI/badge.svg)
5+
46
Run Node.js REPL in Emacs
57

68
Description
@@ -71,7 +73,7 @@ Takeshi Arabiki (abicky)
7173
Copyright and License
7274
---------------------
7375

74-
Copyright (C) 2012-2018 Takeshi Arabiki (abicky)
76+
Copyright (C) 2012-2020 Takeshi Arabiki (abicky)
7577

7678
This program is free software: you can redistribute it and/or modify
7779
it under the terms of the GNU General Public License as published by

nodejs-repl.el

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
;;; nodejs-repl.el --- Run Node.js REPL
22

3-
;; Copyright (C) 2012-2019 Takeshi Arabiki
3+
;; Copyright (C) 2012-2020 Takeshi Arabiki
44

55
;; Author: Takeshi Arabiki
6-
;; Version: 0.2.2
6+
;; Version: 0.2.3
77

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

76-
(defconst nodejs-repl-version "0.2.2"
76+
(defconst nodejs-repl-version "0.2.3"
7777
"Node.js mode Version.")
7878

7979
(defcustom nodejs-repl-command "node"
@@ -94,7 +94,7 @@ such as nvm."
9494
:group 'nodejs-repl
9595
:type 'string)
9696

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

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

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

0 commit comments

Comments
 (0)