Skip to content

Commit 0668bf0

Browse files
committed
start update to sling12
1 parent f352145 commit 0668bf0

21 files changed

Lines changed: 555 additions & 394 deletions

bin/percli

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
var args = require('commander')
44
var semver = require('semver')
55

6-
if(semver.satisfies(semver.clean(process.version), '>=7.10.0')) {
7-
args.version('1.0.0')
6+
if(semver.satisfies(semver.clean(process.version), '>=14.0.0')) {
7+
args.version(require('../package.json').version)
88
.usage('<command> [options]')
99
.command('check', 'hepful checks')
1010
.command('server', 'server specific commands')
@@ -17,7 +17,7 @@ if(semver.satisfies(semver.clean(process.version), '>=7.10.0')) {
1717
}
1818
else {
1919
console.log()
20-
console.log('[ERROR] percli requires nodejs version 7.10.0 or greater')
20+
console.log('[ERROR] percli requires nodejs version 14.0.0 or greater')
2121
console.log()
2222
}
2323

bin/percli-check

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
const args = require('commander')
44
const checkAvailable = require('../lib/available.js')
55

6-
args.version('1.0.0')
6+
args.version(require('../package.json').version)
77
.usage('<technology>')
88
.parse(process.argv)
99

bin/percli-compile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const maven = require('maven')
88
const watch = require('node-watch');
99
const ignore = require('ignore')
1010

11-
args.version('1.0.0')
11+
args.version(require('../package.json').version)
1212
.option('-w, --watch', 'watch project and recompile')
1313
.option('-d, --deploy', 'deploy to server')
1414
.parse(process.argv)

bin/percli-create

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
var args = require('commander')
44
var asciify = require('asciify')
55

6-
args.version('1.0.0')
6+
args.version(require('../package.json').version)
77
.command('project', 'create a peregrine sites project')
88
.command('component', 'create a component shell')
99
.command('object', 'create an object shell')

bin/percli-create-component

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const templates = require('../templates/index.js')
99
const generator = require('../lib/generator.js')
1010
const functions = require('../lib/functions.js')
1111

12-
args.version('1.0.0')
12+
args.version(require('../package.json').version)
1313
.usage('[options] <componentName>')
1414
.option('-c, --container', 'component is a container (may contain other components)')
1515
.option('-f, --force', 'force creation (deletes current stub)')

bin/percli-create-object

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const templates = require('../templates/index.js')
99
const generator = require('../lib/generator.js')
1010
const functions = require('../lib/functions.js')
1111

12-
args.version('1.0.0')
12+
args.version(require('../package.json').version)
1313
.usage('[options] <objectName>')
1414
.option('-c, --container', 'object is a container (may contain other objects)')
1515
.option('-f, --force', 'force creation (deletes current stub)')

bin/percli-create-project

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const maven = require('maven')
55
const path = require('path')
66
const fileUrl = require('file-url')
77

8-
args.version('1.0.0')
8+
args.version(require('../package.json').version)
99
.usage('[options] <projectname>')
1010
.parse(process.argv)
1111

bin/percli-hatch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const args = require('commander')
44

55
const gen = require('../lib/htmltovue.js')
66

7-
args.version('1.0.0')
7+
args.version(require('../package.json').version)
88
.option('-c, --compile', 'compile (build) the component')
99
.option('-d, --deploy', 'deploy to server (note, if the model.json file has been changed a full build is necessary)')
1010
.option('-f, --dialog', 'only convert the dialog')

bin/percli-hatchobject

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const args = require('commander')
44

55
const gen = require('../lib/htmltovue.js')
66

7-
args.version('1.0.0')
7+
args.version(require('../package.json').version)
88
.usage('[options] <componentName>')
99
.parse(process.argv)
1010

bin/percli-htmltovue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const args = require('commander')
44

55
const gen = require('../lib/htmltovue.js')
66

7-
args.version('1.0.0')
7+
args.version(require('../package.json').version)
88
.option('-c, --compile', 'compile (build) the component')
99
.option('-d, --deploy', 'deploy to server (note, if the model.json file has been changed a full build is necessary)')
1010
.option('-f, --dialog', 'only convert the dialog')

0 commit comments

Comments
 (0)