chore(deps): update dependency kkt to v6.7.2

pull/175/head
jaywcjlove 4 years ago
parent 6261dbd31d
commit df587d4f28

@ -1,25 +1,26 @@
import path from 'path';
import webpack from 'webpack';
import lessModules from '@kkt/less-modules';
import rawModules from '@kkt/raw-modules';
import scopePluginOptions from '@kkt/scope-plugin-options';
import pkg from './package.json';
export const loaderOneOf = [
require.resolve('@kkt/loader-less'),
require.resolve('@kkt/loader-raw')
];
export const moduleScopePluginOpts = [
path.resolve(process.cwd(), 'README.md')
];
export default (conf, opts, webpack) => {
conf.output.path = path.resolve(process.cwd(), 'doc');
const pkg = require(path.resolve(process.cwd(), 'package.json'));
export default (conf, env, options) => {
conf = lessModules(conf, env, options);
conf = rawModules(conf, env, options);
conf = scopePluginOptions(conf, env, {
...options,
allowedFiles: [path.resolve(process.cwd(), 'README.md')],
});
// Get the project version.
conf.plugins.push(
new webpack.DefinePlugin({
VERSION: JSON.stringify(pkg.version),
})
);
if (env === 'production') {
conf.output = { ...conf.output, publicPath: 'doc' };
}
return conf;
}

24484
package-lock.json generated

File diff suppressed because it is too large Load Diff

@ -13,8 +13,8 @@
"pretest": "npm run build",
"test": "jest --coverage --detectOpenHandles",
"test:watch": "jest --watch",
"doc": "cross-env PUBLIC_URL=. ENTRYDIR=website kkt build",
"doc:dev": "cross-env PUBLIC_URL=. ENTRYDIR=website kkt start"
"doc": "kkt build --app-src ./website",
"start": "kkt start --app-src ./website"
},
"files": [
"index.d.ts",
@ -49,8 +49,9 @@
},
"dependencies": {},
"devDependencies": {
"@kkt/loader-less": "5.10.3",
"@kkt/loader-raw": "5.10.3",
"@kkt/less-modules": "6.7.2",
"@kkt/raw-modules": "6.7.2",
"@kkt/scope-plugin-options": "6.7.2",
"@uiw/react-github-corners": "1.2.0",
"@uiw/react-mac-keyboard": "1.0.5",
"@uiw/react-markdown-preview": "1.0.9",
@ -61,15 +62,15 @@
"classnames": "2.2.6",
"colors-cli": "1.0.26",
"cross-env": "7.0.2",
"eslint": "7.0.0",
"eslint-config-airbnb": "18.1.0",
"eslint-plugin-import": "2.20.2",
"eslint-plugin-jsx-a11y": "6.2.3",
"eslint-plugin-react": "7.20.0",
"eslint": "7.21.0",
"eslint-config-airbnb": "18.2.1",
"eslint-plugin-import": "2.22.1",
"eslint-plugin-jsx-a11y": "6.4.1",
"eslint-plugin-react": "7.22.0",
"gh-pages": "2.2.0",
"husky": "4.2.3",
"jest": "25.2.7",
"kkt": "5.10.3",
"kkt": "6.7.2",
"jest": "26.6.0",
"puppeteer": "2.1.1",
"react": "16.13.1",
"react-dom": "16.13.1",

@ -12,7 +12,7 @@ require('colors-cli/toxic');
// see below for details on the options
const inputOptions = {
input: 'src/main.js',
input: 'src/index.js',
plugins: [
nodeResolve(), // so Rollup can find `ms`
commonjs(), // so Rollup can convert `ms` to an ES module

@ -7,7 +7,7 @@ const banner = require('bannerjs');
require('colors-cli/toxic');
const watchOptions = {
input: 'src/main.js',
input: 'src/index.js',
plugins: [
nodeResolve(), // so Rollup can find `ms`
commonjs(), // so Rollup can convert `ms` to an ES module

@ -651,3 +651,5 @@ describe('\n Hotkeys.js Test Case222.\n', () => {
await browser.close();
});
});
jest.setTimeout(30000);
Loading…
Cancel
Save