Merge pull request #3 from Permissionless-Software-Foundation/ct-unstable

Standard linting rules and scripts added.
This commit is contained in:
Chris Troutner
2020-07-06 15:19:44 -07:00
committed by GitHub
6 changed files with 17255 additions and 48 deletions
+10
View File
@@ -0,0 +1,10 @@
{
"extends": "standard",
"env": {
"node": true,
"mocha": true
},
"parserOptions": {
"ecmaVersion": 10
}
}
+1 -1
View File
@@ -6,5 +6,5 @@
module.exports = { module.exports = {
/* Your site config here */ /* Your site config here */
plugins: ["gatsby-ipfs-web-wallet"], plugins: ['gatsby-ipfs-web-wallet']
} }
+17218 -30
View File
File diff suppressed because it is too large Load Diff
+4 -3
View File
@@ -6,11 +6,11 @@
"scripts": { "scripts": {
"build": "gatsby build", "build": "gatsby build",
"develop": "gatsby develop", "develop": "gatsby develop",
"format": "prettier --write \"**/*.{js,jsx,ts,tsx,json,md}\"", "lint": "standard --env mocha --fix",
"start": "npm run develop", "start": "npm run develop",
"serve": "gatsby serve", "serve": "gatsby serve",
"clean": "gatsby clean", "clean": "gatsby clean",
"test": "echo \"Write tests! -> https://gatsby.dev/unit-testing\"" "test": "npm run lint"
}, },
"dependencies": { "dependencies": {
"gatsby": "^2.23.7", "gatsby": "^2.23.7",
@@ -24,7 +24,8 @@
"url": "https://github.com/Permissionless-Software-Foundation/bch-wallet-starter/issues" "url": "https://github.com/Permissionless-Software-Foundation/bch-wallet-starter/issues"
}, },
"devDependencies": { "devDependencies": {
"semantic-release": "^17.1.1" "semantic-release": "^17.1.1",
"standard": "^14.3.4"
}, },
"release": { "release": {
"publish": [ "publish": [
@@ -0,0 +1,22 @@
/*
This file is how you add new menu items to your site. It uses the Gatsby
concept of Component Shadowing:
https://www.gatsbyjs.org/blog/2019-04-29-component-shadowing/
It over-rides he default file in the gatsby-ipfs-web-wallet Theme.
*/
import React from 'react'
import { Sidebar } from 'adminlte-2-react'
const { Item } = Sidebar
const MenuComponents = [
{
key: 'New Component',
component: <div>Test!</div>,
menuItem: <Item icon='fas-cog' key='New Component' text='New Component' />
}
]
export default MenuComponents
@@ -1,14 +0,0 @@
import React from "react"
import { Sidebar } from "adminlte-2-react"
const { Item } = Sidebar
const MenuComponents = [
{
key: "New Component",
component: <div>Test!</div>,
menuItem: <Item icon="fas-cog" key="New Component" text="New Component" />,
},
]
export default MenuComponents