Skip to content

Commit

Permalink
Update to typewiz 1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
zoehneto committed Apr 17, 2018
1 parent e94bc8b commit 2913682
Show file tree
Hide file tree
Showing 6 changed files with 169 additions and 24 deletions.
169 changes: 150 additions & 19 deletions package-lock.json

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

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@
"ts-loader": "^4.1.0",
"tslint": "^5.9.1",
"typescript": "~2.8.1",
"typewiz": "^0.7.0",
"typewiz-webpack": "^0.3.3",
"typewiz-core": "^1.0.0",
"typewiz-webpack": "^1.0.0",
"webpack": "^4.2.0",
"webpack-cli": "^2.0.13",
"webpack-merge": "^4.1.2"
Expand Down
2 changes: 1 addition & 1 deletion test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ var chai = require("chai");
var expect = require("chai").expect;
var chaiHtml = require('chai-html');
chai.use(chaiHtml);
var typewiz = require('typewiz');
var typewiz = require('typewiz-core');

var utils = require("./utils");

Expand Down
2 changes: 1 addition & 1 deletion test/utils.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
var jsdom = require("jsdom");
var { JSDOM } = jsdom;
var $_$twiz = require('typewiz/dist/type-collector-snippet').$_$twiz;
var $_$twiz = require('typewiz-core/dist/type-collector-snippet').$_$twiz;

function stringToArrayBuffer(string) {
var buffer = new ArrayBuffer(string.length);
Expand Down
9 changes: 9 additions & 0 deletions typewiz.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"common":{
"tsConfig":"tsconfig.json"
},
"instrument":{
"instrumentCallExpressions":true,
"instrumentImplicitThis":true
}
}
7 changes: 6 additions & 1 deletion webpack/typewiz.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,12 @@ module.exports = merge(baseConfig, {
rules: [
{
test: /\.ts?$/,
use: [ 'ts-loader', 'typewiz-webpack'],
use: [ {
loader: 'ts-loader',
options: {
transpileOnly: true
}
}, 'typewiz-webpack'],
include: [
path.resolve(__dirname, "../src"),
path.resolve(__dirname, "../node_modules/codepage")
Expand Down

0 comments on commit 2913682

Please sign in to comment.