All Projects → rcjsuen → dockerfile-language-service

rcjsuen / dockerfile-language-service

Licence: MIT license
Dockerfile language service for providing an API to create feature-rich Dockerfile editors in JavaScript.

Programming Languages

typescript
32286 projects

Projects that are alternatives of or similar to dockerfile-language-service

dockerfile-utils
A library and command line interface for formatting and linting Dockerfiles.
Stars: ✭ 17 (+13.33%)
Mutual labels:  lint, dockerfiles, formatter
Vscode Intelephense
PHP intellisense for Visual Studio Code
Stars: ✭ 872 (+5713.33%)
Mutual labels:  language-server-protocol, code-completion
prettier-check
Check that all files match prettier code style.
Stars: ✭ 54 (+260%)
Mutual labels:  lint, formatter
html-eslint
ESLint plugin for linting HTML
Stars: ✭ 72 (+380%)
Mutual labels:  lint, formatter
Sql Language Server
SQL Language Server
Stars: ✭ 210 (+1300%)
Mutual labels:  lint, language-server-protocol
li18nt
🌎 Lint your i18n translation files. Detect conflicting properties, duplicates and make it more readable and easier to maintain by formatting it!
Stars: ✭ 29 (+93.33%)
Mutual labels:  lint, formatter
Dockerfile Language Server Nodejs
A language server for Dockerfiles powered by Node.js, TypeScript, and VSCode technologies.
Stars: ✭ 170 (+1033.33%)
Mutual labels:  dockerfiles, language-server-protocol
Snazzy
Format JavaScript Standard Style as Stylish (i.e. snazzy) output
Stars: ✭ 381 (+2440%)
Mutual labels:  lint, formatter
Pettier
Prettier config that randomizes options and arbitrarily switches between spaces and tabs 🙄
Stars: ✭ 149 (+893.33%)
Mutual labels:  lint, formatter
eslint-formatter-git-log
ESLint Formatter featuring Git Author, Date, and Hash
Stars: ✭ 36 (+140%)
Mutual labels:  lint, formatter
bafi
Universal JSON, BSON, YAML, CSV, XML converter with templates
Stars: ✭ 65 (+333.33%)
Mutual labels:  formatter
VSLilyPond
VSCode Extension for LilyPond
Stars: ✭ 59 (+293.33%)
Mutual labels:  formatter
util
封装了一些Java常用的功能
Stars: ✭ 19 (+26.67%)
Mutual labels:  formatter
makefiles
No description or website provided.
Stars: ✭ 23 (+53.33%)
Mutual labels:  lint
essex
Essex - Boilerplate for Docker Based Projects
Stars: ✭ 32 (+113.33%)
Mutual labels:  dockerfiles
npmlint
[DEPRECATED] Lint your npm package
Stars: ✭ 57 (+280%)
Mutual labels:  lint
pre-commit-hooks
Standardizing our code quality tooling 🛠️
Stars: ✭ 44 (+193.33%)
Mutual labels:  formatter
eslint-rules
My custom eslint rules in addition to the ones provided at http://eslint.org/
Stars: ✭ 94 (+526.67%)
Mutual labels:  lint
Containerization-Automation
Study and Use of Containers and Automation Tools
Stars: ✭ 45 (+200%)
Mutual labels:  dockerfiles
lxtk
Language Client/Server Toolkit
Stars: ✭ 22 (+46.67%)
Mutual labels:  language-server-protocol

Dockerfile Language Service

Node.js Builds Coverage Status Build Dependencies License: MIT

This is a language service for Dockerfiles written in TypeScript. If you are looking for an actual Dockerfile language server that can be used with editors that implement the language server protocol, please visit the rcjsuen/dockerfile-language-server-nodejs repository.

The purpose of this project is to provide an API for creating a feature-rich Dockerfile editor. While this language service implements requests from the language server protocol, they are exposed as regular JavaScript functions so you can use them in the browser if you wish. For a demonstration of this language service's capabilities with Microsoft's Monaco Editor, please click here.

To install this language service as a dependency into your project, you will need to have Node.js installed.

Supported features:

  • code actions
  • code completion
  • definition
  • diagnostics
  • document highlight
  • document links
  • document symbols
  • folding
  • formatting
  • hovers
  • rename
  • semantic tokens
  • signature help

Development Instructions

If you wish to build and compile this language server, you must first install Node.js if you have not already done so. After you have installed Node.js and cloned the repository with Git, you may now proceed to build and compile the language server with the following commands:

npm install
npm run build
npm test

If you are planning to change the code, use npm run watch to get the TypeScript files transpiled on-the-fly as they are modified.

Installation Instructions

To add this language service into your project, you must add dockerfile-language-service as a dependency in your package.json file.

Browser Example

The /example/ folder includes an example for using this language service in a browser as a static HTML page with JavaScript. To build the example, please run the following commands from the root of the project:

npm install
cd example
npm install
npm run build

As the example naturally relies on the language service, it is necessary to invoke npm install on the root folder first before invoking npm install in the /example/ folder. Once npm run build has completed, you can open the /example/lib/index.html in a browser to test things out!

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].