-
-
Notifications
You must be signed in to change notification settings - Fork 134
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1075 from huochunpeng/scaffold-plugin
feat: scaffolding aurelia plugin project
- Loading branch information
Showing
72 changed files
with
2,174 additions
and
1,095 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
module.exports = { | ||
generic: require('./generic'), | ||
requirejs: require('./requirejs'), | ||
webpack: require('./webpack') | ||
webpack: require('./webpack'), | ||
plugin: require('./plugin') | ||
}; |
33 changes: 33 additions & 0 deletions
33
build/tasks/release-checks/tests/plugin/au-build-plugin.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
const Test = require('../test'); | ||
const ExecuteCommand = require('../../tasks/execute-command'); | ||
|
||
class AuBuildPluginDoesNotThrowCommandLineErrors extends Test { | ||
constructor() { | ||
super('au build-plugin does not throw commandline errors'); | ||
} | ||
|
||
onOutput(message) { | ||
this.debug(message); | ||
|
||
if (message.toLowerCase().indexOf('error') > -1) { | ||
this.executeCommand.stop(); | ||
this.fail(); | ||
} else if (isBuildCompletedMessage(message)) { | ||
this.success(); | ||
this.executeCommand.stop(); | ||
} | ||
} | ||
|
||
execute() { | ||
this.executeCommand = new ExecuteCommand('au', ['build-plugin', '--watch'], (msg) => this.onOutput(msg)); | ||
return this.executeCommand.executeAsNodeScript(); | ||
} | ||
} | ||
|
||
function isBuildCompletedMessage(msg) { | ||
return msg.indexOf('Finish building Aurelia plugin') > -1; | ||
} | ||
|
||
module.exports = { | ||
AuBuildPluginDoesNotThrowCommandLineErrors | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
module.exports = { | ||
...require('./au-build-plugin') | ||
}; |
Oops, something went wrong.