Skip to content

Commit

Permalink
Merge branch 'master' into release
Browse files Browse the repository at this point in the history
  • Loading branch information
James Criscuolo committed Jun 4, 2019
2 parents 09dfb9c + e8cb9ae commit a74efe2
Show file tree
Hide file tree
Showing 141 changed files with 2,028 additions and 1,609 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ lib/*
src/Grammar/dist/*
src/**/*.js
test/spec/*.spec.js
test/spec/Core/*.js
test/spec/core/*.js
test/support/**/*.js
10 changes: 5 additions & 5 deletions build/grammarGenerator.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ const fs = require("fs"),
pegjs = require("pegjs"),
tspegjs = require("ts-pegjs");

const thisFolder = "./src/Grammar",
inputFile = thisFolder + "/src/Grammar.pegjs",
const thisFolder = "./src/grammar",
inputFile = thisFolder + "/src/grammar.pegjs",
outputFolder = thisFolder + "/dist",
outputFile = outputFolder + "/Grammar.ts";
outputFile = outputFolder + "/grammar.ts";

const grammarContents = fs.readFileSync(inputFile, "utf8");

Expand Down Expand Up @@ -49,11 +49,11 @@ const parser = pegjs.generate(grammarContents, {
"Referred_By"
],
output: "source",
// optimize: "size",
optimize: "size",
plugins: [tspegjs],
"tspegjs": {
"tslintIgnores": "interface-name, trailing-comma, object-literal-sort-keys, max-line-length, only-arrow-functions, one-variable-per-declaration, no-consecutive-blank-lines, align, radix, quotemark, semicolon, object-literal-shorthand, variable-name, no-var-keyword, whitespace, curly, prefer-const, object-literal-key-quotes, no-string-literal, one-line, no-unused-expression, space-before-function-paren, arrow-return-shorthand",
"customHeader": "import { NameAddrHeader } from \"../../NameAddrHeader\";\nimport { URI } from \"../../URI\";"
"customHeader": "import { NameAddrHeader } from \"../../core/messages/name-addr-header\";\nimport { URI } from \"../../core/messages/uri\";"
},
"returnTypes": {
Contact: "URI | NameAddrHeader",
Expand Down
3 changes: 1 addition & 2 deletions karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ module.exports = function(config) {
'test/spec/Web/SessionDescriptionHandler.spec.js': 'webpack',
'test/spec/Web/Modifiers.spec.js': 'webpack',
'test/spec/*.spec.js': ['webpack', 'sourcemap'],
'test/spec/Contexts/*.js': ['webpack', 'sourcemap'],
'test/spec/Core/*.js': ['webpack', 'sourcemap']
'test/spec/core/*.js': ['webpack', 'sourcemap']
},

webpack: {
Expand Down
Loading

0 comments on commit a74efe2

Please sign in to comment.