Changeset 220373 in webkit
- Timestamp:
- Aug 7, 2017 5:47:14 PM (7 years ago)
- Location:
- trunk/PerformanceTests
- Files:
-
- 10 added
- 2 deleted
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/PerformanceTests/ChangeLog
r220361 r220373 1 2017-08-07 Mathias Bynens <mathias@qiwi.be> 2 3 Speedometer: Update to modern production Ember version 4 https://bugs.webkit.org/show_bug.cgi?id=175278 5 6 Reviewed by Ryosuke Niwa. 7 8 * Speedometer/resources/todomvc/architecture-examples/emberjs/README.md: Added. 9 * Speedometer/resources/todomvc/architecture-examples/emberjs/index.html: Made title consistent. 10 * Speedometer/resources/todomvc/architecture-examples/emberjs/source/README.md: Documented build process. 11 * Speedometer/resources/todomvc/architecture-examples/emberjs/source/app/components/.gitkeep: Added. 12 * Speedometer/resources/todomvc/architecture-examples/emberjs/source/app/index.html: Made title consistent. 13 * Speedometer/resources/todomvc/architecture-examples/emberjs/source/app/instance-initializers/global.js: Removed. 14 * Speedometer/resources/todomvc/architecture-examples/emberjs/source/app/models/.gitkeep: Added. 15 * Speedometer/resources/todomvc/architecture-examples/emberjs/source/app/router.js: Update to latest version. 16 * Speedometer/resources/todomvc/architecture-examples/emberjs/source/app/routes/.gitkeep: Added. 17 * Speedometer/resources/todomvc/architecture-examples/emberjs/source/app/services/repo.js: Update to latest version 18 * Speedometer/resources/todomvc/architecture-examples/emberjs/source/app/styles/app.css: Added. 19 * Speedometer/resources/todomvc/architecture-examples/emberjs/source/app/templates/components/.gitkeep: Added. 20 * Speedometer/resources/todomvc/architecture-examples/emberjs/source/bower.json: Update to latest version. 21 * Speedometer/resources/todomvc/architecture-examples/emberjs/source/config/environment.js: Update to latest version. 22 * Speedometer/resources/todomvc/architecture-examples/emberjs/source/dist/*: Added generated files per build instructions. 23 * Speedometer/resources/todomvc/architecture-examples/emberjs/source/package-lock.json: Pinned dependencies. 24 * Speedometer/resources/todomvc/architecture-examples/emberjs/source/package.json: Update to latest version. 25 * Speedometer/resources/todomvc/architecture-examples/emberjs/source/tests/.jshintrc: Removed. 26 * Speedometer/resources/todomvc/architecture-examples/emberjs/source/tests/helpers/module-for-acceptance.js: Updated to latest version. 27 * Speedometer/resources/todomvc/architecture-examples/emberjs/source/tests/helpers/start-app.js: Updated to latest version. 28 * Speedometer/resources/todomvc/architecture-examples/emberjs/source/tests/index.html: Updated to latest version. 29 * Speedometer/resources/todomvc/architecture-examples/emberjs/source/tests/integration/.gitkeep: Added. 30 * Speedometer/resources/todomvc/architecture-examples/emberjs/source/tests/unit/.gitkeep: Added. 31 * Speedometer/resources/todomvc/architecture-examples/emberjs/source/vendor/.gitkeep: Added. 32 1 33 2017-08-07 Michael Saboff <msaboff@apple.com> 2 34 -
trunk/PerformanceTests/Speedometer/resources/todomvc/architecture-examples/emberjs/index.html
r216946 r220373 4 4 <meta charset="utf-8"> 5 5 <meta http-equiv="X-UA-Compatible" content="IE=edge"> 6 <title> Todomvc</title>6 <title>Ember.js TodoMVC example</title> 7 7 <meta name="description" content=""> 8 8 <meta name="viewport" content="width=device-width, initial-scale=1"> 9 10 <meta name="todomvc/config/environment" content="%7B%22modulePrefix%22%3A%22todomvc%22%2C%22environment%22%3A%22development%22%2C%22locationType%22%3A%22none%22%2C%22EmberENV%22%3A%7B%22FEATURES%22%3A%7B%7D%7D%2C%22APP%22%3A%7B%22name%22%3A%22todomvc%22%2C%22version%22%3A%220.0.0%202c3f8158%22%7D%2C%22exportApplicationGlobal%22%3Atrue%7D" /> 11 9 <meta name="todomvc/config/environment" content="%7B%22modulePrefix%22%3A%22todomvc%22%2C%22environment%22%3A%22development%22%2C%22baseURL%22%3Anull%2C%22locationType%22%3A%22hash%22%2C%22EmberENV%22%3A%7B%22FEATURES%22%3A%7B%7D%2C%22EXTEND_PROTOTYPES%22%3A%7B%22Date%22%3Afalse%7D%7D%2C%22APP%22%3A%7B%22name%22%3A%22todomvc%22%2C%22version%22%3A%220.0.0+32a851f1%22%7D%2C%22exportApplicationGlobal%22%3Atrue%7D" /> 12 10 <link rel="stylesheet" href="assets/vendor.css"> 13 14 11 <link rel="stylesheet" href="assets/todomvc.css"> 15 12 </head> 16 13 <body> 17 18 19 14 <script src="assets/vendor.js"></script> 20 15 <script src="assets/todomvc.js"></script> 21 22 23 16 </body> 24 17 </html> -
trunk/PerformanceTests/Speedometer/resources/todomvc/architecture-examples/emberjs/source/README.md
r216735 r220373 1 # Ember.js TodoMVC Example using Ember CLI1 # Speedometer 2.0: Ember.js TodoMVC example 2 2 3 > A framework for creating ambitious web applications. 3 ## Test locally 4 4 5 > _[Ember.js - emberjs.com](http://emberjs.com)_ 6 > _[Ember CLI - ember-cli.com](http://ember-cli.com)_ 7 8 ## Note for people updating this app. 9 10 The `index.html` and the `assets` folder in the parent folder as simlinks into the items with the 11 same names inside `dist`. The `dist` folder has to be checked in git and built for production. 12 13 To work on this comment `<base href="/examples/ember-cli/index.html" />` in the `app/index.html` 14 and uncommented it back before doing the production build. 15 5 1. `npm install && bower install` 6 2. `npm run build` 7 3. Run a local server from the `dist` directory. (You could use [`npm i -g http-server`](https://github.com/indexzero/http-server).) 8 4. Open the URL pointing to the local server in your web browser of choice. -
trunk/PerformanceTests/Speedometer/resources/todomvc/architecture-examples/emberjs/source/app/index.html
r216946 r220373 4 4 <meta charset="utf-8"> 5 5 <meta http-equiv="X-UA-Compatible" content="IE=edge"> 6 <title> Todomvc</title>6 <title>Ember.js TodoMVC example</title> 7 7 <meta name="description" content=""> 8 8 <meta name="viewport" content="width=device-width, initial-scale=1"> 9 9 {{content-for "head"}} 10 11 <link rel="stylesheet" href="assets/vendor.css"> 12 <link rel="stylesheet" href="assets/todomvc.css"> 13 10 <link rel="stylesheet" href="{{rootURL}}assets/vendor.css"> 11 <link rel="stylesheet" href="{{rootURL}}assets/todomvc.css"> 14 12 {{content-for "head-footer"}} 15 13 </head> 16 14 <body> 17 15 {{content-for "body"}} 18 19 <script src="assets/vendor.js"></script> 20 <script src="assets/todomvc.js"></script> 21 16 <script src="{{rootURL}}assets/vendor.js"></script> 17 <script src="{{rootURL}}assets/todomvc.js"></script> 22 18 {{content-for "body-footer"}} 23 19 </body> -
trunk/PerformanceTests/Speedometer/resources/todomvc/architecture-examples/emberjs/source/app/router.js
r216735 r220373 3 3 4 4 const Router = Ember.Router.extend({ 5 location: config.locationType 5 location: config.locationType, 6 rootURL: config.rootURL 6 7 }); 7 8 -
trunk/PerformanceTests/Speedometer/resources/todomvc/architecture-examples/emberjs/source/bower.json
r216735 r220373 2 2 "name": "todomvc", 3 3 "dependencies": { 4 "ember": "~2.6.0", 5 "ember-cli-shims": "0.1.1", 6 "ember-cli-test-loader": "0.2.2", 7 "ember-qunit-notifications": "0.1.0" 4 "ember": "2.14.1", 5 "ember-cli-shims": "0.1.3" 8 6 } 9 7 } -
trunk/PerformanceTests/Speedometer/resources/todomvc/architecture-examples/emberjs/source/config/environment.js
r216735 r220373 6 6 environment: environment, 7 7 baseURL: null, 8 locationType: ' auto',8 locationType: 'hash', 9 9 EmberENV: { 10 10 FEATURES: { 11 11 // Here you can enable experimental features on an ember canary build 12 12 // e.g. 'with-controller': true 13 }, 14 EXTEND_PROTOTYPES: { 15 // Prevent Ember Data from overriding Date.parse. 16 Date: false 13 17 } 14 18 }, … … 21 25 22 26 // if (environment === 'development') { 23 // ENV.APP.LOG_RESOLVER = true;24 // ENV.APP.LOG_ACTIVE_GENERATION = true;25 // ENV.APP.LOG_TRANSITIONS = true;26 // ENV.APP.LOG_TRANSITIONS_INTERNAL = true;27 // ENV.APP.LOG_VIEW_LOOKUPS = true;27 // ENV.APP.LOG_RESOLVER = true; 28 // ENV.APP.LOG_ACTIVE_GENERATION = true; 29 // ENV.APP.LOG_TRANSITIONS = true; 30 // ENV.APP.LOG_TRANSITIONS_INTERNAL = true; 31 // ENV.APP.LOG_VIEW_LOOKUPS = true; 28 32 // } 29 33 30 34 if (environment === 'test') { 31 35 // Testem prefers this... 32 ENV. baseURL = '/';36 ENV.rootURL = '/'; 33 37 ENV.locationType = 'none'; 34 38 -
trunk/PerformanceTests/Speedometer/resources/todomvc/architecture-examples/emberjs/source/package.json
r216735 r220373 3 3 "version": "0.0.0", 4 4 "description": "Small description for todomvc goes here", 5 "private": true, 5 "license": "MIT", 6 "author": "Miguel Camba", 6 7 "directories": { 7 8 "doc": "doc", 8 9 "test": "tests" 9 10 }, 11 "repository": "", 10 12 "scripts": { 11 "build": "ember build ",13 "build": "ember build --environment=production", 12 14 "start": "ember server", 13 15 "test": "ember test" 14 16 }, 15 "repository": "",16 "engines": {17 "node": ">= 0.10.0"18 },19 "author": "",20 "license": "MIT",21 17 "devDependencies": { 22 "broccoli-asset-rev": "^2.4. 2",23 "ember-ajax": " 0.7.1",24 "ember-cli": " 2.5.0",25 "ember-cli-app-version": "^ 1.0.0",26 "ember-cli-babel": "^5.1. 6",27 "ember-cli-dependency-checker": "^1. 2.0",28 "ember-cli-htmlbars": "^1.0. 3",29 "ember-cli-htmlbars-inline-precompile": "^0.3. 1",30 "ember-cli-inject-live-reload": "^1.4. 0",31 "ember-cli-jshint": "^ 1.0.0",32 "ember-cli-qunit": "^ 1.4.0",33 "ember-cli-release": " 0.2.8",18 "broccoli-asset-rev": "^2.4.5", 19 "ember-ajax": "^2.4.1", 20 "ember-cli": "^2.14.2", 21 "ember-cli-app-version": "^2.0.0", 22 "ember-cli-babel": "^5.1.7", 23 "ember-cli-dependency-checker": "^1.3.0", 24 "ember-cli-htmlbars": "^1.0.10", 25 "ember-cli-htmlbars-inline-precompile": "^0.3.3", 26 "ember-cli-inject-live-reload": "^1.4.1", 27 "ember-cli-jshint": "^2.0.1", 28 "ember-cli-qunit": "^3.0.1", 29 "ember-cli-release": "^0.2.9", 34 30 "ember-cli-sri": "^2.1.0", 31 "ember-cli-test-loader": "^1.1.0", 35 32 "ember-cli-uglify": "^1.2.0", 36 33 "ember-export-application-global": "^1.0.5", 37 "ember-inflector": "1.9. 4",34 "ember-inflector": "1.9.6", 38 35 "ember-load-initializers": "^0.5.1", 39 36 "ember-resolver": "^2.0.3", 40 "loader.js": "^4.0.1" 41 } 37 "loader.js": "^4.0.10" 38 }, 39 "engines": { 40 "node": ">= 0.12.0" 41 }, 42 "private": true 42 43 } -
trunk/PerformanceTests/Speedometer/resources/todomvc/architecture-examples/emberjs/source/tests/helpers/module-for-acceptance.js
r216735 r220373 1 1 import { module } from 'qunit'; 2 import Ember from 'ember'; 2 3 import startApp from '../helpers/start-app'; 3 4 import destroyApp from '../helpers/destroy-app'; 5 6 const { RSVP: { Promise } } = Ember; 4 7 5 8 export default function (name, options = {}) { … … 14 17 15 18 afterEach() { 16 if (options.afterEach) { 17 options.afterEach.apply(this, arguments); 18 } 19 destroyApp(this.application); 19 let afterEach = options.afterEach && options.afterEach.apply(this, arguments); 20 return Promise.resolve(afterEach).then(() => destroyApp(this.application)); 20 21 } 21 22 }); -
trunk/PerformanceTests/Speedometer/resources/todomvc/architecture-examples/emberjs/source/tests/helpers/start-app.js
r216735 r220373 6 6 let application; 7 7 8 let attributes = Ember.merge({}, config.APP);9 attributes = Ember.merge(attributes, attrs); // use defaults, but you can override;8 // use defaults, but you can override 9 let attributes = Ember.assign({}, config.APP, attrs); 10 10 11 11 Ember.run(() => { -
trunk/PerformanceTests/Speedometer/resources/todomvc/architecture-examples/emberjs/source/tests/index.html
r216735 r220373 11 11 {{content-for "test-head"}} 12 12 13 <link rel="stylesheet" href=" assets/vendor.css">14 <link rel="stylesheet" href=" assets/todomvc.css">15 <link rel="stylesheet" href=" assets/test-support.css">13 <link rel="stylesheet" href="{{rootURL}}assets/vendor.css"> 14 <link rel="stylesheet" href="{{rootURL}}assets/todomvc.css"> 15 <link rel="stylesheet" href="{{rootURL}}assets/test-support.css"> 16 16 17 17 {{content-for "head-footer"}} … … 22 22 {{content-for "test-body"}} 23 23 24 <script src="testem.js" integrity=""></script> 25 <script src="assets/vendor.js"></script> 26 <script src="assets/test-support.js"></script> 27 <script src="assets/todomvc.js"></script> 28 <script src="assets/tests.js"></script> 29 <script src="assets/test-loader.js"></script> 24 <script src="/testem.js" integrity=""></script> 25 <script src="{{rootURL}}assets/vendor.js"></script> 26 <script src="{{rootURL}}assets/test-support.js"></script> 27 <script src="{{rootURL}}assets/todomvc.js"></script> 28 <script src="{{rootURL}}assets/tests.js"></script> 30 29 31 30 {{content-for "body-footer"}}
Note: See TracChangeset
for help on using the changeset viewer.