Skip to content

Commit

Permalink
add: scope pkg
Browse files Browse the repository at this point in the history
  • Loading branch information
afeiship committed Nov 19, 2019
1 parent 7a5f935 commit a1a8d9a
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 10 deletions.
6 changes: 4 additions & 2 deletions build/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,13 @@ import {
loaders,
plugins,
externals
} from 'webpack-lib-kits';
} from '@feizheng/webpack-lib-kits';

export default merge(baseConfig, {
entry: inputs.build(),
output: outputs.build(),
output: outputs.build({
library: 'ReactStatusManager'
}),
externals: externals.base({
'@feizheng/noop': '@feizheng/noop'
}),
Expand Down
8 changes: 7 additions & 1 deletion build/dev.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
import baseConfig from '.';
import merge from 'webpack-merge';
import { configs, inputs, outputs, loaders, plugins } from 'webpack-lib-kits';
import {
configs,
inputs,
outputs,
loaders,
plugins
} from '@feizheng/webpack-lib-kits';

export default merge(baseConfig, {
entry: inputs.docs(),
Expand Down
2 changes: 1 addition & 1 deletion build/docs.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import baseConfig from '.';
import merge from 'webpack-merge';
import { configs, inputs, outputs, loaders, plugins } from 'webpack-lib-kits';
import { configs, inputs, outputs, loaders, plugins } from '@feizheng/webpack-lib-kits';

export default merge(baseConfig, {
entry: inputs.docs(),
Expand Down
2 changes: 1 addition & 1 deletion build/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { configs, inputs, outputs, loaders, plugins } from 'webpack-lib-kits';
import { configs, inputs, outputs, loaders, plugins } from '@feizheng/webpack-lib-kits';

export default {
mode: configs.mode(),
Expand Down
2 changes: 1 addition & 1 deletion build/release.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import buildConfig from './build';
import merge from 'webpack-merge';
import { configs, inputs, outputs, loaders, plugins } from 'webpack-lib-kits';
import { configs, inputs, outputs, loaders, plugins } from '@feizheng/webpack-lib-kits';
export default merge(buildConfig, {
plugins: [plugins.semver()]
});
2 changes: 1 addition & 1 deletion dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@feizheng/react-status-manager",
"version": "1.0.0",
"version": "1.1.0",
"description": "React component for status manager.",
"main": "dist/index.js",
"scripts": {
Expand Down Expand Up @@ -44,17 +44,17 @@
"@babel/preset-env": "^7.4.2",
"@babel/preset-react": "^7.0.0",
"@babel/register": "^7.4.0",
"@feizheng/rake-git": "^1.2.0",
"@feizheng/webpack-lib-kits": "^1.1.0",
"babel-loader": "^8.0.5",
"cross-env": "^5.2.0",
"express": "^4.16.4",
"jest": "^24.5.0",
"prettier": "^1.16.4",
"rake-git": "github:afeiship/rake-git",
"react-testing-library": "^6.0.2",
"webpack": "^4.29.6",
"webpack-cli": "^3.3.0",
"webpack-dev-server": "^3.2.1",
"webpack-lib-kits": "github:afeiship/webpack-lib-kits",
"webpack-merge": "^4.2.1"
},
"dependencies": {
Expand Down

0 comments on commit a1a8d9a

Please sign in to comment.