-
Notifications
You must be signed in to change notification settings - Fork 300
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
extract tokens from electrode-react-webapp into @xarc/webapp for suba…
…pp-server (#1681) Co-authored-by: vn08447 <[email protected]>
- Loading branch information
1 parent
aef1ebd
commit a7f768f
Showing
17 changed files
with
1,311 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
"use strict"; | ||
|
||
module.exports = require("electrode-react-webapp/lib/jsx"); | ||
module.exports = require("@xarc/jsx-renderer"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
"use strict"; | ||
|
||
function tryRequire(path) { | ||
try { | ||
return require(path); | ||
} catch { | ||
return undefined; | ||
} | ||
} | ||
|
||
// Chai setup. | ||
const chai = tryRequire("chai"); | ||
if (!chai) { | ||
console.log(` | ||
mocha setup: chai is not found. Not setting it up for mocha. | ||
To setup chai for your mocha test, run 'clap mocha'.`); | ||
} else { | ||
const sinonChai = tryRequire("sinon-chai"); | ||
|
||
if (!sinonChai) { | ||
console.log(` | ||
mocha setup: sinon-chai is not found. Not setting it up for mocha. | ||
To setup sinon-chai for your mocha test, run 'clap mocha'.`); | ||
} else { | ||
chai.use(sinonChai); | ||
} | ||
|
||
// Exports | ||
global.expect = chai.expect; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
{ | ||
"name": "xarc-webapp", | ||
"version": "1.0.1", | ||
"description": "", | ||
"main": "dist/index.js", | ||
"directories": { | ||
"lib": "lib", | ||
"test": "test" | ||
}, | ||
"dependencies": { | ||
"mocha": "^8.0.1", | ||
"@xarc/jsx-renderer": "file:../xarc-jsx-renderer", | ||
"ts-node": "^8.10.2", | ||
"typescript": "^3.9.5", | ||
"xclap": "^0.2.51" | ||
}, | ||
"devDependencies": { | ||
"@types/chai": "^4.2.11", | ||
"@types/mocha": "^7.0.2", | ||
"@types/sinon": "^9.0.0", | ||
"@types/sinon-chai": "^3.2.4", | ||
"babel-eslint": "^10.1.0", | ||
"chai": "^4.2.0", | ||
"eslint": "^6.8.0", | ||
"eslint-config-walmart": "^2.2.1", | ||
"eslint-plugin-filenames": "^1.1.0", | ||
"eslint-plugin-jsdoc": "^21.0.0", | ||
"mocha": "^7.1.0", | ||
"nyc": "^15.0.0", | ||
"sinon": "^7.2.6", | ||
"sinon-chai": "^3.3.0" | ||
}, | ||
"scripts": { | ||
"test": "mocha" | ||
}, | ||
"author": "", | ||
"license": "ISC", | ||
"mocha": { | ||
"require": [ | ||
"./config/test/setup.js" | ||
], | ||
"recursive": true | ||
} | ||
} |
Oops, something went wrong.