create-packer 1.16.2 → 1.16.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -21
- package/README.md +18 -18
- package/bin/clis/createTemp.d.ts +5 -5
- package/bin/clis/createTemp.js +58 -58
- package/bin/index.d.ts +2 -2
- package/bin/index.js +10 -10
- package/bin/utils/index.d.ts +4 -4
- package/bin/utils/index.js +45 -45
- package/package.json +1 -1
- package/template/docusaurus/.gitignore +20 -20
- package/template/docusaurus/.prettierignore +6 -6
- package/template/docusaurus/README.md +33 -33
- package/template/docusaurus/babel.config.js +3 -3
- package/template/docusaurus/blog/2019-05-28-hola.md +11 -11
- package/template/docusaurus/blog/2019-05-29-hello-world.md +17 -17
- package/template/docusaurus/blog/2019-05-30-welcome.md +13 -13
- package/template/docusaurus/docs/doc1/doc1.mdx +201 -201
- package/template/docusaurus/docs/doc1/doc2.mdx +5 -5
- package/template/docusaurus/docs/doc1/doc3.mdx +13 -13
- package/template/docusaurus/docs/doc1/doc4.mdx +23 -23
- package/template/docusaurus/docs/doc2/doc1.mdx +200 -200
- package/template/docusaurus/docs/doc2/doc2.mdx +5 -5
- package/template/docusaurus/docs/doc2/doc3.mdx +13 -13
- package/template/docusaurus/docs/doc2/mdx4.mdx +23 -23
- package/template/docusaurus/docusaurus.config.js +134 -134
- package/template/docusaurus/sidebars.js +14 -14
- package/template/docusaurus/static/img/undraw_docusaurus_mountain.svg +170 -170
- package/template/docusaurus/static/img/undraw_docusaurus_react.svg +169 -169
- package/template/docusaurus/tsconfig.json +4 -4
- package/template/lib/.changeset/README.md +8 -8
- package/template/lib/.changeset/config.json +11 -11
- package/template/lib/.gitignore +35 -35
- package/template/lib/packages/test/.gitignore +35 -35
- package/template/lib/packages/test/package.json +13 -13
- package/template/lib/packages/test/src/index.ts +5 -5
- package/template/lib/packages/test/tsconfig.json +17 -17
- package/template/lib/pnpm-workspace.yaml +2 -2
- package/template/nest/.eslintrc.js +25 -25
- package/template/nest/.gitignore +34 -34
- package/template/nest/.husky/pre-commit +4 -4
- package/template/nest/.prettierrc +6 -6
- package/template/nest/README.md +73 -73
- package/template/nest/nest-cli.json +5 -5
- package/template/nest/src/app.controller.spec.ts +22 -22
- package/template/nest/src/app.controller.ts +12 -12
- package/template/nest/src/app.module.ts +10 -10
- package/template/nest/src/app.service.ts +8 -8
- package/template/nest/src/main.ts +10 -10
- package/template/nest/src/utils/transform.interceptor.ts +26 -26
- package/template/nest/test/app.e2e-spec.ts +24 -24
- package/template/nest/test/jest-e2e.json +9 -9
- package/template/nest/tsconfig.build.json +5 -5
- package/template/nest/tsconfig.json +21 -21
- package/template/react/.gitignore +25 -25
- package/template/react/.husky/commit-msg +4 -4
- package/template/react/.husky/pre-commit +4 -4
- package/template/react/.prettierignore +4 -4
- package/template/react/commitlint.config.cjs +1 -1
- package/template/react/index.html +13 -13
- package/template/react/jest.config.cjs +55 -55
- package/template/react/jest.setup.ts +5 -5
- package/template/react/postcss.config.cjs +9 -9
- package/template/react/tailwind.config.cjs +8 -8
- package/template/react/tsconfig.json +25 -25
- package/template/react/tsconfig.node.json +9 -9
- package/template/vue/.husky/commit-msg +4 -4
- package/template/vue/.husky/pre-commit +4 -4
- package/template/vue/.prettierignore +4 -4
- package/template/vue/commitlint.config.cjs +1 -1
- package/template/vue/index.html +13 -13
- package/template/vue/postcss.config.cjs +9 -9
- package/template/vue/src/models/useList.ts +1 -1
- package/template/vue/tailwind.config.cjs +8 -8
- package/template/vue/tsconfig.json +22 -22
- package/template/vue/tsconfig.node.json +9 -9
package/LICENSE
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2020 1k
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2020 1k
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
# create-packer
|
|
2
|
-
|
|
3
|
-
Quickly create project templates。
|
|
4
|
-
|
|
5
|
-
## QuicklyCreate
|
|
6
|
-
|
|
7
|
-
```shell
|
|
8
|
-
npx create-packer -c <. || dirname>
|
|
9
|
-
yarn create packer -c <. || dirname>
|
|
10
|
-
pnpx create-packer -c <. || dirname>
|
|
11
|
-
```
|
|
12
|
-
|
|
13
|
-
## TempInfo
|
|
14
|
-
|
|
15
|
-
- docusaurus: Based on [Docusaurus 2](https://v2.docusaurus.io/).
|
|
16
|
-
- nest: Based on [nestjs](https://docs.nestjs.com/).
|
|
17
|
-
- vue: Based on [vite(3.x)](https://cn.vitejs.dev/), [vue3](https://vuejs.org/).
|
|
18
|
-
- react: Based on [vite(3.x)](https://cn.vitejs.dev/), [react18](https://reactjs.org/).
|
|
1
|
+
# create-packer
|
|
2
|
+
|
|
3
|
+
Quickly create project templates。
|
|
4
|
+
|
|
5
|
+
## QuicklyCreate
|
|
6
|
+
|
|
7
|
+
```shell
|
|
8
|
+
npx create-packer -c <. || dirname>
|
|
9
|
+
yarn create packer -c <. || dirname>
|
|
10
|
+
pnpx create-packer -c <. || dirname>
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## TempInfo
|
|
14
|
+
|
|
15
|
+
- docusaurus: Based on [Docusaurus 2](https://v2.docusaurus.io/).
|
|
16
|
+
- nest: Based on [nestjs](https://docs.nestjs.com/).
|
|
17
|
+
- vue: Based on [vite(3.x)](https://cn.vitejs.dev/), [vue3](https://vuejs.org/).
|
|
18
|
+
- react: Based on [vite(3.x)](https://cn.vitejs.dev/), [react18](https://reactjs.org/).
|
package/bin/clis/createTemp.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export interface tempInfoType {
|
|
2
|
-
name: string;
|
|
3
|
-
src: string;
|
|
4
|
-
}
|
|
5
|
-
export declare function createTemp(dirname: string): Promise<void>;
|
|
1
|
+
export interface tempInfoType {
|
|
2
|
+
name: string;
|
|
3
|
+
src: string;
|
|
4
|
+
}
|
|
5
|
+
export declare function createTemp(dirname: string): Promise<void>;
|
package/bin/clis/createTemp.js
CHANGED
|
@@ -1,58 +1,58 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.createTemp = void 0;
|
|
4
|
-
const inquirer = require("inquirer");
|
|
5
|
-
const fsExtra = require("fs-extra");
|
|
6
|
-
const path = require("path");
|
|
7
|
-
const fs = require("fs");
|
|
8
|
-
const chalk = require("chalk");
|
|
9
|
-
const ora = require("ora");
|
|
10
|
-
const child_process_1 = require("child_process");
|
|
11
|
-
const utils_1 = require("../utils");
|
|
12
|
-
const cwd = process.cwd();
|
|
13
|
-
const command = utils_1.onGenCommand();
|
|
14
|
-
const excludes = ['node_modules', 'yarn-error.log', 'dist'];
|
|
15
|
-
const tempRoot = path.join(__dirname, '../../template');
|
|
16
|
-
const tempInfo = utils_1.onGetDir(tempRoot).map(name => {
|
|
17
|
-
return {
|
|
18
|
-
name,
|
|
19
|
-
src: path.join(tempRoot, name)
|
|
20
|
-
};
|
|
21
|
-
});
|
|
22
|
-
function copyTempFile(tempPath, output) {
|
|
23
|
-
fsExtra.readdirSync(tempPath).map(name => {
|
|
24
|
-
if (!excludes.includes(name)) {
|
|
25
|
-
fsExtra.copySync(path.join(tempPath, name), path.join(output, name));
|
|
26
|
-
}
|
|
27
|
-
});
|
|
28
|
-
}
|
|
29
|
-
function createTempEnd(output) {
|
|
30
|
-
child_process_1.spawnSync(command, ['install'], {
|
|
31
|
-
cwd: output,
|
|
32
|
-
stdio: 'inherit'
|
|
33
|
-
});
|
|
34
|
-
}
|
|
35
|
-
async function createTemp(dirname) {
|
|
36
|
-
const isCurrent = dirname === '.';
|
|
37
|
-
const { temp } = await inquirer.prompt([
|
|
38
|
-
{
|
|
39
|
-
type: 'list',
|
|
40
|
-
name: 'temp',
|
|
41
|
-
message: 'Select temp.',
|
|
42
|
-
choices: tempInfo.map(o => o.name)
|
|
43
|
-
}
|
|
44
|
-
]);
|
|
45
|
-
const creating = ora(chalk.yellow('Creating...\n')).start();
|
|
46
|
-
const output = path.join(cwd, isCurrent ? '' : dirname);
|
|
47
|
-
if (!isCurrent && fs.existsSync(output)) {
|
|
48
|
-
return console.log(chalk.red(`${dirname} already exists!`));
|
|
49
|
-
}
|
|
50
|
-
if (!isCurrent) {
|
|
51
|
-
fsExtra.mkdirSync(output);
|
|
52
|
-
}
|
|
53
|
-
const tempPath = path.join(tempRoot, temp);
|
|
54
|
-
copyTempFile(tempPath, output);
|
|
55
|
-
createTempEnd(output);
|
|
56
|
-
creating.succeed();
|
|
57
|
-
}
|
|
58
|
-
exports.createTemp = createTemp;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.createTemp = void 0;
|
|
4
|
+
const inquirer = require("inquirer");
|
|
5
|
+
const fsExtra = require("fs-extra");
|
|
6
|
+
const path = require("path");
|
|
7
|
+
const fs = require("fs");
|
|
8
|
+
const chalk = require("chalk");
|
|
9
|
+
const ora = require("ora");
|
|
10
|
+
const child_process_1 = require("child_process");
|
|
11
|
+
const utils_1 = require("../utils");
|
|
12
|
+
const cwd = process.cwd();
|
|
13
|
+
const command = utils_1.onGenCommand();
|
|
14
|
+
const excludes = ['node_modules', 'yarn-error.log', 'dist'];
|
|
15
|
+
const tempRoot = path.join(__dirname, '../../template');
|
|
16
|
+
const tempInfo = utils_1.onGetDir(tempRoot).map(name => {
|
|
17
|
+
return {
|
|
18
|
+
name,
|
|
19
|
+
src: path.join(tempRoot, name)
|
|
20
|
+
};
|
|
21
|
+
});
|
|
22
|
+
function copyTempFile(tempPath, output) {
|
|
23
|
+
fsExtra.readdirSync(tempPath).map(name => {
|
|
24
|
+
if (!excludes.includes(name)) {
|
|
25
|
+
fsExtra.copySync(path.join(tempPath, name), path.join(output, name));
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
function createTempEnd(output) {
|
|
30
|
+
child_process_1.spawnSync(command, ['install'], {
|
|
31
|
+
cwd: output,
|
|
32
|
+
stdio: 'inherit'
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
async function createTemp(dirname) {
|
|
36
|
+
const isCurrent = dirname === '.';
|
|
37
|
+
const { temp } = await inquirer.prompt([
|
|
38
|
+
{
|
|
39
|
+
type: 'list',
|
|
40
|
+
name: 'temp',
|
|
41
|
+
message: 'Select temp.',
|
|
42
|
+
choices: tempInfo.map(o => o.name)
|
|
43
|
+
}
|
|
44
|
+
]);
|
|
45
|
+
const creating = ora(chalk.yellow('Creating...\n')).start();
|
|
46
|
+
const output = path.join(cwd, isCurrent ? '' : dirname);
|
|
47
|
+
if (!isCurrent && fs.existsSync(output)) {
|
|
48
|
+
return console.log(chalk.red(`${dirname} already exists!`));
|
|
49
|
+
}
|
|
50
|
+
if (!isCurrent) {
|
|
51
|
+
fsExtra.mkdirSync(output);
|
|
52
|
+
}
|
|
53
|
+
const tempPath = path.join(tempRoot, temp);
|
|
54
|
+
copyTempFile(tempPath, output);
|
|
55
|
+
createTempEnd(output);
|
|
56
|
+
creating.succeed();
|
|
57
|
+
}
|
|
58
|
+
exports.createTemp = createTemp;
|
package/bin/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
export {};
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
export {};
|
package/bin/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
"use strict";
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
const createTemp_1 = require("./clis/createTemp");
|
|
5
|
-
const commander_1 = require("commander");
|
|
6
|
-
commander_1.program
|
|
7
|
-
.option('-c, --create <dirname>', 'Create project.', dirname => {
|
|
8
|
-
return createTemp_1.createTemp(dirname);
|
|
9
|
-
})
|
|
10
|
-
.parse(process.argv);
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
"use strict";
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
const createTemp_1 = require("./clis/createTemp");
|
|
5
|
+
const commander_1 = require("commander");
|
|
6
|
+
commander_1.program
|
|
7
|
+
.option('-c, --create <dirname>', 'Create project.', dirname => {
|
|
8
|
+
return createTemp_1.createTemp(dirname);
|
|
9
|
+
})
|
|
10
|
+
.parse(process.argv);
|
package/bin/utils/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare function hasPnpm(): boolean;
|
|
2
|
-
export declare function hasYarn(): boolean;
|
|
3
|
-
export declare function onGenCommand(): "pnpm" | "yarn" | "npm";
|
|
4
|
-
export declare function onGetDir(root: string): string[];
|
|
1
|
+
export declare function hasPnpm(): boolean;
|
|
2
|
+
export declare function hasYarn(): boolean;
|
|
3
|
+
export declare function onGenCommand(): "pnpm" | "yarn" | "npm";
|
|
4
|
+
export declare function onGetDir(root: string): string[];
|
package/bin/utils/index.js
CHANGED
|
@@ -1,45 +1,45 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.onGetDir = exports.onGenCommand = exports.hasYarn = exports.hasPnpm = void 0;
|
|
4
|
-
const child_process_1 = require("child_process");
|
|
5
|
-
const fs_1 = require("fs");
|
|
6
|
-
function hasPnpm() {
|
|
7
|
-
try {
|
|
8
|
-
child_process_1.execSync('pnpm --version');
|
|
9
|
-
return true;
|
|
10
|
-
}
|
|
11
|
-
catch {
|
|
12
|
-
return false;
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
exports.hasPnpm = hasPnpm;
|
|
16
|
-
function hasYarn() {
|
|
17
|
-
try {
|
|
18
|
-
child_process_1.execSync('yarnpkg --version');
|
|
19
|
-
return true;
|
|
20
|
-
}
|
|
21
|
-
catch {
|
|
22
|
-
return false;
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
exports.hasYarn = hasYarn;
|
|
26
|
-
function onGenCommand() {
|
|
27
|
-
if (hasPnpm()) {
|
|
28
|
-
return 'pnpm';
|
|
29
|
-
}
|
|
30
|
-
if (hasYarn()) {
|
|
31
|
-
return 'yarn';
|
|
32
|
-
}
|
|
33
|
-
return 'npm';
|
|
34
|
-
}
|
|
35
|
-
exports.onGenCommand = onGenCommand;
|
|
36
|
-
function onGetDir(root) {
|
|
37
|
-
const dirs = [];
|
|
38
|
-
fs_1.readdirSync(root, { withFileTypes: true }).forEach(o => {
|
|
39
|
-
if (o.isDirectory()) {
|
|
40
|
-
dirs.push(o.name);
|
|
41
|
-
}
|
|
42
|
-
});
|
|
43
|
-
return dirs;
|
|
44
|
-
}
|
|
45
|
-
exports.onGetDir = onGetDir;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.onGetDir = exports.onGenCommand = exports.hasYarn = exports.hasPnpm = void 0;
|
|
4
|
+
const child_process_1 = require("child_process");
|
|
5
|
+
const fs_1 = require("fs");
|
|
6
|
+
function hasPnpm() {
|
|
7
|
+
try {
|
|
8
|
+
child_process_1.execSync('pnpm --version');
|
|
9
|
+
return true;
|
|
10
|
+
}
|
|
11
|
+
catch {
|
|
12
|
+
return false;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
exports.hasPnpm = hasPnpm;
|
|
16
|
+
function hasYarn() {
|
|
17
|
+
try {
|
|
18
|
+
child_process_1.execSync('yarnpkg --version');
|
|
19
|
+
return true;
|
|
20
|
+
}
|
|
21
|
+
catch {
|
|
22
|
+
return false;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
exports.hasYarn = hasYarn;
|
|
26
|
+
function onGenCommand() {
|
|
27
|
+
if (hasPnpm()) {
|
|
28
|
+
return 'pnpm';
|
|
29
|
+
}
|
|
30
|
+
if (hasYarn()) {
|
|
31
|
+
return 'yarn';
|
|
32
|
+
}
|
|
33
|
+
return 'npm';
|
|
34
|
+
}
|
|
35
|
+
exports.onGenCommand = onGenCommand;
|
|
36
|
+
function onGetDir(root) {
|
|
37
|
+
const dirs = [];
|
|
38
|
+
fs_1.readdirSync(root, { withFileTypes: true }).forEach(o => {
|
|
39
|
+
if (o.isDirectory()) {
|
|
40
|
+
dirs.push(o.name);
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
return dirs;
|
|
44
|
+
}
|
|
45
|
+
exports.onGetDir = onGetDir;
|
package/package.json
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
# Dependencies
|
|
2
|
-
/node_modules
|
|
3
|
-
|
|
4
|
-
# Production
|
|
5
|
-
/build
|
|
6
|
-
|
|
7
|
-
# Generated files
|
|
8
|
-
.docusaurus
|
|
9
|
-
.cache-loader
|
|
10
|
-
|
|
11
|
-
# Misc
|
|
12
|
-
.DS_Store
|
|
13
|
-
.env.local
|
|
14
|
-
.env.development.local
|
|
15
|
-
.env.test.local
|
|
16
|
-
.env.production.local
|
|
17
|
-
|
|
18
|
-
npm-debug.log*
|
|
19
|
-
yarn-debug.log*
|
|
20
|
-
yarn-error.log*
|
|
1
|
+
# Dependencies
|
|
2
|
+
/node_modules
|
|
3
|
+
|
|
4
|
+
# Production
|
|
5
|
+
/build
|
|
6
|
+
|
|
7
|
+
# Generated files
|
|
8
|
+
.docusaurus
|
|
9
|
+
.cache-loader
|
|
10
|
+
|
|
11
|
+
# Misc
|
|
12
|
+
.DS_Store
|
|
13
|
+
.env.local
|
|
14
|
+
.env.development.local
|
|
15
|
+
.env.test.local
|
|
16
|
+
.env.production.local
|
|
17
|
+
|
|
18
|
+
npm-debug.log*
|
|
19
|
+
yarn-debug.log*
|
|
20
|
+
yarn-error.log*
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
node_modules
|
|
2
|
-
build
|
|
3
|
-
.docusaurus
|
|
4
|
-
**/*.svg
|
|
5
|
-
**/*.ejs
|
|
6
|
-
package.json
|
|
1
|
+
node_modules
|
|
2
|
+
build
|
|
3
|
+
.docusaurus
|
|
4
|
+
**/*.svg
|
|
5
|
+
**/*.ejs
|
|
6
|
+
package.json
|
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
# Website
|
|
2
|
-
|
|
3
|
-
This website is built using [Docusaurus 2](https://docusaurus.io/), a modern static website generator.
|
|
4
|
-
|
|
5
|
-
## Installation
|
|
6
|
-
|
|
7
|
-
```console
|
|
8
|
-
yarn install
|
|
9
|
-
```
|
|
10
|
-
|
|
11
|
-
## Local Development
|
|
12
|
-
|
|
13
|
-
```console
|
|
14
|
-
yarn start
|
|
15
|
-
```
|
|
16
|
-
|
|
17
|
-
This command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server.
|
|
18
|
-
|
|
19
|
-
## Build
|
|
20
|
-
|
|
21
|
-
```console
|
|
22
|
-
yarn build
|
|
23
|
-
```
|
|
24
|
-
|
|
25
|
-
This command generates static content into the `build` directory and can be served using any static contents hosting service.
|
|
26
|
-
|
|
27
|
-
## Deployment
|
|
28
|
-
|
|
29
|
-
```console
|
|
30
|
-
GIT_USER=<Your GitHub username> USE_SSH=true yarn deploy
|
|
31
|
-
```
|
|
32
|
-
|
|
33
|
-
If you are using GitHub pages for hosting, this command is a convenient way to build the website and push to the `gh-pages` branch.
|
|
1
|
+
# Website
|
|
2
|
+
|
|
3
|
+
This website is built using [Docusaurus 2](https://docusaurus.io/), a modern static website generator.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```console
|
|
8
|
+
yarn install
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Local Development
|
|
12
|
+
|
|
13
|
+
```console
|
|
14
|
+
yarn start
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
This command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server.
|
|
18
|
+
|
|
19
|
+
## Build
|
|
20
|
+
|
|
21
|
+
```console
|
|
22
|
+
yarn build
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
This command generates static content into the `build` directory and can be served using any static contents hosting service.
|
|
26
|
+
|
|
27
|
+
## Deployment
|
|
28
|
+
|
|
29
|
+
```console
|
|
30
|
+
GIT_USER=<Your GitHub username> USE_SSH=true yarn deploy
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
If you are using GitHub pages for hosting, this command is a convenient way to build the website and push to the `gh-pages` branch.
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
presets: [require.resolve('@docusaurus/core/lib/babel/preset')]
|
|
3
|
-
}
|
|
1
|
+
module.exports = {
|
|
2
|
+
presets: [require.resolve('@docusaurus/core/lib/babel/preset')]
|
|
3
|
+
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
---
|
|
2
|
-
slug: hola
|
|
3
|
-
title: Hola
|
|
4
|
-
author: Gao Wei
|
|
5
|
-
author_title: Docusaurus Core Team
|
|
6
|
-
author_url: https://github.com/wgao19
|
|
7
|
-
author_image_url: https://avatars1.githubusercontent.com/u/2055384?v=4
|
|
8
|
-
tags: [hola, docusaurus]
|
|
9
|
-
---
|
|
10
|
-
|
|
11
|
-
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet
|
|
1
|
+
---
|
|
2
|
+
slug: hola
|
|
3
|
+
title: Hola
|
|
4
|
+
author: Gao Wei
|
|
5
|
+
author_title: Docusaurus Core Team
|
|
6
|
+
author_url: https://github.com/wgao19
|
|
7
|
+
author_image_url: https://avatars1.githubusercontent.com/u/2055384?v=4
|
|
8
|
+
tags: [hola, docusaurus]
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
---
|
|
2
|
-
slug: hello-world
|
|
3
|
-
title: Hello
|
|
4
|
-
author: Endilie Yacop Sucipto
|
|
5
|
-
author_title: Maintainer of Docusaurus
|
|
6
|
-
author_url: https://github.com/endiliey
|
|
7
|
-
author_image_url: https://avatars1.githubusercontent.com/u/17883920?s=460&v=4
|
|
8
|
-
tags: [hello, docusaurus]
|
|
9
|
-
---
|
|
10
|
-
|
|
11
|
-
Welcome to this blog. This blog is created with [**Docusaurus 2**](https://docusaurus.io/).
|
|
12
|
-
|
|
13
|
-
<!--truncate-->
|
|
14
|
-
|
|
15
|
-
This is a test post.
|
|
16
|
-
|
|
17
|
-
A whole bunch of other information.
|
|
1
|
+
---
|
|
2
|
+
slug: hello-world
|
|
3
|
+
title: Hello
|
|
4
|
+
author: Endilie Yacop Sucipto
|
|
5
|
+
author_title: Maintainer of Docusaurus
|
|
6
|
+
author_url: https://github.com/endiliey
|
|
7
|
+
author_image_url: https://avatars1.githubusercontent.com/u/17883920?s=460&v=4
|
|
8
|
+
tags: [hello, docusaurus]
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
Welcome to this blog. This blog is created with [**Docusaurus 2**](https://docusaurus.io/).
|
|
12
|
+
|
|
13
|
+
<!--truncate-->
|
|
14
|
+
|
|
15
|
+
This is a test post.
|
|
16
|
+
|
|
17
|
+
A whole bunch of other information.
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
---
|
|
2
|
-
slug: welcome
|
|
3
|
-
title: Welcome
|
|
4
|
-
author: Yangshun Tay
|
|
5
|
-
author_title: Front End Engineer @ Facebook
|
|
6
|
-
author_url: https://github.com/yangshun
|
|
7
|
-
author_image_url: https://avatars0.githubusercontent.com/u/1315101?s=400&v=4
|
|
8
|
-
tags: [facebook, hello, docusaurus]
|
|
9
|
-
---
|
|
10
|
-
|
|
11
|
-
Blog features are powered by the blog plugin. Simply add files to the `blog` directory. It supports tags as well!
|
|
12
|
-
|
|
13
|
-
Delete the whole directory if you don't want the blog features. As simple as that!
|
|
1
|
+
---
|
|
2
|
+
slug: welcome
|
|
3
|
+
title: Welcome
|
|
4
|
+
author: Yangshun Tay
|
|
5
|
+
author_title: Front End Engineer @ Facebook
|
|
6
|
+
author_url: https://github.com/yangshun
|
|
7
|
+
author_image_url: https://avatars0.githubusercontent.com/u/1315101?s=400&v=4
|
|
8
|
+
tags: [facebook, hello, docusaurus]
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
Blog features are powered by the blog plugin. Simply add files to the `blog` directory. It supports tags as well!
|
|
12
|
+
|
|
13
|
+
Delete the whole directory if you don't want the blog features. As simple as that!
|