literate-jasmine
Advanced tools
Comparing version 0.0.2 to 0.0.3
{ | ||
"name": "literate-jasmine", | ||
"description": "write tests in markdown that are parsed to specification files to run with jasmine-node", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"bin": { | ||
@@ -6,0 +6,0 @@ "literate-jasmine": "./bin/literate-jasmine" |
@@ -10,14 +10,22 @@ # literate-jasmine [![Build Status](https://travis-ci.org/cymen/literate-jasmine.png?branch=master)](https://travis-ci.org/cymen/literate-jasmine) | ||
Below I've added this markdown structure (which includes the main header above): | ||
This README.md has this markdown structure (which includes the main header above): | ||
literate-jasmine | ||
Mathematices (level 2 header) | ||
add can add numbers (level 3 header) | ||
code blocks which can be interspersed with comments | ||
add can add numbers | ||
Strings | ||
appending works with + | ||
# literate-jasmine | ||
## Mathematices | ||
### add can add numbers (level 3 header) | ||
### add can add numbers | ||
## Strings | ||
### appending works with + | ||
This will be parsed to: | ||
Which is parsed into a tree: | ||
literate-jasmine | ||
Mathematices | ||
add can add numbers (level 3 header) | ||
add can add numbers | ||
Strings | ||
appending works with + | ||
Which is then written to disk as `FILENAME_spec.js` (so `README_spec.js`): | ||
describe('literate-jasmine', function() { | ||
@@ -39,8 +47,8 @@ describe('Mathematics', function() { | ||
To actually do the parsing (assuming you ran `npm install -g literate-jasmine`): | ||
The command `literate-jasmine` is used to convert the markdown to JavaScript | ||
(assuming you ran `npm install -g literate-jasmine`): | ||
literate-jasmine README.md | ||
Which will create README_spec.js with the parsed contents. If you're working on | ||
this project, simply run ./bin/literate-jasmine instead. | ||
(If you're working on this project, run `./bin/literate-jasmine` instead.) | ||
@@ -47,0 +55,0 @@ ## Mathematics |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
10780
78