mirror of
https://github.com/facebook/docusaurus.git
synced 2025-04-29 10:17:55 +02:00
* add poc for migration tool * fix version * fix path * fix some type error * fix type errors * fix commad * delete package.lock.json * ignore lib folder in eslint * ignore lib in prettier * fix missing version * fix sidebar in next * use primaey color * fix navbar link * fix footer * sanatize front-matter for gray-matter * add e2e test * fixworkflow * add unit test * chore(v2): fix eslint error * refactor(v2): use descriptive variable names * refactor(v2): refactor createProjectStructure * refactor(v2): refactor migrateDocusaurusProject * refactor(v2): fix eslint errors * fix(v2): fix mistake * use path.join * remove console.log * try automate migrating md file to mdx * fix types not found * fix types * remove unused fixture * use package.json for version * add support for pages * add support * sanitize fortmatter only in case of special character * chore(v2): add color to dependencies * feat(v2): initialize config with range of color and add logs * chore(v2): add glob dependency * fix(v2): fix color generation * fix(v2): fix type issue * feat(v2): add all unknown fields to customFields * fix(v2): fix css mistake * fix lerna * fix(v2): fix github actions * feat(v2): add option flag for migrating pages * fix special character * remove depulicate build * fix test * remove unwanted file * fix frontmatter * remove unused file * rerun the test * fix links * feat(v2): filter out more fields from customFields * feat(v2): filter out deprecated fields from customFields * fix items * fix types * merge master * revert docs * fix doc * fix broken link * fix test * test * fix ci * fix ci * fix ci * fix ci * fix frontmatter * log custom fields Co-authored-by: teikjun <teikjunhci@gmail.com>
35 lines
943 B
JavaScript
35 lines
943 B
JavaScript
/**
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/
|
|
|
|
const path = require('path');
|
|
|
|
const ignorePatterns = [
|
|
'/node_modules/',
|
|
'__fixtures__',
|
|
'/packages/docusaurus/lib',
|
|
'/packages/docusaurus-utils/lib',
|
|
'/packages/docusaurus-plugin-content-blog/lib',
|
|
'/packages/docusaurus-plugin-content-docs/lib',
|
|
'/packages/docusaurus-plugin-content-pages/lib',
|
|
'/packages/docusaurus-migrate/lib',
|
|
];
|
|
|
|
module.exports = {
|
|
rootDir: path.resolve(__dirname),
|
|
verbose: true,
|
|
testURL: 'http://localhost/',
|
|
testEnvironment: 'node',
|
|
testPathIgnorePatterns: ignorePatterns,
|
|
coveragePathIgnorePatterns: ignorePatterns,
|
|
transform: {
|
|
'^.+\\.[jt]sx?$': 'babel-jest',
|
|
},
|
|
setupFiles: ['./jest/stylelint-rule-test.js'],
|
|
moduleNameMapper: {
|
|
'@docusaurus/router': 'react-router-dom',
|
|
},
|
|
};
|