Skip to content

Commit

Permalink
fix: updated scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
isordo committed Sep 26, 2023
1 parent cce6a0e commit 85e3d41
Show file tree
Hide file tree
Showing 44 changed files with 236 additions and 12,066 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

# Production
/build/
/build-docs/

# Generated files
.docusaurus
Expand Down
11,867 changes: 94 additions & 11,773 deletions package-lock.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,9 @@
"prettier": "npx prettier --write './sidebars.js' 'docusaurus.config.js' && npm run pretty-source",
"pretty-source": "npx prettier --ignore-unknown --write 'src/**/*'",
"pretty-docs": "npx prettier --ignore-unknown --write 'docs/**/*'",
"generate-monaco-types": "node scripts/generate-monaco-types.js",
"remove-folders": "rm -rf build-docs && rm -rf docs",
"clear-folders": "npm run remove-folders && mkdir build-docs && mkdir docs",
"embed-code": "npm run generate-monaco-types && npm run prettier && tsc src/examples/*.ts && node scripts/copy-examples.js && npm run clear-folders && cp -r src/docs/* build-docs/ && embedme 'build-docs/**/*.mdx' --source-root ./build-examples && rm -r docs && mv build-docs docs && npm run pretty-docs"
"embed-code": "npm run prettier && tsc --module es2015 --target es2015 --moduleResolution node --allowSyntheticDefaultImports true src/examples/*.ts && node scripts/copy-examples.js && npm run clear-folders && cp -r src/docs/* build-docs/ && embedme 'build-docs/**/*.mdx' --source-root ./build-examples && rm -r docs && mv build-docs docs && npm run pretty-docs"
},
"dependencies": {
"@airgap/beacon-sdk": "^4.0.10",
Expand All @@ -41,6 +40,7 @@
"@tsconfig/docusaurus": "^1.0.5",
"classnames": "^2.3.2",
"docusaurus-node-polyfills": "^1.0.0",
"embedme": "^1.22.1",
"monaco-editor-webpack-plugin": "^7.1.0",
"typescript": "^4.7.4"
},
Expand Down
2 changes: 1 addition & 1 deletion src/components/DAppTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const isGreater = (a: any, b: any) => {
undefined,
{
numeric: true,
}
},
) === 1
? -1
: 1;
Expand Down
2 changes: 1 addition & 1 deletion src/components/LoadingAnimation.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from "react";
import { useColorMode } from '@docusaurus/theme-common';
import { useColorMode } from "@docusaurus/theme-common";

const LoadingAnimation = () => {
const { colorMode } = useColorMode();
Expand Down
Loading

0 comments on commit 85e3d41

Please sign in to comment.