codelessdev
v1.0.9
Published
Compiler and testing for development with codeless components
Downloads
8
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 andES2020
target.Replaces
const file = require('file.html|css|scss')
withconst file = '{minified html|css|scss}'
.Ensures
import
resolves to a valid file on output. i.e.import mod from 'dir/file'
is properly output toimport mod from 'dir/file.js'
.Generates a schema file for components based on the AST/jsDoc of the file