Giter Club home page Giter Club logo

lang-liquid's Introduction

CodeMirror 5

NOTE: CodeMirror 6 exists, and is more mobile-friendly, more accessible, better designed, and much more actively maintained.

Build Status

CodeMirror is a versatile text editor implemented in JavaScript for the browser. It is specialized for editing code, and comes with over 100 language modes and various addons that implement more advanced editing functionality. Every language comes with fully-featured code and syntax highlighting to help with reading and editing complex code.

A rich programming API and a CSS theming system are available for customizing CodeMirror to fit your application, and extending it with new functionality.

You can find more information (and the manual) on the project page. For questions and discussion, use the discussion forum.

See CONTRIBUTING.md for contributing guidelines.

The CodeMirror community aims to be welcoming to everybody. We use the Contributor Covenant (1.1) as our code of conduct.

Installation

Either get the zip file with the latest version, or make sure you have Node installed and run:

npm install codemirror@5

NOTE: This is the source repository for the library, and not the distribution channel. Cloning it is not the recommended way to install the library, and will in fact not work unless you also run the build step.

Quickstart

To build the project, make sure you have Node.js installed (at least version 6) and then npm install. To run, just open index.html in your browser (you don't need to run a webserver). Run the tests with npm test.

lang-liquid's People

Contributors

knpwrs avatar marijnh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

lang-liquid's Issues

Can't import from this library (indirectly) because it needs to declare @codemirror/state` and `@codemirror/view` as dependencies

My error:

❯ pnpm build

> @nullvoxpopuli/[email protected] build <repo>/packages/app-support/codemirror
> node build.cjs

✘ [ERROR] Could not resolve "@lezer/common"

    ../../../node_modules/.pnpm/@[email protected]_@[email protected]_@[email protected]_@[email protected]/node_modules/@codemirror/lang-python/dist/index.js:3:38:
      3 │ import { NodeWeakMap, IterMode } from '@lezer/common';
        ╵                                       ~~~~~~~~~~~~~~~

  You can mark the path "@lezer/common" as external to exclude it from the bundle, which will remove
  this error and leave the unresolved path in the bundle.

✘ [ERROR] Could not resolve "@codemirror/state"

    ../../../node_modules/.pnpm/@[email protected]/node_modules/@codemirror/lang-liquid/dist/index.js:6:32:
      6 │ import { EditorSelection } from '@codemirror/state';
        ╵                                 ~~~~~~~~~~~~~~~~~~~

  You can mark the path "@codemirror/state" as external to exclude it from the bundle, which will
  remove this error and leave the unresolved path in the bundle.

✘ [ERROR] Could not resolve "@codemirror/view"

    ../../../node_modules/.pnpm/@[email protected]/node_modules/@codemirror/lang-liquid/dist/index.js:7:27:
      7 │ import { EditorView } from '@codemirror/view';
        ╵                            ~~~~~~~~~~~~~~~~~~

  You can mark the path "@codemirror/view" as external to exclude it from the bundle, which will
  remove this error and leave the unresolved path in the bundle.

<repo>/node_modules/.pnpm/[email protected]/node_modules/esbuild/lib/main.js:1651
  let error = new Error(text);
              ^

This seems to agree with the package.json atm. https://github.com/codemirror/lang-liquid/blob/main/package.json#L29

May I suggest adding https://github.com/eslint-community/eslint-plugin-n/blob/master/docs/rules/no-unpublished-import.md

to all the codemirror/lezer projects ❤️

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.