Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
d81d5e7
Add @types + tslint devDependencies
aminya Mar 15, 2020
a144b31
Create tsconfig.json
aminya Mar 15, 2020
8fa91ad
Create tslint.json
aminya Mar 15, 2020
7db483e
Adding prettier
aminya Mar 15, 2020
1982483
Add Eslint
aminya Mar 16, 2020
b61e7b7
Use GithubActions instead of Travis/Appveyor
aminya Mar 16, 2020
cdea936
Adding Scripts
aminya Mar 19, 2020
20e34ab
Update package-lock.json
aminya Mar 22, 2020
f51d8fc
gitignore + Local conversion:
aminya Mar 29, 2020
022edc9
Copy misc/blocks to lib_src
aminya Mar 29, 2020
6f66315
js-to-ts-converter
aminya Mar 29, 2020
6c0182e
blocks in in gitignore, tsconfig, package
aminya Mar 29, 2020
5626bae
prettier_src
aminya Mar 29, 2020
a7e370c
ed -> editor
aminya Mar 29, 2020
d64521d
sel -> selection
aminya Mar 29, 2020
5a7f7dd
editor: TextEditor
aminya Mar 29, 2020
d68c40d
selection: Selection
aminya Mar 29, 2020
47a49af
LineInfo interface
aminya Mar 29, 2020
d3ad481
getScopesArray() instead of .scopes
aminya Mar 29, 2020
6f2354e
getLine types
aminya Mar 29, 2020
8bcbc80
isBlank types
aminya Mar 29, 2020
b169bfb
isEnd types + using lineInfo.line
aminya Mar 29, 2020
8b27c06
isStringEnd types + lineInfo.scope
aminya Mar 29, 2020
16b087e
isCont types + lineInfo.scope + lineInfo.line
aminya Mar 29, 2020
c7b20f6
isStart types
aminya Mar 29, 2020
b5fdda8
walkBack types
aminya Mar 29, 2020
6033931
walkForward types
aminya Mar 29, 2020
85b83b4
getRange types
aminya Mar 29, 2020
73a824e
getRange undefined return in other path
aminya Mar 29, 2020
41e5c88
moveNext types
aminya Mar 29, 2020
2692613
getHeadBufferPosition todo
aminya Mar 29, 2020
2993752
getLocalContext types
aminya Mar 29, 2020
1efb8dc
redundant escape in regex
aminya Mar 29, 2020
b77a3ed
remove babel
aminya Mar 29, 2020
fad9bf8
TODO Fix RangeCompatible types
aminya Mar 29, 2020
b9f7053
npm run build
aminya Mar 29, 2020
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
80 changes: 80 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
{
// JS Files
"root": true,
"env": {
"atomtest": true,
"es6": true,
"node": true,
"browser": true,
"jasmine": true
},
"globals": { "atom": "writable" },
"parser": "babel-eslint",
"parserOptions": {
"ecmaFeatures": { "jsx": true },
"ecmaVersion": 2018,
"sourceType": "module"
},
"plugins": ["only-warn"],
"extends": ["eslint:recommended"],
"overrides": [
{ // Bundled node version with atom has an old ESLint
// TypeScript files
"files": ["**/*.ts", "**/*.tsx"],
"env": {
"atomtest": true,
"es6": true,
"node": true,
"browser": true
},
"globals": { "atom": "writable" },
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": { "jsx": true },
"ecmaVersion": 2018,
"sourceType": "module"
},
"plugins": ["@typescript-eslint", "only-warn"],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
],
"rules": {
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/camelcase": "off",
"@typescript-eslint/no-use-before-define": "off",
"@typescript-eslint/member-delimiter-style": "off"
}
},
{
// CoffeeScript files
"files": ["**/*.coffee"],
"env": {
"atomtest": true,
"es6": true,
"node": true,
"browser": true
},
"globals": { "atom": "writable" },
// "parser": "eslint-plugin-coffee",
"parser": "eslint-plugin-coffee",
"parserOptions": {
"ecmaFeatures": { "jsx": true },
"ecmaVersion": 2018,
"sourceType": "module"
},
"plugins": ["coffee", "only-warn"],
"extends": ["plugin:coffee/eslint-recommended"]
},
{
// JSON files
"files": ["*.json"],
"plugins": ["json"],
"extends": ["plugin:json/recommended"],
"rules": {
"json/*": ["error", {"allowComments": true}]
}
}
]
}
64 changes: 64 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
name: CI
on:
- push
- pull_request

jobs:
Test:
if: "!contains(github.event.head_commit.message, '[skip ci]')"
name: Julia ${{ matrix.julia_version }} - ${{ matrix.os }} - ${{ matrix.arch }} - Atom ${{ matrix.atom_channel }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- macos-latest
- windows-latest
atom_channel: [stable] # beta
julia_version: ["1", "nightly"]
arch: ["x64"]
steps:
- uses: actions/checkout@v2
- uses: UziTech/action-setup-atom@v1
with:
channel: ${{ matrix.atom_channel }}
- uses: julia-actions/setup-julia@latest
with:
version: ${{ matrix.julia_version }}
arch: ${{ matrix.arch }}
- name: Versions
run: |
julia -v
apm -v
- name: Install APM dependencies
run: |
apm ci # uses locked module. use `apm install` for non-locked
apm install ink language-julia
node script/postinstall.js
- name: Julia CI
run: julia -e 'include("ci/packages.jl")'
shell: bash
# - name: Run tests 👩🏾‍💻
# run: atom --test spec

Lint:
if: "!contains(github.event.head_commit.message, '[skip ci]')"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: "13.x"
- name: Install NPM dependencies
run: |
npm ci # uses locked module. use `npm install` for non-locked
- name: Lint ✨
run: npm run lint

Skip:
if: contains(github.event.head_commit.message, '[skip ci]')
runs-on: ubuntu-latest
steps:
- name: Skip CI 🚫
run: echo skip ci
10 changes: 10 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
.DS_Store
npm-debug.log
node_modules
lib_src/**/*
!lib_src/tsconfig.json
!lib_src/tslint.json
tsconfig.tsbuildinfo





!lib_src/misc/blocks.ts
52 changes: 0 additions & 52 deletions .travis.yml

This file was deleted.

24 changes: 0 additions & 24 deletions appveyor.yml

This file was deleted.

19 changes: 19 additions & 0 deletions lib/misc/blocks.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import { TextEditor, Selection } from "atom";
interface LineInfo {
scope: readonly string[];
line: string;
}
export declare function getLine(editor: TextEditor, l: number): LineInfo;
export declare function moveNext(editor: TextEditor, selection: Selection, range: [[number, number], [number, number]]): void;
export declare function get(editor: TextEditor): {
range: number[][] | undefined;
selection: Selection;
line: number;
text: any;
}[];
export declare function getLocalContext(editor: TextEditor, row: number): {
context: string;
startRow: number;
};
export declare function select(editor?: TextEditor | undefined): void;
export {};
Loading