Skip to content

ndp-software/literate-es-webpack-loader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Literate ES Webpack Loader Build Status

Write Markdown files with ES6 blocks in them, and then execute the ES6 code.

Installation

ndp$ npm install -D literate-es-webpack-loader

And configure webpack:

# webpack.config.js (or equivalent)

  module: {
    loaders:       [
       {
         test:   /.*\.js\.md$/,
         loader: 'bable!literate-es'
      }
    ]
    ...

The Problem

I was writing a README.md for Test Pantry, and I wanted to ensure all the examples were executable and correct. So I found Erudite, which would let me compile and execute the code. I thought it would be nice to have it integrated with Webpack-- so one could write any code within Markdown.

References

Todo

  • Better support for tests written in literate Javascript

About

Literate Programming for ES6 Webpack Loader

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published