Skip to content

Commit

Permalink
compile to js before publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
greyarch committed Aug 12, 2017
1 parent dbe76f9 commit fa6fc40
Show file tree
Hide file tree
Showing 6 changed files with 53 additions and 11 deletions.
1 change: 1 addition & 0 deletions .gitignore
@@ -1 +1,2 @@
node_modules/
lib/
2 changes: 2 additions & 0 deletions .npmignore
@@ -0,0 +1,2 @@
src/
test/
41 changes: 41 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 7 additions & 8 deletions package.json
@@ -1,26 +1,25 @@
{
"name": "testx-yaml-parser",
"version": "1.2.0",
"version": "2.0.0",
"description": "Simple YAML file parser for use with the testx library. Converts a YAML file to testx test script (JSON)",
"main": "index.coffee",
"main": "lib/index.js",
"dependencies": {
"js-yaml": "^3.6.1"
},
"devDependencies": {
"coffee-script": "^1.10.0"
"coffee-script": "^1.11.1"
},
"scripts": {
"build": "coffee -o lib/ -c src/",
"prepublish": "npm test",
"pretest": "npm run build",
"test": "node_modules/coffee-script/bin/coffee test/spec.coffee"
},
"repository": {
"type": "git",
"url": "http://www.github.com/testxio/yaml-parser.git"
},
"keywords": [
"yaml",
"test",
"testx"
],
"keywords": ["yaml", "test", "testx"],
"author": "Greyarch BV",
"license": "ISC"
}
2 changes: 1 addition & 1 deletion index.coffee → src/index.coffee
@@ -1,6 +1,6 @@
yaml = require 'js-yaml'
fs = require 'fs'
pkg = require './package.json'
pkg = require '../package.json'

String::startsWith ?= (s) -> @[...s.length] is s

Expand Down
3 changes: 1 addition & 2 deletions test/spec.coffee
@@ -1,6 +1,5 @@
parser = require '..'
parser = require '../lib'
assert = require 'assert'
pkg = require '../package.json'

expected =
source:
Expand Down

0 comments on commit fa6fc40

Please sign in to comment.