resume-cli 3.1.1 → 3.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.
package/build/builder.js CHANGED
@@ -28,7 +28,7 @@ module.exports = function resumeBuilder(theme, dir, resumeFilename, cb) {
28
28
  if (err) {
29
29
  console.log(chalk.yellow('Could not find:'), resumeFilename);
30
30
  console.log(chalk.cyan('Using example resume.json from resume-schema instead...'));
31
- resumeJson = require('resume-schema').resumeJson;
31
+ resumeJson = require('resume-schema/sample.resume.json');
32
32
  } else {
33
33
  try {
34
34
  // todo: test resume schema
package/build/main.js CHANGED
@@ -22,7 +22,7 @@ const normalizeTheme = (value, defaultValue) => {
22
22
  return theme.match('jsonresume-theme-.*') ? theme : `jsonresume-theme-${theme}`;
23
23
  };
24
24
  (async () => {
25
- program.name('resume').usage('[command] [options]').version(pkg.version).option('-F, --force', 'Used by `publish` and `export` - bypasses schema testing.').option('-t, --theme <theme name>', 'Specify theme used by `export` and `serve` or specify a path starting with . (use . for current directory or ../some/other/dir)', normalizeTheme, 'jsonresume-theme-even').option('-f, --format <file type extension>', 'Used by `export`.').option('-r, --resume <resume filename>', "path to the resume in json format. Use '-' to read from stdin", 'resume.json').option('-p, --port <port>', 'Used by `serve` (default: 4000)', 4000).option('-s, --silent', 'Used by `serve` to tell it if open browser auto or not.', false).option('-d, --dir <path>', 'Used by `serve` to indicate a public directory path.', 'public').option('--schema <relativePath>', 'Used by `validate` to validate against a custom schema.');
25
+ program.name('resume').usage('[command] [options]').version(pkg.version).option('-F, --force', 'Used by `publish` and `export` - bypasses schema testing.').option('-t, --theme <theme name>', 'Specify theme used by `export` and `serve` or specify a path starting with . (use . for current directory or ../some/other/dir)', normalizeTheme, 'jsonresume-theme-elegant').option('-f, --format <file type extension>', 'Used by `export`.').option('-r, --resume <resume filename>', "path to the resume in json format. Use '-' to read from stdin", 'resume.json').option('-p, --port <port>', 'Used by `serve` (default: 4000)', 4000).option('-s, --silent', 'Used by `serve` to tell it if open browser auto or not.', false).option('-d, --dir <path>', 'Used by `serve` to indicate a public directory path.', 'public').option('--schema <relativePath>', 'Used by `validate` to validate against a custom schema.');
26
26
  program.command('init').description('Initialize a resume.json file').action(async () => {
27
27
  await (0, _init.default)({
28
28
  resumePath: program.resume
package/build/serve.js CHANGED
@@ -6,6 +6,12 @@ const readline = require('readline');
6
6
  const bs = require('browser-sync').create();
7
7
  const builder = require('./builder');
8
8
  const reBuildResume = (theme, dir, resumeFilename, cb) => {
9
+ console.log({
10
+ theme,
11
+ dir,
12
+ resumeFilename,
13
+ cb
14
+ });
9
15
  builder(theme, dir, resumeFilename, (err, html) => {
10
16
  if (err) {
11
17
  readline.cursorTo(process.stdout, 0);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "resume-cli",
3
- "version": "3.1.1",
3
+ "version": "3.1.2",
4
4
  "description": "The JSON Resume command line interface",
5
5
  "main": "index.js",
6
6
  "engines": {
@@ -37,6 +37,7 @@
37
37
  "dotenv": "^8.2.0",
38
38
  "file-exists": "^5.0.1",
39
39
  "jest-extended": "^0.11.5",
40
+ "jsonresume-theme-elegant": "^1.16.1",
40
41
  "jsonresume-theme-even": "^0.6.0",
41
42
  "mime-types": "^2.1.27",
42
43
  "object-path-immutable": "^4.1.1",