Skip to content

Commit 9df9e52

Browse files
Merge pull request #10 from pulsar-edit/pulsar-next-further-decaffeination
Decaffeinate and get ready for PulsarNext
2 parents 98e96a0 + b3089d4 commit 9df9e52

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+8868
-7718
lines changed

.coffeelintignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

.github/workflows/ci.yml

Lines changed: 23 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
name: CI
22

3-
on: [push]
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- master
48

59
env:
610
CI: true
@@ -9,18 +13,32 @@ jobs:
913
Test:
1014
strategy:
1115
matrix:
12-
os: [ubuntu-latest, macos-latest, windows-latest]
16+
os: [ubuntu-latest, macos-latest]
17+
node_arch:
18+
- x64
19+
fail-fast: false
1320
runs-on: ${{ matrix.os }}
1421
steps:
1522
- uses: actions/checkout@v4
1623
- uses: actions/setup-node@v4
1724
with:
18-
node-version: '16'
19-
- name: Install Python setuptools
25+
node-version: '20.11.1'
26+
architecture: ${{ matrix.node_arch }}
27+
- name: Install Python setuptools (Unix-likes)
2028
# This is needed for Python 3.12+, since many versions of node-gyp
2129
# are incompatible with Python 3.12+, which no-longer ships 'distutils'
2230
# out of the box. 'setuptools' package provides 'distutils'.
23-
run: python3 -m pip install setuptools
31+
if: ${{ runner.os != 'Windows' }}
32+
run: python3 -m pip install --break-system-packages setuptools
33+
- name: Install Python setuptools (Windows)
34+
# This is needed for Python 3.12+, since many versions of node-gyp
35+
# are incompatible with Python 3.12+, which no-longer ships 'distutils'
36+
# out of the box. 'setuptools' package provides 'distutils'.
37+
if: ${{ runner.os == 'Windows' }}
38+
run: |
39+
python3 -m venv CI_venv
40+
CI_venv\Scripts\activate.bat
41+
python3 -m pip install setuptools
2442
- name: Install windows-build-tools
2543
if: ${{ matrix.os == 'windows-latest' }}
2644
run: npm config set msvs_version 2019

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1+
.DS_Store
2+
.tool-versions
13
node_modules
24
*.swp
35
lib
46
npm-debug.log
5-
.coffee
67
api.json
78
package-lock.json

.npmignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
spec
22
script
33
src
4-
*.coffee
54
.npmignore
65
.DS_Store
76
npm-debug.log
87
.travis.yml
98
.pairs
10-
.coffee

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# Atom TextBuffer Core
2-
[![CI](https://github.com/atom/text-buffer/actions/workflows/ci.yml/badge.svg)](https://github.com/atom/text-buffer/actions/workflows/ci.yml)
1+
# Pulsar TextBuffer Core
32

4-
This is the core of the Atom text buffer, separated into its own module so its tests can be run headless. It handles the storage and manipulation of text and associated regions (markers).
3+
This is the core of the Pulsar's text buffer, separated into its own module so its tests can be run headless. It handles the storage and manipulation of text and associated regions (markers).

coffeelint.json

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

package.json

Lines changed: 9 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,42 @@
11
{
2-
"name": "text-buffer",
2+
"name": "@pulsar-edit/text-buffer",
33
"version": "13.18.6",
44
"description": "A container for large mutable strings with annotated regions",
5-
"main": "./lib/text-buffer",
5+
"main": "./src/text-buffer",
66
"scripts": {
7-
"prepublish": "npm run clean && npm run compile && npm run lint && npm run docs",
8-
"docs": "node script/generate-docs",
7+
"prepublish": "npm run clean",
98
"clean": "rimraf lib api.json",
10-
"compile": "coffee --no-header --output lib --compile src && cpy src/*.js lib/",
11-
"lint": "coffeelint -r src spec && standard src/*.js spec/*.js",
129
"test": "node script/test",
13-
"ci": "npm run compile && npm run lint && npm run test && npm run bench",
10+
"ci": "npm run test && npm run bench",
1411
"bench": "node benchmarks/index"
1512
},
1613
"repository": {
1714
"type": "git",
18-
"url": "https://github.com/atom/text-buffer.git"
15+
"url": "https://github.com/pulsar/text-buffer.git"
1916
},
2017
"bugs": {
21-
"url": "https://github.com/atom/text-buffer/issues"
18+
"url": "https://github.com/pulsar/text-buffer/issues"
2219
},
2320
"atomTestRunner": "atom-jasmine2-test-runner",
2421
"license": "MIT",
2522
"devDependencies": {
2623
"atom-jasmine2-test-runner": "^1.0.0",
27-
"coffee-cache": "^0.2.0",
28-
"coffee-script": "^1.10.0",
29-
"coffeelint": "1.16.0",
3024
"cpy-cli": "^1.0.1",
3125
"dedent": "^0.6.0",
32-
"donna": "^1.0.16",
33-
"electron": "^6",
26+
"electron": "^30",
3427
"jasmine": "^2.4.1",
3528
"jasmine-core": "^2.4.1",
36-
"joanna": "0.0.11",
3729
"json-diff": "^0.3.1",
3830
"random-seed": "^0.2.0",
3931
"regression": "^1.2.1",
4032
"rimraf": "~2.2.2",
4133
"standard": "^10.0.3",
42-
"tello": "^1.0.7",
4334
"temp": "^0.8.3",
4435
"yargs": "^6.5.0"
4536
},
4637
"dependencies": {
38+
"@pulsar-edit/pathwatcher": "^9.0.2",
39+
"@pulsar-edit/superstring": "^3.0.4",
4740
"delegato": "^1.0.0",
4841
"diff": "^2.2.1",
4942
"emissary": "^1.0.0",
@@ -52,9 +45,7 @@
5245
"fs-plus": "^3.0.0",
5346
"grim": "^2.0.2",
5447
"mkdirp": "^0.5.1",
55-
"pathwatcher": "^8.1.0",
5648
"serializable": "^1.0.3",
57-
"superstring": "^2.4.4",
5849
"underscore-plus": "^1.0.0",
5950
"winattr": "^3.0.0"
6051
},

script/generate-docs

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

0 commit comments

Comments
 (0)