-
-
Notifications
You must be signed in to change notification settings - Fork 149
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(bench): Add pre/post merge results
- Loading branch information
1 parent
2d31b7f
commit 78c3467
Showing
98 changed files
with
1,226 additions
and
932 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
17 changes: 0 additions & 17 deletions
17
test/js-framework-benchmark/frameworks/keyed/aurelia/.babelrc
This file was deleted.
Oops, something went wrong.
12 changes: 12 additions & 0 deletions
12
test/js-framework-benchmark/frameworks/keyed/aurelia/.editorconfig
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,12 @@ | ||
# EditorConfig is awesome: http://EditorConfig.org | ||
|
||
# top-most EditorConfig file | ||
root = true | ||
|
||
# Unix-style newlines with a newline ending every file | ||
[*] | ||
end_of_line = lf | ||
insert_final_newline = true | ||
# 2 space indentation | ||
indent_style = space | ||
indent_size = 2 |
39 changes: 37 additions & 2 deletions
39
test/js-framework-benchmark/frameworks/keyed/aurelia/.gitignore
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,2 +1,37 @@ | ||
scripts | ||
src/environment.js | ||
|
||
# You may want to customise this file depending on your Operating System | ||
# and the editor that you use. | ||
# | ||
# We recommend that you use a Global Gitignore for files that are not related | ||
# to the project. (https://help.github.com/articles/ignoring-files/#create-a-global-gitignore) | ||
|
||
# OS | ||
# | ||
# Ref: https://github.com/github/gitignore/blob/master/Global/macOS.gitignore | ||
# Ref: https://github.com/github/gitignore/blob/master/Global/Windows.gitignore | ||
# Ref: https://github.com/github/gitignore/blob/master/Global/Linux.gitignore | ||
.DS_STORE | ||
Thumbs.db | ||
|
||
# Editors | ||
# | ||
# Ref: https://github.com/github/gitignore/blob/master/Global | ||
# Ref: https://github.com/github/gitignore/blob/master/Global/JetBrains.gitignore | ||
# Ref: https://github.com/github/gitignore/blob/master/Global/VisualStudioCode.gitignore | ||
.idea | ||
.vscode/* | ||
!.vscode/settings.json | ||
!.vscode/tasks.json | ||
!.vscode/launch.json | ||
!.vscode/extensions.json | ||
|
||
# Dependencies | ||
node_modules | ||
|
||
# Compiled files | ||
/scripts | ||
/src/environment.js | ||
/src/environment.ts | ||
/dist | ||
/test/coverage-jest | ||
/test/coverage-karma |
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 @@ | ||
package-lock=false |
25 changes: 25 additions & 0 deletions
25
test/js-framework-benchmark/frameworks/keyed/aurelia/README.md
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,25 @@ | ||
# `aurelia` | ||
|
||
This project is bootstrapped by [aurelia-cli](https://github.com/aurelia/cli). | ||
|
||
For more information, go to https://aurelia.io/docs/cli/webpack | ||
|
||
## Run dev app | ||
|
||
Run `npm start`, then open `http://localhost:8080` | ||
|
||
You can change the standard webpack configurations from CLI easily with something like this: `npm start -- --open --port 8888`. However, it is better to change the respective npm scripts or `webpack.config.js` with these options, as per your need. | ||
|
||
To enable Webpack Bundle Analyzer, do `npm run analyze` (production build). | ||
|
||
To enable hot module reload, do `npm start -- --env.hmr`. | ||
|
||
To change dev server port, do `au run --port 8888`. | ||
|
||
To change dev server host, do `au run --host 127.0.0.1` | ||
|
||
**PS:** You could mix all the flags as well, `au run --host 127.0.0.1 --port 7070 --open --env.hmr` | ||
|
||
## Build for production | ||
|
||
Run `npm run build`. |
135 changes: 19 additions & 116 deletions
135
test/js-framework-benchmark/frameworks/keyed/aurelia/aurelia_project/aurelia.json
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,127 +1,30 @@ | ||
{ | ||
"name": "aurelia-v1.1.2-non-keyed", | ||
"name": "aurelia", | ||
"type": "project:application", | ||
"bundler": { | ||
"id": "cli", | ||
"displayName": "Aurelia-CLI" | ||
}, | ||
"build": { | ||
"targets": [ | ||
{ | ||
"id": "web", | ||
"displayName": "Web", | ||
"index": "index.html", | ||
"baseDir": ".", | ||
"output": "scripts" | ||
} | ||
], | ||
"options": { | ||
"minify": "stage & prod", | ||
"sourcemaps": "dev & stage" | ||
}, | ||
"bundles": [ | ||
{ | ||
"name": "app-bundle.js", | ||
"source": [ | ||
"[**/*.js]", | ||
"**/*.{css,html}" | ||
] | ||
}, | ||
{ | ||
"name": "vendor-bundle.js", | ||
"prepend": [ | ||
"node_modules/requirejs/require.js" | ||
], | ||
"dependencies": [ | ||
"aurelia-binding", | ||
"aurelia-bootstrapper", | ||
"aurelia-dependency-injection", | ||
"aurelia-framework", | ||
"aurelia-loader", | ||
"aurelia-loader-default", | ||
"aurelia-logging", | ||
{ | ||
"name": "aurelia-logging-console", | ||
"path": "../node_modules/aurelia-logging-console/dist/amd", | ||
"main": "aurelia-logging-console", | ||
"env": "dev & stage" | ||
}, | ||
"aurelia-metadata", | ||
"aurelia-pal", | ||
"aurelia-pal-browser", | ||
"aurelia-path", | ||
"aurelia-task-queue", | ||
"aurelia-templating", | ||
"aurelia-templating-binding", | ||
{ | ||
"name": "aurelia-templating-resources", | ||
"path": "../node_modules/aurelia-templating-resources/dist/amd", | ||
"main": "aurelia-templating-resources" | ||
}, | ||
"text" | ||
] | ||
} | ||
], | ||
"loader": { | ||
"type": "require", | ||
"configTarget": "vendor-bundle.js", | ||
"includeBundleMetadataInConfig": "auto", | ||
"plugins": [ | ||
{ | ||
"name": "text", | ||
"extensions": [ | ||
".html", | ||
".css" | ||
], | ||
"stub": true | ||
} | ||
] | ||
} | ||
}, | ||
"platform": { | ||
"id": "web", | ||
"displayName": "Web", | ||
"index": "index.html", | ||
"baseDir": ".", | ||
"output": "scripts" | ||
}, | ||
"transpiler": { | ||
"id": "babel", | ||
"displayName": "Babel", | ||
"fileExtension": ".js", | ||
"options": { | ||
"plugins": [ | ||
"transform-es2015-modules-amd" | ||
] | ||
}, | ||
"source": "src/**/*.js" | ||
}, | ||
"markupProcessor": { | ||
"id": "minimum", | ||
"displayName": "Minimal Minification", | ||
"fileExtension": ".html", | ||
"source": "src/**/*.html" | ||
}, | ||
"cssProcessor": { | ||
"id": "none", | ||
"displayName": "None", | ||
"fileExtension": ".css", | ||
"source": "src/**/*.css" | ||
}, | ||
"editor": { | ||
"id": "none", | ||
"displayName": "None" | ||
}, | ||
"unitTestRunner": { | ||
"id": "none", | ||
"displayName": "None" | ||
}, | ||
"paths": { | ||
"root": "src", | ||
"resources": "resources", | ||
"elements": "resources/elements", | ||
"attributes": "resources/attributes", | ||
"valueConverters": "resources/value-converters", | ||
"bindingBehaviors": "resources/binding-behaviors" | ||
}, | ||
"transpiler": { | ||
"id": "typescript", | ||
"fileExtension": ".ts" | ||
}, | ||
"build": { | ||
"options": { | ||
"server": "dev", | ||
"extractCss": "prod", | ||
"coverage": false | ||
} | ||
}, | ||
"platform": { | ||
"hmr": false, | ||
"open": false, | ||
"port": 8080, | ||
"host": "localhost", | ||
"output": "dist" | ||
} | ||
} |
3 changes: 0 additions & 3 deletions
3
test/js-framework-benchmark/frameworks/keyed/aurelia/aurelia_project/environments/dev.js
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
test/js-framework-benchmark/frameworks/keyed/aurelia/aurelia_project/environments/prod.js
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
test/js-framework-benchmark/frameworks/keyed/aurelia/aurelia_project/environments/stage.js
This file was deleted.
Oops, something went wrong.
44 changes: 0 additions & 44 deletions
44
test/js-framework-benchmark/frameworks/keyed/aurelia/aurelia_project/generators/attribute.js
This file was deleted.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
...js-framework-benchmark/frameworks/keyed/aurelia/aurelia_project/generators/attribute.json
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,4 +1,4 @@ | ||
{ | ||
"name": "attribute", | ||
"description": "Creates a custom attribute class and places it in the project resources." | ||
} | ||
} |
38 changes: 38 additions & 0 deletions
38
test/js-framework-benchmark/frameworks/keyed/aurelia/aurelia_project/generators/attribute.ts
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,38 @@ | ||
import {inject} from 'aurelia-dependency-injection'; | ||
import {Project, ProjectItem, CLIOptions, UI} from 'aurelia-cli'; | ||
|
||
@inject(Project, CLIOptions, UI) | ||
export default class AttributeGenerator { | ||
constructor(private project: Project, private options: CLIOptions, private ui: UI) { } | ||
|
||
async execute() { | ||
const name = await this.ui.ensureAnswer( | ||
this.options.args[0], | ||
'What would you like to call the custom attribute?' | ||
); | ||
|
||
let fileName = this.project.makeFileName(name); | ||
let className = this.project.makeClassName(name); | ||
|
||
this.project.attributes.add( | ||
ProjectItem.text(`${fileName}.ts`, this.generateSource(className)) | ||
); | ||
|
||
await this.project.commitChanges(); | ||
await this.ui.log(`Created ${fileName}.`); | ||
} | ||
|
||
generateSource(className) { | ||
return `import {autoinject} from 'aurelia-framework'; | ||
@autoinject() | ||
export class ${className}CustomAttribute { | ||
constructor(private element: Element) { } | ||
valueChanged(newValue, oldValue) { | ||
// | ||
} | ||
} | ||
`; | ||
} | ||
} |
Oops, something went wrong.