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 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 = [ export default (conf, env, options) => {
require.resolve('@kkt/loader-less'), conf = lessModules(conf, env, options);
require.resolve('@kkt/loader-raw') conf = rawModules(conf, env, options);
]; conf = scopePluginOptions(conf, env, {
...options,
export const moduleScopePluginOpts = [ allowedFiles: [path.resolve(process.cwd(), 'README.md')],
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'));
// Get the project version. // Get the project version.
conf.plugins.push( conf.plugins.push(
new webpack.DefinePlugin({ new webpack.DefinePlugin({
VERSION: JSON.stringify(pkg.version), VERSION: JSON.stringify(pkg.version),
}) })
); );
if (env === 'production') {
conf.output = { ...conf.output, publicPath: 'doc' };
}
return conf; 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", "pretest": "npm run build",
"test": "jest --coverage --detectOpenHandles", "test": "jest --coverage --detectOpenHandles",
"test:watch": "jest --watch", "test:watch": "jest --watch",
"doc": "cross-env PUBLIC_URL=. ENTRYDIR=website kkt build", "doc": "kkt build --app-src ./website",
"doc:dev": "cross-env PUBLIC_URL=. ENTRYDIR=website kkt start" "start": "kkt start --app-src ./website"
}, },
"files": [ "files": [
"index.d.ts", "index.d.ts",
@ -49,8 +49,9 @@
}, },
"dependencies": {}, "dependencies": {},
"devDependencies": { "devDependencies": {
"@kkt/loader-less": "5.10.3", "@kkt/less-modules": "6.7.2",
"@kkt/loader-raw": "5.10.3", "@kkt/raw-modules": "6.7.2",
"@kkt/scope-plugin-options": "6.7.2",
"@uiw/react-github-corners": "1.2.0", "@uiw/react-github-corners": "1.2.0",
"@uiw/react-mac-keyboard": "1.0.5", "@uiw/react-mac-keyboard": "1.0.5",
"@uiw/react-markdown-preview": "1.0.9", "@uiw/react-markdown-preview": "1.0.9",
@ -61,15 +62,15 @@
"classnames": "2.2.6", "classnames": "2.2.6",
"colors-cli": "1.0.26", "colors-cli": "1.0.26",
"cross-env": "7.0.2", "cross-env": "7.0.2",
"eslint": "7.0.0", "eslint": "7.21.0",
"eslint-config-airbnb": "18.1.0", "eslint-config-airbnb": "18.2.1",
"eslint-plugin-import": "2.20.2", "eslint-plugin-import": "2.22.1",
"eslint-plugin-jsx-a11y": "6.2.3", "eslint-plugin-jsx-a11y": "6.4.1",
"eslint-plugin-react": "7.20.0", "eslint-plugin-react": "7.22.0",
"gh-pages": "2.2.0", "gh-pages": "2.2.0",
"husky": "4.2.3", "husky": "4.2.3",
"jest": "25.2.7", "kkt": "6.7.2",
"kkt": "5.10.3", "jest": "26.6.0",
"puppeteer": "2.1.1", "puppeteer": "2.1.1",
"react": "16.13.1", "react": "16.13.1",
"react-dom": "16.13.1", "react-dom": "16.13.1",

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

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

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