From 96a568c3a5f38870f07535ccaff953f45acb7f4e Mon Sep 17 00:00:00 2001 From: Joel Chen Date: Wed, 29 Jul 2020 15:41:48 -0700 Subject: [PATCH] update module-dev --- packages/xarc-jsx-renderer/package.json | 10 ++++++++++ packages/xarc-jsx-renderer/test/data/foo.js | 2 ++ packages/xarc-jsx-renderer/test/data/test-content.js | 8 +++++--- packages/xarc-jsx-renderer/test/data/test-content17.js | 8 +++++--- .../xarc-jsx-renderer/test/fixtures/custom-count.js | 2 ++ .../xarc-jsx-renderer/test/fixtures/custom-fail.js | 2 ++ .../xarc-jsx-renderer/test/fixtures/custom-null.js | 2 ++ packages/xarc-jsx-renderer/{xclap.ts => xrun-tasks.ts} | 0 8 files changed, 28 insertions(+), 6 deletions(-) rename packages/xarc-jsx-renderer/{xclap.ts => xrun-tasks.ts} (100%) diff --git a/packages/xarc-jsx-renderer/package.json b/packages/xarc-jsx-renderer/package.json index 3ec1060a1..ca14ff2e3 100644 --- a/packages/xarc-jsx-renderer/package.json +++ b/packages/xarc-jsx-renderer/package.json @@ -114,5 +114,15 @@ "@xarc/render-context": "../xarc-render-context" }, "devDependencies": {} + }, + "@xarc/module-dev": { + "srcDir": [ "src" ], + "features": [ + "eslint", + "eslintTS", + "mocha", + "typedoc", + "typescript" + ] } } diff --git a/packages/xarc-jsx-renderer/test/data/foo.js b/packages/xarc-jsx-renderer/test/data/foo.js index 80e295b96..3533bfc00 100644 --- a/packages/xarc-jsx-renderer/test/data/foo.js +++ b/packages/xarc-jsx-renderer/test/data/foo.js @@ -1 +1,3 @@ +"use strict"; + module.exports = "hello"; diff --git a/packages/xarc-jsx-renderer/test/data/test-content.js b/packages/xarc-jsx-renderer/test/data/test-content.js index ae795d49f..0df01e4b7 100644 --- a/packages/xarc-jsx-renderer/test/data/test-content.js +++ b/packages/xarc-jsx-renderer/test/data/test-content.js @@ -1,5 +1,7 @@ +"use strict"; + module.exports = { - "status": 200, - "html": "
Test1 Electrode
", - "prefetch": "console.log('test1');" + status: 200, + html: "
Test1 Electrode
", + prefetch: "console.log('test1');" }; diff --git a/packages/xarc-jsx-renderer/test/data/test-content17.js b/packages/xarc-jsx-renderer/test/data/test-content17.js index 463551e68..6012f8c12 100644 --- a/packages/xarc-jsx-renderer/test/data/test-content17.js +++ b/packages/xarc-jsx-renderer/test/data/test-content17.js @@ -1,5 +1,7 @@ +"use strict"; + module.exports = { - "status": 200, - "html": "
Test1 Electrode17
", - "prefetch": "console.log('test1');" + status: 200, + html: "
Test1 Electrode17
", + prefetch: "console.log('test1');" }; diff --git a/packages/xarc-jsx-renderer/test/fixtures/custom-count.js b/packages/xarc-jsx-renderer/test/fixtures/custom-count.js index d8f08698a..1bc066485 100644 --- a/packages/xarc-jsx-renderer/test/fixtures/custom-count.js +++ b/packages/xarc-jsx-renderer/test/fixtures/custom-count.js @@ -1,3 +1,5 @@ +"use strict"; + let count = 0; module.exports = () => { count++; diff --git a/packages/xarc-jsx-renderer/test/fixtures/custom-fail.js b/packages/xarc-jsx-renderer/test/fixtures/custom-fail.js index 771c2752e..e696c8909 100644 --- a/packages/xarc-jsx-renderer/test/fixtures/custom-fail.js +++ b/packages/xarc-jsx-renderer/test/fixtures/custom-fail.js @@ -1 +1,3 @@ +"use strict"; + throw new Error("fail"); diff --git a/packages/xarc-jsx-renderer/test/fixtures/custom-null.js b/packages/xarc-jsx-renderer/test/fixtures/custom-null.js index afb179f85..7909b151c 100644 --- a/packages/xarc-jsx-renderer/test/fixtures/custom-null.js +++ b/packages/xarc-jsx-renderer/test/fixtures/custom-null.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = () => { return null; }; diff --git a/packages/xarc-jsx-renderer/xclap.ts b/packages/xarc-jsx-renderer/xrun-tasks.ts similarity index 100% rename from packages/xarc-jsx-renderer/xclap.ts rename to packages/xarc-jsx-renderer/xrun-tasks.ts