Skip to content
This repository was archived by the owner on Dec 19, 2025. It is now read-only.

Latest commit

 

History

History
42 lines (29 loc) · 704 Bytes

File metadata and controls

42 lines (29 loc) · 704 Bytes

create

Create a new project.

Usage: npx maid create

# Die on error
die () {
  echo
  echo >&2 "$@"
  echo
  exit 1
}

# Make sure one argument is provided
[ "$#" -eq 1 ] || die "Provide a name for the new folder! \"npx maid create NAME_HERE\""

# Validate argument to be an alphanumeric string
! [[ "$1" =~ [^a-zA-Z0-9_-] ]] || die "'$1' must only contain letters, numbers, hyphens or underscores!"

echo " >  Creating new project at '$1'..."
rsync -aq --progress project-boilerplate/ packages/$1

echo " >  Done."

serve

Start a local webserver to serve a package.

require('./serve');

sass

Compile the sass files for a package.

require('./sass');