Socket
Book a DemoInstallSign in
Socket

buildless

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

buildless

Development HTTP server and deployment tool for static websites

0.0.10
latest
npmnpm
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

buildless

Build Status

I was procrastinating and created this tool for my simple static websites.

Development HTTP server and deployment tool for static websites.

  • local http server
  • rebuild on fs changes
  • templates via EJS
  • configuration per environment
  • deployment to S3

This tool will not ever do the following:

  • output processed source files into a folder on a fs
  • it will not concatenate or merge source files into one
  • it will not deal with JavaScript modules

Basically, this is a simple preprocessor for static files which does not pollute your file system with build files.

Usage

Create .buildless.js in your project folder:

module.exports = {
  port: 8080,
  environment: {
    dev: {
      ENDPOINT: 'dev'
    },
    prod: {
      ENDPOINT: 'prod'
    },
  },
  deployment: {
    s3: {
      bucket: 'orkon-test',
    },
  },
};

environment defines variables which are available to the EJS template engine. deployment defines how the files will be deployed after they are processed by EJS.

Start a server in the local folder:

bls start [-s dev]

Deploy static folder

bls deploy [-s dev]

<%= ENDPOINT %>

Keywords

http

FAQs

Package last updated on 23 Apr 2019

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

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.