Skip to content

Commit a0d73c9

Browse files
authored
Merge pull request #102 from unfoldingWord/feature-mcleanb-228-supportNewScriptureLinks
LGTM - Feature 228/add support for more urls
2 parents b3c71a5 + e2aa3fb commit a0d73c9

File tree

4 files changed

+20
-7
lines changed

4 files changed

+20
-7
lines changed

babel.config.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1+
// default build config (used for everything but production)
12
module.exports = {
23
presets: [
34
'@babel/preset-env',
45
'@babel/react',
56
'@babel/preset-typescript',
67
],
78
plugins: [
8-
'istanbul',
9+
'istanbul',
910
'@babel/plugin-proposal-nullish-coalescing-operator',
1011
'@babel/plugin-proposal-optional-chaining',
1112
]

babel.prod.config.js

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
// build config for production (on publish)
2+
module.exports = {
3+
presets: [
4+
'@babel/preset-env',
5+
'@babel/react',
6+
'@babel/preset-typescript',
7+
],
8+
plugins: [
9+
'@babel/plugin-proposal-nullish-coalescing-operator',
10+
'@babel/plugin-proposal-optional-chaining',
11+
]
12+
};

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "gitea-react-toolkit",
3-
"version": "1.10.0-rc.20",
3+
"version": "1.10.1-alpha",
44
"license": "MIT",
55
"description": "A Gitea API React Toolkit Component Library",
66
"homepage": "https://gitea-react-toolkit.netlify.com/",
@@ -24,7 +24,7 @@
2424
"scripts": {
2525
"start": "styleguidist server",
2626
"build": "styleguidist build",
27-
"prepublishOnly": "rm -fr ./dist & babel ./src --out-dir ./dist -s inline --extensions \".ts,.js\"",
27+
"prepublishOnly": "rm -fr ./dist & babel --config-file ./babel.prod.config.js ./src --out-dir ./dist -s inline --extensions \".ts,.js\"",
2828
"cypress:run": "cypress run",
2929
"test:e2e": "NODE_ENV=test start-test 6060 cypress:run && nyc report --reporter=json-summary",
3030
"test:unit": "NODE_ENV=test jest ./src/core --coverage && cat ./coverage/lcov.info | coveralls",

yarn.lock

+4-4
Original file line numberDiff line numberDiff line change
@@ -11098,10 +11098,10 @@ markdown-to-jsx@^6.10.3:
1109811098
prop-types "^15.6.2"
1109911099
unquote "^1.1.0"
1110011100

11101-
markdown-translatable@1.2.16:
11102-
version "1.2.16"
11103-
resolved "https://registry.yarnpkg.com/markdown-translatable/-/markdown-translatable-1.2.16.tgz#048624bb4762370db30030c4d0265b721c54f7e8"
11104-
integrity sha512-miTzfgoCCFwodkNN9EuUlGg2HoKZbJlYt1BqbqsfpT2jbXbu7jMPVB4d+Jj7wh3wyNSJzON4GqV4X90ke6Gt1w==
11101+
markdown-translatable@1.3.1:
11102+
version "1.3.1"
11103+
resolved "https://registry.yarnpkg.com/markdown-translatable/-/markdown-translatable-1.3.1.tgz#29393f8650be38885c7991f2e2e661bbe9d000ae"
11104+
integrity sha512-oZieaVOCjxZISyGDvcpb3XsJsnPvKd4xCULFQawQ/L395EwGHFERG6gCH65b3w3HjkLEWhdPknWf1BLK6Mu6Tg==
1110511105
dependencies:
1110611106
deep-freeze "^0.0.1"
1110711107
md5 "^2.2.1"

0 commit comments

Comments
 (0)