0.2.1 ā€¢ Published 2 months ago

pree v0.2.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 months ago

npm GitHub Workflow Status

A CLI that prebuilds HTML files. Use it to build websites with plain HTML, CSS and JS.

šŸ§¬ It pre-renders web components (docs), \ šŸ—ļø It handles layouting and metadata (docs), \ šŸ‘» It manages build-only components and scripts (docs), \ āœØ It gets components and scripts access to build environment (docs).

pree view     <src>                      # šŸ‘‰ preview your website
pree build    <src> <dest>               # šŸ‘‰ prebuild your website

Usage

šŸ‘‰ Write plain HTML, CSS and JavaScript for your website. Assuming your HTML files and your assets are in src folder, preview your website:

npx pree view src

šŸ‘‰ And prebuild it into dest folder:

npx pree build src dest

!IMPORTANT šŸ“– Read the documentation for more info.

Credits

pree is built on top of the following open-source projects (amongst others). For a more complete list, check out the credits page.

  • puppeteer: for prebuilding pages and pre-rendering web components.
  • koa: for serving content and layouting.
  • cheerio: for manipulating HTML (e.g. layouting).
  • gray-matter: for parsing front matter.
  • chokidar: for watching files.
  • chalk: for all the colors.
  • yargs: for parsing command line arguments.
  • yaml: for parsing CLI config.

Contribution

You need node, NPM to start and git to start.

# clone the code
git clone git@github.com:loreanvictor/pree.git
# install stuff
npm i

Make sure all checks are successful on your PRs. This includes all tests passing, high code coverage, correct typings and abiding all the linting rules. The code is typed with TypeScript, Jest is used for testing and coverage reports, ESLint and TypeScript ESLint are used for linting. Subsequently, IDE integrations for TypeScript and ESLint would make your life much easier (for example, VSCode supports TypeScript out of the box and has this nice ESLint plugin), but you could also use the following commands:

# run tests
npm test
# check code coverage
npm run coverage
# run linter
npm run lint
# run type checker
npm run typecheck
0.2.1

2 months ago

0.1.22

9 months ago

0.2.0

9 months ago

0.1.21

9 months ago

0.1.20

10 months ago

0.1.19

10 months ago

0.1.17

10 months ago

0.1.18

10 months ago

0.1.16

10 months ago

0.1.15

10 months ago

0.1.14

10 months ago

0.1.13

10 months ago

0.1.12

10 months ago

0.1.10

10 months ago

0.1.11

10 months ago

0.1.8

10 months ago

0.1.7

10 months ago

0.1.9

10 months ago

0.0.18

10 months ago

0.1.0

10 months ago

0.1.2

10 months ago

0.1.1

10 months ago

0.1.4

10 months ago

0.1.3

10 months ago

0.1.6

10 months ago

0.1.5

10 months ago

0.0.10

10 months ago

0.0.11

10 months ago

0.0.12

10 months ago

0.0.13

10 months ago

0.0.14

10 months ago

0.0.15

10 months ago

0.0.9

10 months ago

0.0.16

10 months ago

0.0.8

10 months ago

0.0.17

10 months ago

0.0.7

10 months ago

0.0.6

10 months ago

0.0.5

10 months ago

0.0.4

10 months ago

0.0.3

10 months ago

0.0.2

10 months ago

0.0.1

10 months ago