Socket
Socket
Sign inDemoInstall

lit

Package Overview
Dependencies
Maintainers
4
Versions
53
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lit - npm Package Compare versions

Comparing version 1.0.1 to 2.0.0-pre.1

async-directive.d.ts

128

package.json
{
"name": "lit"
, "version": "1.0.1"
, "description": "Micro-literate programming lib for javascript, inspired by docco"
, "author": "Casey Duncan <apres.project@gmail.com>"
, "contributors": []
, "repository": {
"type": "git",
"url": "https://github.com/apres/lit.js"
}
, "license": "MIT"
, "keywords": [
"literate", "micro"
]
, "bin": {
"litjs": "./bin/litjs"
}
, "dependencies": {
"ghm": "1.0.x",
"optimist": "0.3.x",
"highlight.js": "7.0.x"
}
, "devDependencies": {
"requirejs": "2.0.x",
"mocha": "1.1.x",
"chai": "1.0.x"
}
, "scripts": {
"dtest": "./node_modules/.bin/mocha --reporter spec --no-colors --ui qunit --debug-brk --ignore-leaks",
"test": "./node_modules/.bin/mocha --reporter spec --no-colors --ui qunit --ignore-leaks"
}
"name": "lit",
"version": "2.0.0-pre.1",
"publishConfig": {
"access": "public"
},
"description": "A library for building fast, lightweight web components",
"license": "BSD-3-Clause",
"repository": "Polymer/lit-html",
"author": "The Polymer Authors",
"homepage": "https://github.com/Polymer/lit-html/tree/lit-next",
"main": "index.js",
"module": "index.js",
"type": "module",
"exports": {
".": {
"default": "./index.js"
},
"./decorators.js": {
"default": "./decorators.js"
},
"./decorators/": {
"default": "./decorators/"
},
"./directive-helpers.js": {
"default": "./directive-helpers.js"
},
"./directive.js": {
"default": "./directive.js"
},
"./directives/": {
"default": "./directives/"
},
"./async-directive.js": {
"default": "./async-directive.js"
},
"./html.js": {
"default": "./html.js"
},
"./hydrate-support.js": {
"default": "./hydrate-support.js"
},
"./hydrate.js": {
"default": "./hydrate.js"
},
"./polyfill-support.js": {
"default": "./polyfill-support.js"
},
"./static-html.js": {
"default": "./static-html.js"
}
},
"scripts": {
"build": "npm run clean && tsc --build && rollup -c",
"build:watch": "rollup -c --watch",
"build:ts": "tsc --build",
"build:ts:watch": "tsc --build --watch",
"clean": "rm -rf {async-directive,decorators,directive-helpers,directive,html,hydrate-support,hydrate,index,polyfill-support,static-html}.{d.ts.map,d.ts,js.map,js} test/ decorators/ directives/ development/ *.tsbuildinfo",
"publish-dev": "VERSION=${npm_package_version%-*}-dev.`git rev-parse --short HEAD` && npm version --no-git-tag-version $VERSION && npm publish --tag dev",
"regen-package-lock": "rm -rf node_modules package-lock.json; npm install",
"test": "MODE=prod cd ../tests && npx wtr '../lit/test/**/*_test.(js|html)'"
},
"files": [
"/async-directive.{d.ts.map,d.ts,js.map,js}",
"/decorators.{d.ts.map,d.ts,js.map,js}",
"/directive-helpers.{d.ts.map,d.ts,js.map,js}",
"/directive.{d.ts.map,d.ts,js.map,js}",
"/html.{d.ts.map,d.ts,js.map,js}",
"/hydrate-support.{d.ts.map,d.ts,js.map,js}",
"/hydrate.{d.ts.map,d.ts,js.map,js}",
"/index.{d.ts.map,d.ts,js.map,js}",
"/polyfill-support.{d.ts.map,d.ts,js.map,js}",
"/static-html.{d.ts.map,d.ts,js.map,js}",
"/decorators/",
"/directives/",
"/src/",
"!/src/demo/",
"!/src/test/"
],
"dependencies": {
"@lit/reactive-element": "^1.0.0-pre.2",
"lit-element": "^3.0.0-pre.3",
"lit-html": "^2.0.0-pre.6"
},
"devDependencies": {
"@esm-bundle/chai": "^4.1.5",
"@types/chai": "^4.0.1",
"@types/mocha": "^8.0.3",
"@webcomponents/shadycss": "^1.8.0",
"@webcomponents/webcomponentsjs": "^2.5.0",
"@webcomponents/template": "^1.4.4",
"chokidar-cli": "^2.1.0",
"downlevel-dts": "^0.6.0",
"mocha": "^8.1.1",
"rollup": "^2.26.4",
"tslib": "^2.0.3",
"typescript": "^4.1.3"
},
"typings": "index.d.ts"
}

@@ -1,48 +0,21 @@

Lit.js
======
# Lit 2.0
Lit is a micro-literate programming library for Javascript inspired by docco.
Lit was created for the [Apres project](http://apres.github.com) but is
released separately for easy integration with any project wanting to display
annotated Javascript code. Lit features:
Fast, lightweight web components
- Pure Javascript implementation, no shell-outs.
- Runs in browser, or via node.js.
- Can be loaded as an AMD module via requirejs, a CommonJS module via node.js,
or via a simple `<script>` include.
- Table-free, simple, and readable html structure.
- Multiple css styles.
- Pluggable comment and code parsers.
- MIT License.
## About this package
Installation
------------
The `lit` package contains everything needed to build Lit components with the LitElement base class, lit-html templates, and all first-party lit-html directives.
To use Lit on the command-line, use `npm install lit`, use the global option
to be able to run it anywhere.
Modules:
Examples
--------
- [Static Columns Style](http://apres.github.com/lit.js/columns.html)
- [Static Callouts Style](http://apres.github.com/lit.js/callouts.html)
- [Static Stacked Style](http://apres.github.com/lit.js/stacked.html)
- [In-Browser Demo](http://apres.github.com/lit.js/amd.html)
CLI
---
The command-line script `litjs` is provided to create annotated web pages from
Javascript source files.
```
Create annotated web page from JS source
Usage: litjs [infile]
Options:
-t, --template HTML template file name, defaults to columns.html
-o, --out Output file, defaults to stdout
--title Title for output page, defaults to input file name
--style, -s Page style, one of "columns", "callouts", or "stacked" [default: "columns"]
```
- `lit`: The main module exports the core pieces needed for component development: `LitElement`, `html`, `css`, and the most
- `lit/decorators.js`: Exports all the TypeScript/Babel decorators from one module.
- `lit/decorators/...`: The `decorators/` folder contains a module for each decorator (`@customElement()`, `@property()`, etc.) for optimal pay-as-you-go module loading.
- `lit/html.js`: Just the exports needed for standalone `lit-html` usage: `render()`, `html`, `svg`, etc.
- `lit/static-html.js`: The lit-html `static.js` module
- `lit/directives.js`: Contains the `Directive` base class for implementing directives.
- `lit/directive-helpers.js`: Optional helper utilities for implementing directives.
- `lit/async-directive.js`: A directive base class that supports disconnection and reconnection.
- `lit/directives/...`: The `directives/` folder contains all of the first-party lit-html directives, like `repeat`, `classMap`, etc.
- `lit/polyfill-support.js`: A module that connects Lit to the web components polyfills where necessary to support older browsers.
- `lit/hydrate-support.js`: A module that add hydration support to LitElement.
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc