Skip to content

Commit

Permalink
fix(config): export default babel config (Lucifier129#31)
Browse files Browse the repository at this point in the history
* fix(config): export default babel config

* chore: add config to publish files

* fix: add build, start, config, context

* fix(all): add module exports

* fix(all): add module exports

* ci: add 16.x, 17.x
  • Loading branch information
tqma113 authored Oct 29, 2021
1 parent ae86eaa commit acf3a36
Show file tree
Hide file tree
Showing 51 changed files with 106 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:

strategy:
matrix:
node-version: [10.x, 12.x, 14.x, 15.x]
node-version: [10.x, 12.x, 14.x, 16.x, 17.x]
os: [ubuntu-latest, macos-latest, windows-latest]

steps:
Expand Down
3 changes: 3 additions & 0 deletions build/createGulpTask.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import createGulpTask from '../dist/build/createGulpTask'
export default createGulpTask
export * from '../dist/build/createGulpTask'
1 change: 1 addition & 0 deletions build/createGulpTask.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = require('../dist/build/createGulpTask')
3 changes: 3 additions & 0 deletions build/createWebpackConfig.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import createWebpackConfig from '../dist/build/createWebpackConfig'
export default createWebpackConfig
export * from '../dist/build/createWebpackConfig'
1 change: 1 addition & 0 deletions build/createWebpackConfig.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = require('../dist/build/createGulpTask')
3 changes: 3 additions & 0 deletions build/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import build from '../dist/build'
export default build
export * from '../dist/build'
1 change: 1 addition & 0 deletions build/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = require('../dist/build')
3 changes: 3 additions & 0 deletions build/setup-dev-env.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import setupDevEnv from '../dist/build/setup-dev-env'
export default setupDevEnv
export * from '../dist/build/setup-dev-env'
1 change: 1 addition & 0 deletions build/setup-dev-env.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = require('../dist/build/setup-dev-env')
3 changes: 3 additions & 0 deletions config/babel.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import babel from '../dist/config/babel'
export default babel
export * from '../dist/onfig/babel'
1 change: 1 addition & 0 deletions config/babel.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = require('../dist/config/babel')
3 changes: 3 additions & 0 deletions config/config.defaults.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import defaults from '../dist/config/config.defaults'
export default defaults
export * from '../dist/config/config.defaults'
1 change: 1 addition & 0 deletions config/config.defaults.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = require('../dist/config/config.defaults')
3 changes: 3 additions & 0 deletions config/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import defaults from '../dist/config'
export default defaults
export * from '../dist/config'
1 change: 1 addition & 0 deletions config/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = require('../dist/config')
3 changes: 3 additions & 0 deletions context/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import context from '../dist/context'
export default context
export * from '../dist/context'
1 change: 1 addition & 0 deletions context/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = require('../dist/context')
3 changes: 3 additions & 0 deletions controller/actions.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import actions from '../dist/controller/actions'
export default actions
export * from '../dist/controller/actions'
1 change: 1 addition & 0 deletions controller/actions.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = require('../dist/controller/actions')
3 changes: 3 additions & 0 deletions controller/attachDevToolsIfPossible.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import attachDevToolsIfPossible from '../dist/controller/attachDevToolsIfPossible'
export default attachDevToolsIfPossible
export * from '../dist/controller/attachDevToolsIfPossible'
1 change: 1 addition & 0 deletions controller/attachDevToolsIfPossible.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = require('../dist/controller/attachDevToolsIfPossible')
3 changes: 2 additions & 1 deletion controller/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
import Controller from '../dist/controller'
export default Controller
export default Controller
export * from '../dist/controller'
3 changes: 3 additions & 0 deletions entry/client.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import client from '../dist/entry/client'
export default client
export * from '../dist/entry/client'
1 change: 1 addition & 0 deletions entry/client.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = require('../dist/entry/client')
3 changes: 3 additions & 0 deletions entry/server.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import server from '../dist/entry/server'
export default server
export * from '../dist/entry/server'
1 change: 1 addition & 0 deletions entry/server.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = require('../dist/entry/server')
3 changes: 2 additions & 1 deletion hoc/connect.d.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
import connect from '../dist/hoc/connect'
export default connect
export default connect
export * from '../dist/hoc/connect'
4 changes: 3 additions & 1 deletion hook/index.d.ts
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
export * from '../dist/hook'
import hook from '../dist/hook'
export default hook
export * from '../dist/hook'
3 changes: 3 additions & 0 deletions hook/useCtrl.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import useCtrl from '../dist/hook/useCtrl'
export default useCtrl
export * from '../dist/hook/useCtrl'
1 change: 1 addition & 0 deletions hook/useCtrl.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = require('../dist/hook/useCtrl')
3 changes: 3 additions & 0 deletions hook/useModel.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import useModel from '../dist/hook/useModel'
export default useModel
export * from '../dist/hook/useModel'
1 change: 1 addition & 0 deletions hook/useModel.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = require('../dist/hook/useModel')
3 changes: 3 additions & 0 deletions hook/useModelActions.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import useModelActions from '../dist/hook/useModelActions'
export default useModelActions
export * from '../dist/hook/useModelActions'
1 change: 1 addition & 0 deletions hook/useModelActions.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = require('../dist/hook/useModelActions')
3 changes: 3 additions & 0 deletions hook/useModelState.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import useModelState from '../dist/hook/useModelState'
export default useModelState
export * from '../dist/hook/useModelState'
1 change: 1 addition & 0 deletions hook/useModelState.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = require('../dist/hook/useModelState')
3 changes: 3 additions & 0 deletions middleware/cacheView.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import cacheView from '../dist/middleware/cacheView'
export default cacheView
export * from '../dist/middleware/cacheView'
1 change: 1 addition & 0 deletions middleware/cacheView.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = require('../dist/middleware/cacheView')
3 changes: 3 additions & 0 deletions middleware/createCache.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import createCache from '../dist/middleware/createCache'
export default createCache
export * from '../dist/middleware/createCache'
1 change: 1 addition & 0 deletions middleware/createCache.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = require('../dist/middleware/createCache')
3 changes: 3 additions & 0 deletions middleware/shareRoot.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import shareRoot from '../dist/middleware/shareRoot'
export default shareRoot
export * from '../dist/middleware/shareRoot'
1 change: 1 addition & 0 deletions middleware/shareRoot.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = require('../dist/middleware/shareRoot')
8 changes: 6 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,18 @@
},
"files": [
"bin",
"build",
"component",
"config",
"context",
"controller",
"entry",
"hoc",
"hook",
"page",
"start",
"util",
"dist",
"index.js",
"index.d.ts",
"tsconfig.json"
],
"repository": {
Expand Down
3 changes: 3 additions & 0 deletions page/createPageRouter.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import createPageRouter from '../dist/page/createPageRouter'
export default createPageRouter
export * from '../dist/page/createPageRouter'
1 change: 1 addition & 0 deletions page/createPageRouter.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = require('../dist/page/createPageRouter')
3 changes: 3 additions & 0 deletions page/view.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import view from '../dist/page/view'
export default view
export * from '../dist/page/view'
1 change: 1 addition & 0 deletions page/view.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = require('../dist/page/view')
3 changes: 3 additions & 0 deletions start/babel.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import start from '../dist/start/babel'
export default start
export * from '../dist/start/babel'
1 change: 1 addition & 0 deletions start/babel.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = require('../dist/start/babel')
3 changes: 3 additions & 0 deletions start/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import start from '../dist/start'
export default start
export * from '../dist/start'
1 change: 1 addition & 0 deletions start/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = require('../dist/start')

0 comments on commit acf3a36

Please sign in to comment.