Skip to content

Commit

Permalink
Merge pull request #1 from groupon/jkrems/feature/master/remove-modul…
Browse files Browse the repository at this point in the history
…e-traces

Remove module support code
  • Loading branch information
jkrems authored Oct 10, 2018
2 parents f5a949d + bab683e commit b4c99b6
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 19 deletions.
14 changes: 1 addition & 13 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,15 +1,3 @@
{
"extends": "groupon/node6",
"overrides": {
"files": "*.mjs",
"parserOptions": {
"sourceType": "module"
},
"rules": {
"node/no-unsupported-features": ["error", {
"version": 6,
"ignores": ["modules"]
}]
}
}
"extends": "groupon/node6"
}
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2013, Groupon, Inc.
Copyright (c) 2018, Groupon, Inc.
All rights reserved.

Redistribution and use in source and binary forms, with or without
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ you can also use a set of named tag function helpers for terser syntax.

```js
// h() is passed through as an export so you don't need to require preact
const { h, span, div } = require('phy/preact/tags');
const { h, span, div } = require('phy/tags');

module.exports = function SomeComponent() {
return div('#foo', [span(['kittens']), h(SomeOtherComponent)]);
Expand Down
2 changes: 1 addition & 1 deletion lib/phy.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2013, Groupon, Inc.
* Copyright (c) 2018, Groupon, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
Expand Down
2 changes: 1 addition & 1 deletion lib/tags.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2013, Groupon, Inc.
* Copyright (c) 2018, Groupon, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"url": "https://github.com/groupon/phy/issues"
},
"scripts": {
"pretest": "eslint --ext=mjs,js lib test preact",
"pretest": "eslint lib test preact",
"test": "nyc mocha",
"posttest": "nlm verify"
},
Expand Down
3 changes: 3 additions & 0 deletions tags.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
'use strict';

module.exports = require('./lib/tags');
2 changes: 1 addition & 1 deletion test/tags.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
const assert = require('assertive');
const render = require('preact-render-to-string');

const cjsTags = require('../lib/tags');
const cjsTags = require('../tags');

const cjsH = cjsTags.h;
const p = cjsTags.p;
Expand Down

0 comments on commit b4c99b6

Please sign in to comment.