diff --git a/package-lock.json b/package-lock.json index 5c56851..cf74abe 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "udes-cli", - "version": "0.4.6", + "version": "0.4.7", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 04c43d4..1fa3bb1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "udes-cli", - "version": "0.4.6", + "version": "0.4.7", "description": "CLI tools used at UdeS", "dependencies": { "@udes/bower-locker": "^1.0.6", diff --git a/src/lint/Format.js b/src/lint/Format.js index 7ae5c91..6f75905 100644 --- a/src/lint/Format.js +++ b/src/lint/Format.js @@ -14,7 +14,7 @@ export default class Format extends Lintable { super({ html: () => `eslint ${this.args.path} --ext html --ignore-path .gitignore --fix`, js: () => `eslint ${this.args.path} --ext html,js,json --ignore-path .gitignore --fix`, - polymer: 'polymer-cli lint --fix', + polymer: 'polymer lint --fix', }, args) } } diff --git a/src/lint/Lint.js b/src/lint/Lint.js index ca2db8c..2cfa3fa 100644 --- a/src/lint/Lint.js +++ b/src/lint/Lint.js @@ -14,7 +14,7 @@ export default class Lint extends Lintable { super({ html: () => `htmlhint ${this.args.path}/*/.html --config .htmlhintrc.json`, js: () => `eslint ${this.args.path} --ext html,js,json --ignore-path .gitignore`, - polymer: 'polymer-cli lint', + polymer: 'polymer lint', }, args) } } diff --git a/src/lint/test/FormatTest.js b/src/lint/test/FormatTest.js index 19910d6..d645e46 100644 --- a/src/lint/test/FormatTest.js +++ b/src/lint/test/FormatTest.js @@ -10,7 +10,7 @@ describe('Format', () => { const lint = new Format({ path: '.' }) expect(lint.commands.html()).to.be.equal('eslint . --ext html --ignore-path .gitignore --fix') expect(lint.commands.js()).to.be.equal('eslint . --ext html,js,json --ignore-path .gitignore --fix') - expect(lint.commands.polymer).to.be.equal('polymer-cli lint --fix') + expect(lint.commands.polymer).to.be.equal('polymer lint --fix') }) }) }) diff --git a/src/lint/test/LintTest.js b/src/lint/test/LintTest.js index 5415c21..f22a770 100644 --- a/src/lint/test/LintTest.js +++ b/src/lint/test/LintTest.js @@ -10,7 +10,7 @@ describe('Lint', () => { const lint = new Lint({ path: '.' }) expect(lint.commands.html()).to.be.equal('htmlhint ./*/.html --config .htmlhintrc.json') expect(lint.commands.js()).to.be.equal('eslint . --ext html,js,json --ignore-path .gitignore') - expect(lint.commands.polymer).to.be.equal('polymer-cli lint') + expect(lint.commands.polymer).to.be.equal('polymer lint') }) }) }) diff --git a/src/polymer/PolymerBuild.js b/src/polymer/PolymerBuild.js index 70dd8e3..cbdde54 100644 --- a/src/polymer/PolymerBuild.js +++ b/src/polymer/PolymerBuild.js @@ -255,7 +255,7 @@ export default class PolymerBuild { */ run = () => { if (this.args.build) { - ShellJSNodeCLI.exec('polymer-cli build') + ShellJSNodeCLI.exec('polymer build') } try {