Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/router #1

Merged
merged 3 commits into from Jul 4, 2019
Merged

Feature/router #1

merged 3 commits into from Jul 4, 2019

Conversation

leeluolee
Copy link
Contributor

No description provided.

@leeluolee leeluolee added the PR: enhancement :nail_care: Enhancement label Jul 4, 2019
@leeluolee leeluolee requested a review from xuchaoying July 4, 2019 09:45
@leeluolee leeluolee merged commit 7a07de4 into hello-svrx Jul 4, 2019
teshoudong pushed a commit that referenced this pull request Jul 7, 2019
* chore: first commit

* build: add depency

* v0.0.2

* build(npm): add test framewokr like mocha expect.js nyc etc

* feat(svrx): add middleware basic logic

- add testcase for utility
- add testcase for middleware basic (proxy , serveStatic )
- fix eslint error

* feat(plugin): basic plugin feature privode

- npm install
- system load (contains load inplace)
- system setup
- basic svrx integration usecase

* feat(injector): server side logic provide

- stream replace
- gzip support
- testcase in svrx.injector
- injector client webpack config

* feat(core): implement full logic of plugin system

- support markdown/proxy/serve/livereload/console plugin
- add io logic combine with
- add basic services
- fix proxy with gzip & chunked

* feat(core): add engine-based loader logic

- add semver depend for version compute
- add two-way check: Plugin version and Svrx version

* feat(core): imodel support watcher

all mutations like set,splice,produce will trigger watcher digesting

* feat(logger): add color modifier

* chore: add eslint prettier plugin

* feat(core): basic https support

- add node-easy-cert for simple cert gen
- add https options

* feat(markdown): beautify markdown style

* refactor(util): add svrx-util

* feat(cli): add svrx core installation

* refactor(cli): return svrx instance fix

* feat(cli): print option list help info

* feat(cli): parse options and pass to core

* refactor(cli): modify options passed to core

* feat(core): reformat options from cli and rc file

* refactor(core): fix if plugins not exists in rc file

* feat(core): handle rc file change

* feat(core): add sorted event system to svrx

- Support chainable event transmit
- Refactoring emit to async way
- Fix Some Bugs
- Coverage of events are almost 100% now

* refactor(svrx-plugin-markdown): remove redundancy plugin from main repo

- svrx-plugin-eruda
- svrx-plugin-markdown

* feat(livereload): livereload event support preventDefault

- Refactor event to support ordered emitting
- Fix some style issues
- Refactor io to support easy communication with client
- isolate events with io

* feat(core): fetch plugin props and handle plugin options

* refactor(core): add plugin config getter

* refactor(core): refact config

* fix(core): fix alias handle

* test(core): fix test errors

* feat(svrx-toolkit): add scaffold for toolkit

* perf(cli): set default command serve

* perf(core): enable inline options set

* feat(core): support Plugin get builtin pathes

* refactor(core): watch config and trigger onOptionChange

* feat(svrx-plugin-webpack): basic support webpack

* fix(core): use local pluginConfig

* fix(svrx-plugin-webpack): use $.root to get global rootOC

* refactor(core): watchEvent support builtin and plugin option query

* feat(core): validate options

* refactor(core): change plugin.configs to plugin.configSchema

* refactor(core): enable function option

* feat(serve): add headers and define all configs

* feat(livereload): define all configs

* feat(proxy): use http-proxy-middleware

* feat(cors): replace @koa/cors with koa2-cors

* feat(logger): add logger level and pluginLogger

- add getPluginLogger when inject logger to Plugin
- add setLevel to control logger level global

* test(serve): fix config name change

* refactor(proxy): add boolean type

* refactor(proxy): remove http-proxy-middleware

* feat(proxy): add changeOrigin

* fix(config): add urls.external and urls.local definition

* feat(core): add external link message

- add getExternalIp
- add notify logger level

* feat(logger): optimize logger

- add plugin installed spin
- add plugin list log
- add date formating

* fix(injector): fix style splitter

* feat(serve): support historyApiFallback

* feat(logger): prevent default npm  logger

- add ora for progress message
- add global locked to suppress all message
- fix system logger to suppress npm log
- add testcase 90%

* refactor(serve): historyApiFallback enable only when 404

* feat(serve): add serveIndex config

* refactor(proxy): set request.jar to true

* fix(proxy): set reqeust.followredirect to false

to fix cookie lose after redirect

* refactor(logger): move core logger to svrx-util

* feat(svrx-util): add c2k util for convert connect middle to koa

- monking patching connect2-koa and response for bubble ctx

* feat(webpack): fix webpack serve error

- use svrx-util for convert middleware

* feat(core): remove koa2-connect , add util.c2k

- use util.c2k for convert connect middleware to koa

* fix(core): resolve conflict with proxyw

* ci: modify test script

* feat(proxy): add proxy log

* feat(injector): add function support to injector content

- log error.track for global capture

* feat(svrx-plugin-webpack): fix hot-reloader issue in c2k

- create dummyRes every time
- load webpack local first

* feat(core): support opener

* perf(cli): change default svrx to the latest version installed locally

* fix(core): disable open in testcase

* fix(core): open local typofix

* feat(core): add plugin client wraping

- Refactoring injector.content logic for wraping
- add basic $.config service for client.config

* refactor(util): remove test log

* feat(svrx): add updateNotifier

* feat(cli): add new commands: ls,ls-remote,install

* perf(cli): add more detail to help log

* refactor(svrx): remove duplicated dependency

* refactor: add eslint-config-airbnb, remove prettier

* refactor: eslint auto fix

* refactor(svre): fix lint error in testcase

* fix(open): open.default changeto local

* refactor(cli): fix lint errors

* refactor(util): fix lint errors

* refactor(core): fix some lint errors

* docs(cors): add doc to plugin cors

* refactor(cli): move logger progress to npm install

* refactor(util): set default object value to undefined

* feat: add webpack setting, auto inject webpackConfig

* refactor(core): change serve priority to lowest

* refactor(core): add some progress log

* docs(core): add some description to config list

* feat(proxy): get raw body of post request

* fix(serve): adjust priority of middlewares

* fix(webpack): fix some bug when hot== false

* docs(plugin): add option docs to builtin plugins

* docs(core): add readme docs to builtin configs

* feat(logger): add middleware track in debug mode

* feat(proxy): add secure to enable/disable ssl validate

* refactor(serve): rename serve.serveIndex to serve.directory

* docs(cors): remove detail of cors options

* fix(webpack): webpack-hot-middleware/client resolve error

* fix(logger): remove unnecessary notify

* feat(webpack): add local webpack version validate

* docs(cli): add readme

* refactor: fix some lint errors

* feat(cli): change plugin options insert rule

* refactor(core): move cli helpPrinter to core

* docs: refine readme

* refactor(serve): move historyApiFallback out of serve config

* feat(serve): add index file name config

* feat(proxy): add proxy api and support mock

* feat(core): add scoped plugin package support

* feat(cli): ignore beta versions

* refactor(core): use util/npm.install instead of original one

* refactor(test): remove console

* fix(io): io/client  proxy to eventsObj to support all events feature

* refactor: fix some lint errors

* fix: eslint error

* fix: eslint issue

* build: add some build scripts

* refactor(core): fix configure lint errors

* build: add publish script

* refactor(cli): ignore eslint no-console

* build: set toolkit and ui package private to true

* build: add some lerna config

* chore(release): publish

 - svrx-cli@0.0.3-beta.0
 - svrx-plugin-webpack@0.0.3-beta.0
 - svrx-toolkit@0.0.2-beta.0
 - svrx-ui@0.0.3-beta.0
 - svrx-util@0.0.3-beta.0
 - svrx@0.0.3-beta.0

* fix(test): eslint lint error in __tests__

* fix(test): fix plugin testcase conflict

* fix(core): add requireEnsure to fix module cache

* fix(config): client lint error

* fix(ci): npm ci error, update package-lock.json

* fix(cli): install not-beta version first

* fix(webpack): set svrx version to engines

* fix(cli): move installed dependencies into local directory

* chore(release): publish

 - svrx-cli@0.0.3-beta.1
 - svrx-plugin-webpack@0.0.3-beta.1
 - svrx-toolkit@0.0.2-beta.1
 - svrx-ui@0.0.3-beta.1
 - svrx-util@0.0.3-beta.1
 - svrx@0.0.3-beta.1

* perf(cli): load svrx before print info

* build: add version hook to update package.lock

see lerna/lerna#1415 (comment)

* build: modify build scripts

* refactor(cli): use mkdirp instead of fs.mkdir

* build(webpack): update core version

* chore(release): publish

 - svrx-cli@0.0.3-beta.2
 - svrx-plugin-webpack@0.0.3-beta.2
 - svrx-toolkit@0.0.2-beta.2
 - svrx-ui@0.0.3-beta.2
 - svrx-util@0.0.3-beta.2
 - svrx@0.0.3-beta.2

* feat: add example for mobile debug

* feat(util): npm support registry

* feat(core): use util npm and set registry

* test(util): move npm testcases

* refactor(util): move logger out of util npm

* feat: change svrx-toolkit template

* feat: mv example

* docs(examples): add serve-static-page

* Feature/router (#1)

* feat(router): first support router

* feat(router): support router feature

* feat(config): update config for routing dsl

* feat(injector): support injector.replace

* fix(example): eslint warning disable

* chore(release): publish

 - svrx-cli@0.0.3-beta.3
 - svrx-plugin-webpack@0.0.3-beta.3
 - svrx-toolkit@0.0.2-beta.3
 - svrx-util@0.0.3-beta.3
 - svrx@0.0.3-beta.3

* docs(examples): add proxy example

* feat(cli): add stop events listener

* fix: remove example img

* chore(core,cli): remove useless dependencies
@xuchaoying xuchaoying deleted the feature/router branch July 8, 2019 02:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR: enhancement :nail_care: Enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant