Skip to content
This repository has been archived by the owner on May 26, 2023. It is now read-only.

Commit

Permalink
Merge pull request #116 from willowtreeapps/develop
Browse files Browse the repository at this point in the history
Merge develop
  • Loading branch information
nishtahir authored Sep 19, 2018
2 parents b622c9d + cc115b9 commit 033365b
Show file tree
Hide file tree
Showing 9 changed files with 43 additions and 22 deletions.
28 changes: 28 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -75,3 +75,31 @@ typings/

# Web Assembly
*.bc

### macOS ###
# General
.DS_Store
.AppleDouble
.LSOverride

# Icon must end with two \r
Icon

# Thumbnails
._*

# Files that might appear in the root of a volume
.DocumentRevisions-V100
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
.VolumeIcon.icns
.com.apple.timemachine.donotpresent

# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk
9 changes: 0 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,5 @@ language: node_js
node_js:
- node

sudo: required

services:
- docker

before_install:
- docker run -dit --name emscripten -v $(pwd):/src apiaryio/emcc:latest bash

script:
- docker exec -it emscripten emmake make
- npm run test
2 changes: 2 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
em++ --clear-cache
emmake make
2 changes: 1 addition & 1 deletion dist/libwist.js

Large diffs are not rendered by default.

Binary file modified dist/libwist.wasm
Binary file not shown.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"test": "ava",
"test:watch": "ava --watch"
},
"main": "./lib/api.js",
"main": "./src/js/api.js",
"repository": {
"type": "git",
"url": "git+https://github.com/willowtreeapps/wist.git"
Expand Down
2 changes: 1 addition & 1 deletion src/js/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

const Linter = require('./linter');
const CLIEngine = require('./cli-engine');
const Parser = require('../parser/index');
const Parser = require('../../dist/libwist');

module.exports = {
CLIEngine,
Expand Down
12 changes: 6 additions & 6 deletions test/lib/cli.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
const path = require('path'),
Rules = require('../../src/js/rules'),
test = require('ava');
const path = require('path');
const Rules = require('../../src/js/rules');
const test = require('ava');

const VALID_DIR = path.resolve(`${__dirname}/../fixtures/rules`),
INVALID_DIR = path.resolve(`${__dirname}/../fixtures/rules-invaliddir`);
const VALID_DIR = path.resolve(`${__dirname}/../fixtures/rules`);
const INVALID_DIR = path.resolve(`${__dirname}/../fixtures/rules-invaliddir`);

let rules;

Expand All @@ -25,7 +25,7 @@ test('error is not thrown when given a valid rules directory', t => {

test('rules.get for a valid rule returns an object', t => {
rules.load(VALID_DIR);

const rule = rules.get('fixture-rule');

t.is(typeof rule, 'object');
Expand Down
8 changes: 4 additions & 4 deletions test/lib/regression.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import test from 'ava';
import cli from '../../src/js/cli';
import fs from 'fs';
import path from 'path';
const test = require('ava');
const cli = require('../../src/js/cli');
const fs = require('fs');
const path = require('path');

test('Regression tests parse successfully', t => {
process.chdir('./test/regression');
Expand Down

0 comments on commit 033365b

Please sign in to comment.