mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-12 16:47:26 +02:00
chore: rename v2 project back to Docusaurus (#975)
* feat: better log message on build * feat: rename any 'endiliey|munseo' to 'facebook|docusaurus' * test: remove unwanted console.log
This commit is contained in:
parent
8568a96e65
commit
fbdd79981d
10 changed files with 44 additions and 35 deletions
|
@ -1,4 +1,4 @@
|
|||
# Munseo
|
||||
# Docusaurus 2
|
||||
|
||||
## Development Server
|
||||
|
||||
|
|
|
@ -21,7 +21,10 @@ module.exports = function createClientConfig(props) {
|
|||
.use(StatsWriterPlugin, [{filename: 'client.stats.json'}]);
|
||||
|
||||
// show compilation progress bar and build time
|
||||
config.plugin('niceLog').use(webpackNiceLog, [{name: 'Client'}]);
|
||||
const isProd = process.env.NODE_ENV === 'production';
|
||||
config
|
||||
.plugin('niceLog')
|
||||
.use(webpackNiceLog, [{name: 'Client', skipBuildTime: isProd}]);
|
||||
|
||||
// user extended webpack-chain config
|
||||
applyChainWebpack(props.siteConfig.chainWebpack, config, false);
|
||||
|
|
|
@ -31,10 +31,13 @@ module.exports = function createServerConfig(props) {
|
|||
},
|
||||
]);
|
||||
|
||||
// show compilation progress bar and build time
|
||||
// show compilation progress bar
|
||||
const isProd = process.env.NODE_ENV === 'production';
|
||||
config
|
||||
.plugin('niceLog')
|
||||
.use(webpackNiceLog, [{name: 'Server', color: 'yellow'}]);
|
||||
.use(webpackNiceLog, [
|
||||
{name: 'Server', color: 'yellow', skipBuildTime: isProd},
|
||||
]);
|
||||
|
||||
// user extended webpack-chain config
|
||||
applyChainWebpack(props.siteConfig.chainWebpack, config, true);
|
||||
|
|
|
@ -1,30 +1,35 @@
|
|||
{
|
||||
"name": "munseo",
|
||||
"version": "0.0.1",
|
||||
"description": "📝⚡️ Transform your document (문서) to a website",
|
||||
"main": "lib/index.js",
|
||||
"name": "docusaurus",
|
||||
"description": "Easy to Maintain Open Source Documentation Websites",
|
||||
"version": "2.0.0",
|
||||
"license": "MIT",
|
||||
"keywords": [
|
||||
"react",
|
||||
"static site generator",
|
||||
"webpack",
|
||||
"documentation",
|
||||
"websites",
|
||||
"open source",
|
||||
"docusaurus"
|
||||
],
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/facebook/Docusaurus.git"
|
||||
},
|
||||
"bin": {
|
||||
"munseo": "bin/munseo.js"
|
||||
"docusaurus": "bin/docusaurus.js"
|
||||
},
|
||||
"scripts": {
|
||||
"munseo": "node bin/munseo",
|
||||
"start": "node bin/munseo start website",
|
||||
"build": "node bin/munseo build website",
|
||||
"eject": "node bin/munseo eject website",
|
||||
"docusaurus": "node bin/docusaurus",
|
||||
"start": "node bin/docusaurus start website",
|
||||
"build": "node bin/docusaurus build website",
|
||||
"eject": "node bin/docusaurus eject website",
|
||||
"lint": "eslint --cache \"lib/**/*.js\" \"bin/**/*.js\" \"test/**/*.js\"",
|
||||
"test": "jest --config test/jest.config.js"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/endiliey/munseo.git"
|
||||
},
|
||||
"keywords": ["blog", "generator", "react"],
|
||||
"author": "endiliey",
|
||||
"license": "MIT",
|
||||
"bugs": {
|
||||
"url": "https://github.com/endiliey/munseo/issues"
|
||||
"url": "https://github.com/facebook/Docusaurus/issues"
|
||||
},
|
||||
"homepage": "https://github.com/endiliey/munseo#readme",
|
||||
"devDependencies": {
|
||||
"eslint": "^4.19.1",
|
||||
"eslint-config-airbnb": "17.0.0",
|
||||
|
@ -79,7 +84,7 @@
|
|||
"webpack": "^4.16.3",
|
||||
"webpack-chain": "^4.8.0",
|
||||
"webpack-merge": "^4.1.4",
|
||||
"webpack-nicelog": "^2.2.1",
|
||||
"webpack-nicelog": "^2.3.1",
|
||||
"webpack-serve": "^2.0.2",
|
||||
"webpack-stats-plugin": "^0.2.1"
|
||||
},
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
module.exports = {
|
||||
title: 'Munseo',
|
||||
title: 'docusaurus',
|
||||
baseUrl: '/',
|
||||
};
|
||||
|
|
|
@ -35,8 +35,6 @@ describe('extending generated webpack config', () => {
|
|||
},
|
||||
});
|
||||
const errors = validate(config);
|
||||
|
||||
console.log(errors);
|
||||
expect(errors.length).toBe(0);
|
||||
});
|
||||
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
{
|
||||
"scripts": {
|
||||
"start": "node ../bin/munseo start",
|
||||
"build": "node ../bin/munseo build"
|
||||
"start": "node ../bin/docusaurus start",
|
||||
"build": "node ../bin/docusaurus build"
|
||||
},
|
||||
"dependencies": {
|
||||
"munseo": "../../munseo/"
|
||||
"docusaurus": "../../docusaurus/"
|
||||
}
|
||||
}
|
|
@ -1,7 +1,7 @@
|
|||
module.exports = {
|
||||
title: 'Munseo',
|
||||
title: 'docusaurus',
|
||||
tagline: '📝⚡️ Transform your document (문서) to a website',
|
||||
organizationName: 'endiliey',
|
||||
projectName: 'munseo',
|
||||
organizationName: 'facebook',
|
||||
projectName: 'docusaurus',
|
||||
baseUrl: '/',
|
||||
};
|
||||
|
|
|
@ -6994,9 +6994,9 @@ webpack-merge@^4.1.4:
|
|||
dependencies:
|
||||
lodash "^4.17.5"
|
||||
|
||||
webpack-nicelog@^2.2.1:
|
||||
version "2.2.1"
|
||||
resolved "https://registry.yarnpkg.com/webpack-nicelog/-/webpack-nicelog-2.2.1.tgz#e3458003ce0d98966e930657176fb4eb6f536b85"
|
||||
webpack-nicelog@^2.3.1:
|
||||
version "2.3.1"
|
||||
resolved "https://registry.yarnpkg.com/webpack-nicelog/-/webpack-nicelog-2.3.1.tgz#35141251ad959df0c39069021de39b47b55cf65b"
|
||||
dependencies:
|
||||
chalk "^2.4.1"
|
||||
react-dev-utils "^5.0.1"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue