0.0.10 • Published 5 years ago

buildless v0.0.10

Weekly downloads
-
License
MIT
Repository
-
Last release
5 years ago

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 %>

0.0.10

5 years ago

0.0.9

6 years ago

0.0.8

6 years ago

0.0.7

7 years ago

0.0.6

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.1

7 years ago