mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-14 01:27:35 +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
|
## Development Server
|
||||||
|
|
||||||
|
|
|
@ -21,7 +21,10 @@ module.exports = function createClientConfig(props) {
|
||||||
.use(StatsWriterPlugin, [{filename: 'client.stats.json'}]);
|
.use(StatsWriterPlugin, [{filename: 'client.stats.json'}]);
|
||||||
|
|
||||||
// show compilation progress bar and build time
|
// 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
|
// user extended webpack-chain config
|
||||||
applyChainWebpack(props.siteConfig.chainWebpack, config, false);
|
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
|
config
|
||||||
.plugin('niceLog')
|
.plugin('niceLog')
|
||||||
.use(webpackNiceLog, [{name: 'Server', color: 'yellow'}]);
|
.use(webpackNiceLog, [
|
||||||
|
{name: 'Server', color: 'yellow', skipBuildTime: isProd},
|
||||||
|
]);
|
||||||
|
|
||||||
// user extended webpack-chain config
|
// user extended webpack-chain config
|
||||||
applyChainWebpack(props.siteConfig.chainWebpack, config, true);
|
applyChainWebpack(props.siteConfig.chainWebpack, config, true);
|
||||||
|
|
|
@ -1,30 +1,35 @@
|
||||||
{
|
{
|
||||||
"name": "munseo",
|
"name": "docusaurus",
|
||||||
"version": "0.0.1",
|
"description": "Easy to Maintain Open Source Documentation Websites",
|
||||||
"description": "📝⚡️ Transform your document (문서) to a website",
|
"version": "2.0.0",
|
||||||
"main": "lib/index.js",
|
"license": "MIT",
|
||||||
|
"keywords": [
|
||||||
|
"react",
|
||||||
|
"static site generator",
|
||||||
|
"webpack",
|
||||||
|
"documentation",
|
||||||
|
"websites",
|
||||||
|
"open source",
|
||||||
|
"docusaurus"
|
||||||
|
],
|
||||||
|
"repository": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://github.com/facebook/Docusaurus.git"
|
||||||
|
},
|
||||||
"bin": {
|
"bin": {
|
||||||
"munseo": "bin/munseo.js"
|
"docusaurus": "bin/docusaurus.js"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"munseo": "node bin/munseo",
|
"docusaurus": "node bin/docusaurus",
|
||||||
"start": "node bin/munseo start website",
|
"start": "node bin/docusaurus start website",
|
||||||
"build": "node bin/munseo build website",
|
"build": "node bin/docusaurus build website",
|
||||||
"eject": "node bin/munseo eject website",
|
"eject": "node bin/docusaurus eject website",
|
||||||
"lint": "eslint --cache \"lib/**/*.js\" \"bin/**/*.js\" \"test/**/*.js\"",
|
"lint": "eslint --cache \"lib/**/*.js\" \"bin/**/*.js\" \"test/**/*.js\"",
|
||||||
"test": "jest --config test/jest.config.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": {
|
"bugs": {
|
||||||
"url": "https://github.com/endiliey/munseo/issues"
|
"url": "https://github.com/facebook/Docusaurus/issues"
|
||||||
},
|
},
|
||||||
"homepage": "https://github.com/endiliey/munseo#readme",
|
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"eslint": "^4.19.1",
|
"eslint": "^4.19.1",
|
||||||
"eslint-config-airbnb": "17.0.0",
|
"eslint-config-airbnb": "17.0.0",
|
||||||
|
@ -79,7 +84,7 @@
|
||||||
"webpack": "^4.16.3",
|
"webpack": "^4.16.3",
|
||||||
"webpack-chain": "^4.8.0",
|
"webpack-chain": "^4.8.0",
|
||||||
"webpack-merge": "^4.1.4",
|
"webpack-merge": "^4.1.4",
|
||||||
"webpack-nicelog": "^2.2.1",
|
"webpack-nicelog": "^2.3.1",
|
||||||
"webpack-serve": "^2.0.2",
|
"webpack-serve": "^2.0.2",
|
||||||
"webpack-stats-plugin": "^0.2.1"
|
"webpack-stats-plugin": "^0.2.1"
|
||||||
},
|
},
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
module.exports = {
|
module.exports = {
|
||||||
title: 'Munseo',
|
title: 'docusaurus',
|
||||||
baseUrl: '/',
|
baseUrl: '/',
|
||||||
};
|
};
|
||||||
|
|
|
@ -35,8 +35,6 @@ describe('extending generated webpack config', () => {
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
const errors = validate(config);
|
const errors = validate(config);
|
||||||
|
|
||||||
console.log(errors);
|
|
||||||
expect(errors.length).toBe(0);
|
expect(errors.length).toBe(0);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
{
|
{
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "node ../bin/munseo start",
|
"start": "node ../bin/docusaurus start",
|
||||||
"build": "node ../bin/munseo build"
|
"build": "node ../bin/docusaurus build"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"munseo": "../../munseo/"
|
"docusaurus": "../../docusaurus/"
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -1,7 +1,7 @@
|
||||||
module.exports = {
|
module.exports = {
|
||||||
title: 'Munseo',
|
title: 'docusaurus',
|
||||||
tagline: '📝⚡️ Transform your document (문서) to a website',
|
tagline: '📝⚡️ Transform your document (문서) to a website',
|
||||||
organizationName: 'endiliey',
|
organizationName: 'facebook',
|
||||||
projectName: 'munseo',
|
projectName: 'docusaurus',
|
||||||
baseUrl: '/',
|
baseUrl: '/',
|
||||||
};
|
};
|
||||||
|
|
|
@ -6994,9 +6994,9 @@ webpack-merge@^4.1.4:
|
||||||
dependencies:
|
dependencies:
|
||||||
lodash "^4.17.5"
|
lodash "^4.17.5"
|
||||||
|
|
||||||
webpack-nicelog@^2.2.1:
|
webpack-nicelog@^2.3.1:
|
||||||
version "2.2.1"
|
version "2.3.1"
|
||||||
resolved "https://registry.yarnpkg.com/webpack-nicelog/-/webpack-nicelog-2.2.1.tgz#e3458003ce0d98966e930657176fb4eb6f536b85"
|
resolved "https://registry.yarnpkg.com/webpack-nicelog/-/webpack-nicelog-2.3.1.tgz#35141251ad959df0c39069021de39b47b55cf65b"
|
||||||
dependencies:
|
dependencies:
|
||||||
chalk "^2.4.1"
|
chalk "^2.4.1"
|
||||||
react-dev-utils "^5.0.1"
|
react-dev-utils "^5.0.1"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue