Changeset 220373 in webkit


Ignore:
Timestamp:
Aug 7, 2017 5:47:14 PM (7 years ago)
Author:
commit-queue@webkit.org
Message:

Speedometer: Update to modern production Ember version
https://bugs.webkit.org/show_bug.cgi?id=175278

Patch by Mathias Bynens <mathias@qiwi.be> on 2017-08-07
Reviewed by Ryosuke Niwa.

  • Speedometer/resources/todomvc/architecture-examples/emberjs/README.md: Added.
  • Speedometer/resources/todomvc/architecture-examples/emberjs/index.html: Made title consistent.
  • Speedometer/resources/todomvc/architecture-examples/emberjs/source/README.md: Documented build process.
  • Speedometer/resources/todomvc/architecture-examples/emberjs/source/app/components/.gitkeep: Added.
  • Speedometer/resources/todomvc/architecture-examples/emberjs/source/app/index.html: Made title consistent.
  • Speedometer/resources/todomvc/architecture-examples/emberjs/source/app/instance-initializers/global.js: Removed.
  • Speedometer/resources/todomvc/architecture-examples/emberjs/source/app/models/.gitkeep: Added.
  • Speedometer/resources/todomvc/architecture-examples/emberjs/source/app/router.js: Update to latest version.
  • Speedometer/resources/todomvc/architecture-examples/emberjs/source/app/routes/.gitkeep: Added.
  • Speedometer/resources/todomvc/architecture-examples/emberjs/source/app/services/repo.js: Update to latest version
  • Speedometer/resources/todomvc/architecture-examples/emberjs/source/app/styles/app.css: Added.
  • Speedometer/resources/todomvc/architecture-examples/emberjs/source/app/templates/components/.gitkeep: Added.
  • Speedometer/resources/todomvc/architecture-examples/emberjs/source/bower.json: Update to latest version.
  • Speedometer/resources/todomvc/architecture-examples/emberjs/source/config/environment.js: Update to latest version.
  • Speedometer/resources/todomvc/architecture-examples/emberjs/source/dist/*: Added generated files per build instructions.
  • Speedometer/resources/todomvc/architecture-examples/emberjs/source/package-lock.json: Pinned dependencies.
  • Speedometer/resources/todomvc/architecture-examples/emberjs/source/package.json: Update to latest version.
  • Speedometer/resources/todomvc/architecture-examples/emberjs/source/tests/.jshintrc: Removed.
  • Speedometer/resources/todomvc/architecture-examples/emberjs/source/tests/helpers/module-for-acceptance.js: Updated to latest version.
  • Speedometer/resources/todomvc/architecture-examples/emberjs/source/tests/helpers/start-app.js: Updated to latest version.
  • Speedometer/resources/todomvc/architecture-examples/emberjs/source/tests/index.html: Updated to latest version.
  • Speedometer/resources/todomvc/architecture-examples/emberjs/source/tests/integration/.gitkeep: Added.
  • Speedometer/resources/todomvc/architecture-examples/emberjs/source/tests/unit/.gitkeep: Added.
  • Speedometer/resources/todomvc/architecture-examples/emberjs/source/vendor/.gitkeep: Added.
Location:
trunk/PerformanceTests
Files:
10 added
2 deleted
11 edited

Legend:

Unmodified
Added
Removed
  • trunk/PerformanceTests/ChangeLog

    r220361 r220373  
     12017-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
    1332017-08-07  Michael Saboff  <msaboff@apple.com>
    234
  • trunk/PerformanceTests/Speedometer/resources/todomvc/architecture-examples/emberjs/index.html

    r216946 r220373  
    44    <meta charset="utf-8">
    55    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    6     <title>Todomvc</title>
     6    <title>Ember.js TodoMVC example</title>
    77    <meta name="description" content="">
    88    <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" />
    1210    <link rel="stylesheet" href="assets/vendor.css">
    13 
    14    
     11    <link rel="stylesheet" href="assets/todomvc.css">
    1512  </head>
    1613  <body>
    17    
    18 
    1914    <script src="assets/vendor.js"></script>
    2015    <script src="assets/todomvc.js"></script>
    21 
    22    
    2316  </body>
    2417</html>
  • trunk/PerformanceTests/Speedometer/resources/todomvc/architecture-examples/emberjs/source/README.md

    r216735 r220373  
    1 # Ember.js TodoMVC Example using Ember CLI
     1# Speedometer 2.0: Ember.js TodoMVC example
    22
    3 > A framework for creating ambitious web applications.
     3## Test locally
    44
    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 
     51. `npm install && bower install`
     62. `npm run build`
     73. Run a local server from the `dist` directory. (You could use [`npm i -g http-server`](https://github.com/indexzero/http-server).)
     84. 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  
    44    <meta charset="utf-8">
    55    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    6     <title>Todomvc</title>
     6    <title>Ember.js TodoMVC example</title>
    77    <meta name="description" content="">
    88    <meta name="viewport" content="width=device-width, initial-scale=1">
    99    {{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">
    1412    {{content-for "head-footer"}}
    1513  </head>
    1614  <body>
    1715    {{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>
    2218    {{content-for "body-footer"}}
    2319  </body>
  • trunk/PerformanceTests/Speedometer/resources/todomvc/architecture-examples/emberjs/source/app/router.js

    r216735 r220373  
    33
    44const Router = Ember.Router.extend({
    5     location: config.locationType
     5    location: config.locationType,
     6    rootURL: config.rootURL
    67});
    78
  • trunk/PerformanceTests/Speedometer/resources/todomvc/architecture-examples/emberjs/source/bower.json

    r216735 r220373  
    22  "name": "todomvc",
    33  "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"
    86  }
    97}
  • trunk/PerformanceTests/Speedometer/resources/todomvc/architecture-examples/emberjs/source/config/environment.js

    r216735 r220373  
    66        environment: environment,
    77        baseURL: null,
    8         locationType: 'auto',
     8        locationType: 'hash',
    99        EmberENV: {
    1010            FEATURES: {
    1111                // Here you can enable experimental features on an ember canary build
    1212                // e.g. 'with-controller': true
     13            },
     14            EXTEND_PROTOTYPES: {
     15                // Prevent Ember Data from overriding Date.parse.
     16                Date: false
    1317            }
    1418        },
     
    2125
    2226    // 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;
    2832    // }
    2933
    3034    if (environment === 'test') {
    3135        // Testem prefers this...
    32         ENV.baseURL = '/';
     36        ENV.rootURL = '/';
    3337        ENV.locationType = 'none';
    3438
  • trunk/PerformanceTests/Speedometer/resources/todomvc/architecture-examples/emberjs/source/package.json

    r216735 r220373  
    33  "version": "0.0.0",
    44  "description": "Small description for todomvc goes here",
    5   "private": true,
     5  "license": "MIT",
     6  "author": "Miguel Camba",
    67  "directories": {
    78    "doc": "doc",
    89    "test": "tests"
    910  },
     11  "repository": "",
    1012  "scripts": {
    11     "build": "ember build",
     13    "build": "ember build --environment=production",
    1214    "start": "ember server",
    1315    "test": "ember test"
    1416  },
    15   "repository": "",
    16   "engines": {
    17     "node": ">= 0.10.0"
    18   },
    19   "author": "",
    20   "license": "MIT",
    2117  "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",
    3430    "ember-cli-sri": "^2.1.0",
     31    "ember-cli-test-loader": "^1.1.0",
    3532    "ember-cli-uglify": "^1.2.0",
    3633    "ember-export-application-global": "^1.0.5",
    37     "ember-inflector": "1.9.4",
     34    "ember-inflector": "1.9.6",
    3835    "ember-load-initializers": "^0.5.1",
    3936    "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
    4243}
  • trunk/PerformanceTests/Speedometer/resources/todomvc/architecture-examples/emberjs/source/tests/helpers/module-for-acceptance.js

    r216735 r220373  
    11import { module } from 'qunit';
     2import Ember from 'ember';
    23import startApp from '../helpers/start-app';
    34import destroyApp from '../helpers/destroy-app';
     5
     6const { RSVP: { Promise } } = Ember;
    47
    58export default function (name, options = {}) {
     
    1417
    1518        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));
    2021        }
    2122    });
  • trunk/PerformanceTests/Speedometer/resources/todomvc/architecture-examples/emberjs/source/tests/helpers/start-app.js

    r216735 r220373  
    66    let application;
    77
    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);
    1010
    1111    Ember.run(() => {
  • trunk/PerformanceTests/Speedometer/resources/todomvc/architecture-examples/emberjs/source/tests/index.html

    r216735 r220373  
    1111    {{content-for "test-head"}}
    1212
    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">
    1616
    1717    {{content-for "head-footer"}}
     
    2222    {{content-for "test-body"}}
    2323
    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>
    3029
    3130    {{content-for "body-footer"}}
Note: See TracChangeset for help on using the changeset viewer.