Skip to content
Permalink
Browse files

fix: bump docs-react and cname for build

fixes #118
fixes #119
  • Loading branch information...
shanejonas committed Apr 2, 2019
1 parent 4e0ce89 commit 8976abf39b6b0d5479a6891037b6dcd9a77e2f46
Showing with 19 additions and 6 deletions.
  1. +1 −1 config/paths.js
  2. +9 −3 package-lock.json
  3. +1 −1 package.json
  4. +8 −1 scripts/build.js
@@ -1,4 +1,4 @@
'use strict';


const path = require('path');
const fs = require('fs');

Some generated files are not rendered by default. Learn more.

@@ -14,7 +14,7 @@
"dependencies": {
"@material-ui/core": "^3.9.2",
"@material-ui/icons": "^3.0.2",
"@open-rpc/docs-react": "^1.0.6",
"@open-rpc/docs-react": "^1.0.7",
"@open-rpc/examples": "^1.2.1",
"@open-rpc/meta-schema": "^1.2.1",
"@open-rpc/schema-utils-js": "^1.5.1",
@@ -1,4 +1,4 @@
'use strict';


// Do this as the first thing so that any code reading it knows the right env.
process.env.BABEL_ENV = 'production';
@@ -66,6 +66,7 @@ checkBrowsers(paths.appPath, isInteractive)
fs.emptyDirSync(paths.appBuild);
// Merge with the public folder
copyPublicFolder();
copyCNAME();
// Start the webpack build
return build(previousFileSizes);
})
@@ -190,3 +191,9 @@ function copyPublicFolder() {
filter: file => file !== paths.appHtml,
});
}

function copyCNAME() {
fs.copySync(`${paths.appPath}/CNAME`, `${paths.appBuild}/CNAME`,
{dereference: true}
);
}

0 comments on commit 8976abf

Please sign in to comment.
You can’t perform that action at this time.