Giter Site home page Giter Site logo

Comments (4)

nikogu avatar nikogu commented on May 23, 2024 1

https://github.com/dvajs/dva-example-user-dashboard/blob/master/.roadhogrc#L13

from dva-example-user-dashboard.

xyzdata avatar xyzdata commented on May 23, 2024

smg

http://jsonplaceholder.typicode.com/

{
    "entry": "src/index.js",
    "disableCSSModules": false,
    "publicPath": "/",
    "theme": {
        "@primary-color": "#1DA57A",
        "@link-color": "#1DA57A",
        "@border-radius-base": "2px",
        "@font-size-base": "16px",
        "@line-height-base": "1.2"
    },
    "autoprefixer": null,
    "proxy": {
        "/api": {
            "target": "http://jsonplaceholder.typicode.com/",
            "changeOrigin": true,
            "pathRewrite": { "^/api": "" }
        }
    },
    "extraBabelPlugins": [
        "transform-runtime", ["import", { "libraryName": "antd", "style": true }]
    ],
    "env": {
        "development": {
            "extraBabelPlugins": [
                "dva-hmr"
            ]
        }
    },
    "dllPlugin": {
        "exclude": [
            "babel-runtime"
        ],
        "include": [
            "dva/router",
            "dva/saga",
            "dva/fetch"
        ]
    }
}
    "private": true,
    "scripts": {
        "start": "roadhog server",
        "build": "roadhog build",
        "build:dll": "roadhog buildDll",
        "test": "roadhog test",
        "lint": "eslint --ext .js src test",
        "precommit": "npm run lint",
        "prestart": "npm run build:dll"
    },
    "dependencies": {
        "antd": "^2.6.4",
        "babel-runtime": "^6.22.0",
        "dva": "^1.2.0",
        "dva-loading": "^0.2.0",
        "react": "^15.4.2",
        "react-dom": "^15.4.2"
    },
    "devDependencies": {
        "babel-eslint": "^7.1.1",
        "babel-plugin-dva-hmr": "^0.3.2",
        "babel-plugin-import": "^1.1.0",
        "babel-plugin-transform-runtime": "^6.22.0",
        "eslint": "^3.14.0",
        "eslint-config-airbnb": "^14.0.0",
        "eslint-plugin-import": "^2.2.0",
        "eslint-plugin-jsx-a11y": "^3.0.2",
        "eslint-plugin-react": "^6.9.0",
        "expect": "^1.20.2",
        "husky": "^0.13.0",
        "redbox-react": "^1.3.2",
        "roadhog": "^0.6.0"
    }
}

bug !

"prestart": "npm run build:dll"

from dva-example-user-dashboard.

xyzdata avatar xyzdata commented on May 23, 2024

react-fake-props

https://jsonplaceholder.typicode.com/

https://github.com/typicode/react-fake-props

import path from 'path'
import fakeProps from 'react-fake-props'

const componentPath = path.join(__dirname, './Component.jsx')
const props = fakeProps(componentPath)

from dva-example-user-dashboard.

xyzdata avatar xyzdata commented on May 23, 2024

.roadhogrc, it's really hard to read!

from dva-example-user-dashboard.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.