-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch everything to ECMAScript modules
- Loading branch information
1 parent
a88f35b
commit dacfa55
Showing
18 changed files
with
137 additions
and
320 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
torchlight.config.js | ||
source | ||
built | ||
lib | ||
.idea | ||
node_modules | ||
tests/tmp | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
#! /usr/bin/env node | ||
const { makeProgram } = require('./src/cli') | ||
import torchlight from './src/torchlight' | ||
import Block from './src/block' | ||
|
||
makeProgram().parse() | ||
export { | ||
torchlight, | ||
Block | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,20 @@ | ||
{ | ||
"name": "@torchlight-api/torchlight-cli", | ||
"version": "0.0.8", | ||
"version": "0.1.0", | ||
"description": "A CLI for Torchlight - the syntax highlighting API", | ||
"main": "index.js", | ||
"scripts": { | ||
"test": "standard --env jest && jest" | ||
"test": "standard --env jest && jest", | ||
"build": "babel src --out-dir lib --copy-files \"--ignore\" \"src/stubs/**/*\"" | ||
}, | ||
"bin": { | ||
"torchlight": "index.js" | ||
"torchlight": "lib/bin/torchlight.js" | ||
}, | ||
"keywords": [ | ||
"syntax", | ||
"highlighting", | ||
"torchlight" | ||
], | ||
"standard": { | ||
"ignore": [ | ||
"tests" | ||
] | ||
}, | ||
"author": "Aaron Francis <[email protected]> (https://torchlight.dev)", | ||
"license": "MIT", | ||
"dependencies": { | ||
|
@@ -34,7 +30,36 @@ | |
"md5": "^2.3.0" | ||
}, | ||
"devDependencies": { | ||
"@babel/preset-env": "^7.15.0", | ||
"@babel/cli": "^7.14.8", | ||
"@babel/core": "^7.15.0", | ||
"@babel/node": "^7.12.13", | ||
"babel-jest": "^27.0.6", | ||
"jest": "^27.0.6", | ||
"standard": "^16.0.3" | ||
}, | ||
"standard": { | ||
"ignore": [ | ||
"tests", | ||
"lib" | ||
] | ||
}, | ||
"jest": { | ||
"clearMocks": true, | ||
"transform": { | ||
"^.+\\.[t|j]sx?$": "babel-jest" | ||
} | ||
}, | ||
"babel": { | ||
"presets": [ | ||
[ | ||
"@babel/preset-env", | ||
{ | ||
"targets": { | ||
"node": "12.13.0" | ||
} | ||
} | ||
] | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#! /usr/bin/env node | ||
import { makeProgram } from '../cli' | ||
|
||
makeProgram().parse() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.