New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

codelessdev

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

codelessdev

Compiler and testing for development with codeless components

latest
Source
npmnpm
Version
1.0.9
Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

codeless

FAQs

Package last updated on 28 Sep 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts