datahub

所属分类:构建工具
开发工具:TypeScript
文件大小:6431KB
下载次数:0
上传日期:2022-11-20 15:20:56
上 传 者sh-1993
说明:  数据中心v2
(Datahub v2)

文件列表:
.editorconfig (139, 2019-06-17)
.eslintignore (64, 2019-06-17)
.eslintrc.json (291, 2019-06-17)
.prettierrc (198, 2019-06-17)
.storybook (0, 2019-06-17)
.storybook\addons.js (86, 2019-06-17)
.storybook\config.js (446, 2019-06-17)
.storybook\webpack.config.js (1796, 2019-06-17)
.travis.yml (1532, 2019-06-17)
.vscode (0, 2019-06-17)
.vscode\database.json (2, 2019-06-17)
.vscode\extensions.json (116, 2019-06-17)
.vscode\last.sql (0, 2019-06-17)
.vscode\launch.json (443, 2019-06-17)
.vscode\settings.json (331, 2019-06-17)
.vscode\tasks.json (346, 2019-06-17)
DDH lockup RGB.png (65630, 2019-06-17)
Dockerfile (623, 2019-06-17)
build.sh (490, 2019-06-17)
cypress.json (62, 2019-06-17)
cypress (0, 2019-06-17)
cypress\fixtures (0, 2019-06-17)
cypress\fixtures\example.json (154, 2019-06-17)
cypress\integration (0, 2019-06-17)
cypress\integration\datahub.spec.js (3255, 2019-06-17)
cypress\plugins (0, 2019-06-17)
cypress\plugins\index.js (754, 2019-06-17)
cypress\screenshots (0, 2019-06-17)
cypress\screenshots\Datahub -- should country-profile-page UK.png (164536, 2019-06-17)
cypress\screenshots\Datahub -- should have country-profile-page Uganda.png (129506, 2019-06-17)
cypress\screenshots\Datahub -- should have unbundling-aid page.png (165578, 2019-06-17)
cypress\support (0, 2019-06-17)
... ...

[![Build Status](https://travis-ci.org/devinit/datahub.svg?branch=master)](https://travis-ci.org/devinit/datahub) [![Codacy Badge](https://api.codacy.com/project/badge/Grade/73e243adf7f946208ae9bc8f892ed618)](https://www.codacy.com/app/epicallan/datahub?utm_source=github.com&utm_medium=referral&utm_content=devinit/datahub&utm_campaign=Badge_Grade) [![Dependency Status](https://gemnasium.com/badges/github.com/devinit/datahub.svg)](https://gemnasium.com/github.com/devinit/datahub) [![codecov](https://codecov.io/gh/devinit/datahub/branch/master/graph/badge.svg)](https://codecov.io/gh/devinit/datahub) Installation ------------- ``` npm install ``` ### Scripts/Commands - `npm run pull` fetches updates from the CMS and syncs the appropriate project files. Be sure to specify the correct API URL, otherwise you may pull incorrect data. TODO: _________ - [ ] Maybe replace redux with [unistore](https://github.com/developit/unistore) - [x] Use [greenlet](https://github.com/developit/greenlet) for webworkers --> didnt pan out well - [ ] Explore [purgecss](https://github.com/FullHuman/purgecss) for css optimisation --> need to carry out some tests - [ ] Explore [reactpot](https://github.com/reactopt/reactopt) for further perf Important Points / guides ------------------------ - Develop from a unix OS (MacOs , ubuntu etc). I dont plan to add windows support. - Prefer to use vscode, it has very good typescript support. - We are building on top of next.js see next.config.js for configs. - `` npm run build-fragment `` to build out a fragment json for grapqhl union types - we use npm config variables to prefill some global constants such as the API et la [see for more](http://www.marcusoft.net/2015/08/npm-scripting-configs-and-arguments.html#npm-configuration) - In dev mode we run a nodemon process, it sometimes doesnt die when you cntrl-c. You could use ```lsof -i tcp:4444 ``` to find its PID and then kill it with ``` kill -9 ```. ## [Atomic react design component development](http://bradfrost.com/blog/post/atomic-web-design/) with [storybook](https://storybooks.js.org/) Cypress testing ------- - check out the apps [cypress dashboard here](https://dashboard.cypress.io/#/organizations/dab40b78-b24e-4f1c-913a-0a0b8bd0c71a/projects)) - You need to have run `npm run build:next` before running the cypress-open command. Checkout the [readme file](https://github.com/devinit/datahub/tree/cypress/cypress) in cypress directory for more. Pain Points / issues -------------- - Currently stack with npm instead of yarn. The thing with installing with yarn, is that the charts library will stop working well for some charts. This may have to do with the way npm installs dependencies vs yarn. - For some reason cypress tests fail on travis. Temporary measure is to have them run on the git push pre hook.

近期下载者

相关文件


收藏者