JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q9326F
  • License MIT

Compiler and testing for development with codeless components

Package Exports

  • codelessdev

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (codelessdev) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Codelessdev

Compiler and testing for development with codeless components

Install

npm install codelessdev

yarn add codelessdev

In the root directory add the file codelessdev.json

Configuration Options

port: The port the static dev site will run on. default: 8888

siteDirectory: The root folder for the static dev site. default: ''

sourceDirectory: The directory that contains the source .ts files to compile. default: 'src'

compileOutDirectory: The directory that the javascript output will go. default: 'dist'

defaultEntry: The glob pattern or file path to run the initial compile on. default: 'src/**/*.ts'

Run options

Example: codelessdev --server --compile --watch

--server: Starts a server at https://localhost:[port specified in config options].

--watch: Enables file watching in the directory specified in the config property sourceDirectory.

--compile: Compiles typescript files

Compiling

  • Compiles typescript files using ESNext module and ES2020 target.

  • Replaces const file = require('file.html|css|scss') with const file = '{minified html|css|scss}'.

  • Ensures import resolves to a valid file on output. i.e. import mod from 'dir/file' is properly output to import mod from 'dir/file.js'.

  • Generates a schema file for components based on the AST/jsDoc of the file