micromata / Baumeister

Unmaintained – :construction_worker: The aim of this project is to help you to build your things. From Bootstrap themes over static websites to single page applications.
MIT License
171 stars 37 forks source link

Bring back validating HTML #249

Closed mischah closed 2 years ago

mischah commented 6 years ago

There is only one Node.js CLI wrapping the official »Nu Html Checker«. Sadly we can’t use it straight away because of our Windows compatability. There is no cross OS way to pass output of one CLI as parameter to another. This is needed because the path to the HTML files we’d like to validate differ if one uses Handlebars or not. On Mac OS / Linux we could easily to one of the following npm scripts:

  "validate": "node-w3c-validator --input \"$(echo | npx babel-node ./build/html-files.js)\" --format text"
  "validate": "node-w3c-validator --input \"`echo | npx babel-node ./build/html-files.js`\" --format text"

Where html-files.js is just this little script which outputs the current path to the HTMl files:

  #!/usr/bin/env node

  import {settings, useHandlebars} from './config';

  console.log(useHandlebars ? `${settings.destinations.handlebars}/*.html` : '.src/*.html');

I’m open for other ideas 🤔

mischah commented 2 years ago

This project is unmaintained 😢 See Note in Readme.