devfolio-page 0.1.0 → 0.1.2
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.
|
@@ -48,7 +48,7 @@ function printHeader() {
|
|
|
48
48
|
}
|
|
49
49
|
function generateYaml(input) {
|
|
50
50
|
return `# Portfolio configuration for devfolio.page
|
|
51
|
-
# Run: devfolio render (from this folder)
|
|
51
|
+
# Run: devfolio-page render (from this folder)
|
|
52
52
|
|
|
53
53
|
meta:
|
|
54
54
|
name: ${input.name}
|
|
@@ -269,7 +269,7 @@ export async function initCommand() {
|
|
|
269
269
|
console.log(chalk.bold('Next steps:'));
|
|
270
270
|
console.log(chalk.dim(' 1.') + ' Edit ' + chalk.cyan(`${folderName}/portfolio.yaml`) + ' and add your projects');
|
|
271
271
|
console.log(chalk.dim(' 2.') + ' Add images to ' + chalk.cyan(`${folderName}/images/`));
|
|
272
|
-
console.log(chalk.dim(' 3.') + ' Run: ' + chalk.cyan(`cd ${folderName} && devfolio render`));
|
|
272
|
+
console.log(chalk.dim(' 3.') + ' Run: ' + chalk.cyan(`cd ${folderName} && devfolio-page render`));
|
|
273
273
|
console.log(chalk.dim(' 4.') + ' Open: ' + chalk.cyan(`${folderName}/site/index.html`) + ' to view');
|
|
274
274
|
console.log();
|
|
275
275
|
console.log('Tip: Check ' + chalk.cyan('https://devfolio.page/portfolios/') + ' for examples');
|
|
@@ -30,9 +30,9 @@ export function themesCommand() {
|
|
|
30
30
|
console.log();
|
|
31
31
|
});
|
|
32
32
|
console.log(chalk.dim('Usage:'));
|
|
33
|
-
console.log(` devfolio render ${chalk.cyan('--theme srcl')}`);
|
|
34
|
-
console.log(` devfolio render ${chalk.cyan('--theme modern')}`);
|
|
35
|
-
console.log(` devfolio render ${chalk.cyan('--theme dark-academia')}`);
|
|
33
|
+
console.log(` devfolio-page render ${chalk.cyan('--theme srcl')}`);
|
|
34
|
+
console.log(` devfolio-page render ${chalk.cyan('--theme modern')}`);
|
|
35
|
+
console.log(` devfolio-page render ${chalk.cyan('--theme dark-academia')}`);
|
|
36
36
|
console.log();
|
|
37
37
|
console.log(chalk.dim('Or set the theme in your portfolio.yaml:'));
|
|
38
38
|
console.log(chalk.dim(' theme: srcl'));
|
package/dist/cli/index.js
CHANGED
|
@@ -7,9 +7,9 @@ import { renderCommand } from './commands/render.js';
|
|
|
7
7
|
import { themesCommand } from './commands/themes.js';
|
|
8
8
|
const program = new Command();
|
|
9
9
|
program
|
|
10
|
-
.name('devfolio')
|
|
10
|
+
.name('devfolio-page')
|
|
11
11
|
.description('Your portfolio as code. Version control it like software.')
|
|
12
|
-
.version('0.1.
|
|
12
|
+
.version('0.1.2');
|
|
13
13
|
program
|
|
14
14
|
.command('init')
|
|
15
15
|
.description('Create a new portfolio.yaml with interactive prompts')
|
|
@@ -37,14 +37,14 @@ if (process.argv.length === 2) {
|
|
|
37
37
|
console.log();
|
|
38
38
|
console.log(chalk.bold('Commands:'));
|
|
39
39
|
console.log();
|
|
40
|
-
console.log(' ' + chalk.cyan('devfolio init') + '
|
|
41
|
-
console.log(' ' + chalk.cyan('devfolio render') + '
|
|
42
|
-
console.log(' ' + chalk.cyan('devfolio themes') + '
|
|
43
|
-
console.log(' ' + chalk.cyan('devfolio validate') + ' <file> Validate a portfolio YAML file');
|
|
44
|
-
console.log(' ' + chalk.cyan('devfolio --help') + '
|
|
40
|
+
console.log(' ' + chalk.cyan('devfolio-page init') + ' Create a new portfolio folder');
|
|
41
|
+
console.log(' ' + chalk.cyan('devfolio-page render') + ' Generate site (uses portfolio.yaml)');
|
|
42
|
+
console.log(' ' + chalk.cyan('devfolio-page themes') + ' List available themes');
|
|
43
|
+
console.log(' ' + chalk.cyan('devfolio-page validate') + ' <file> Validate a portfolio YAML file');
|
|
44
|
+
console.log(' ' + chalk.cyan('devfolio-page --help') + ' Show all options');
|
|
45
45
|
console.log();
|
|
46
46
|
console.log(chalk.dim('Get started:'));
|
|
47
|
-
console.log(chalk.dim(' $ ') + 'devfolio init');
|
|
47
|
+
console.log(chalk.dim(' $ ') + 'devfolio-page init');
|
|
48
48
|
console.log();
|
|
49
49
|
process.exit(0);
|
|
50
50
|
}
|
package/dist/cli/postinstall.js
CHANGED
|
@@ -10,11 +10,11 @@ log(chalk.cyan('└────────────────────
|
|
|
10
10
|
log();
|
|
11
11
|
log(chalk.bold('Available commands:'));
|
|
12
12
|
log();
|
|
13
|
-
log(' ' + chalk.cyan('devfolio init') + '
|
|
14
|
-
log(' ' + chalk.cyan('devfolio render') + '
|
|
15
|
-
log(' ' + chalk.cyan('devfolio validate') + ' <file> Validate a portfolio YAML file');
|
|
16
|
-
log(' ' + chalk.cyan('devfolio --help') + '
|
|
13
|
+
log(' ' + chalk.cyan('devfolio-page init') + ' Create a new portfolio folder');
|
|
14
|
+
log(' ' + chalk.cyan('devfolio-page render') + ' Generate static site from YAML');
|
|
15
|
+
log(' ' + chalk.cyan('devfolio-page validate') + ' <file> Validate a portfolio YAML file');
|
|
16
|
+
log(' ' + chalk.cyan('devfolio-page --help') + ' Show all options');
|
|
17
17
|
log();
|
|
18
18
|
log(chalk.dim('Get started:'));
|
|
19
|
-
log(chalk.dim(' $ ') + 'devfolio init');
|
|
19
|
+
log(chalk.dim(' $ ') + 'devfolio-page init');
|
|
20
20
|
log();
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "devfolio-page",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "Your portfolio as code. Version control it like software.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
7
|
-
"devfolio": "
|
|
7
|
+
"devfolio-page": "dist/cli/index.js"
|
|
8
8
|
},
|
|
9
9
|
"files": [
|
|
10
10
|
"dist",
|