mirror of
https://github.com/LukeHagar/vercel.git
synced 2025-12-09 12:57:46 +00:00
[examples] Add CODEOWNERS (#3545)
* Add CODEOWNERS * Add EXAMPLE_README_TEMPLATE.md * Add ember
This commit is contained in:
4
.github/CODEOWNERS
vendored
4
.github/CODEOWNERS
vendored
@@ -16,3 +16,7 @@
|
|||||||
/packages/now-ruby @styfle @coetry @nathancahill
|
/packages/now-ruby @styfle @coetry @nathancahill
|
||||||
/packages/now-static-build @styfle @AndyBitz
|
/packages/now-static-build @styfle @AndyBitz
|
||||||
/packages/now-routing-utils @dav-is
|
/packages/now-routing-utils @dav-is
|
||||||
|
|
||||||
|
/examples @msweeneydev @timothyis
|
||||||
|
/examples/create-react-app @Timer
|
||||||
|
/examples/nextjs @timneutkens
|
||||||
|
|||||||
25
.github/EXAMPLE_README_TEMPLATE.md
vendored
Normal file
25
.github/EXAMPLE_README_TEMPLATE.md
vendored
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
# [Name] Example
|
||||||
|
|
||||||
|
This directory is a brief example of a [Name](site-link) site that can be deployed with ZEIT Now and zero configuration.
|
||||||
|
|
||||||
|
## Deploy Your Own
|
||||||
|
|
||||||
|
Deploy your own [Name] project with ZEIT Now.
|
||||||
|
|
||||||
|
[](https://zeit.co/new/project?template=https://github.com/zeit/now-examples/tree/master/example-directory)
|
||||||
|
|
||||||
|
### How We Created This Example
|
||||||
|
|
||||||
|
To get started with [Name] on Now, you can use the [CLI Tool Used](CLI-link) to initialize the project:
|
||||||
|
|
||||||
|
```shell
|
||||||
|
$ now init charge
|
||||||
|
```
|
||||||
|
|
||||||
|
### Deploying From Your Terminal
|
||||||
|
|
||||||
|
Once initialized, you can deploy the [Name] example with just a single command:
|
||||||
|
|
||||||
|
```shell
|
||||||
|
$ now
|
||||||
|
```
|
||||||
Submodule examples/ember deleted from bfeb5bb633
20
examples/ember/.editorconfig
Normal file
20
examples/ember/.editorconfig
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
# EditorConfig helps developers define and maintain consistent
|
||||||
|
# coding styles between different editors and IDEs
|
||||||
|
# editorconfig.org
|
||||||
|
|
||||||
|
root = true
|
||||||
|
|
||||||
|
|
||||||
|
[*]
|
||||||
|
end_of_line = lf
|
||||||
|
charset = utf-8
|
||||||
|
trim_trailing_whitespace = true
|
||||||
|
insert_final_newline = true
|
||||||
|
indent_style = space
|
||||||
|
indent_size = 2
|
||||||
|
|
||||||
|
[*.hbs]
|
||||||
|
insert_final_newline = false
|
||||||
|
|
||||||
|
[*.{diff,md}]
|
||||||
|
trim_trailing_whitespace = false
|
||||||
9
examples/ember/.ember-cli
Normal file
9
examples/ember/.ember-cli
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
{
|
||||||
|
/**
|
||||||
|
Ember CLI sends analytics information by default. The data is completely
|
||||||
|
anonymous, but there are times when you might want to disable this behavior.
|
||||||
|
|
||||||
|
Setting `disableAnalytics` to true will prevent any data from being sent.
|
||||||
|
*/
|
||||||
|
"disableAnalytics": false
|
||||||
|
}
|
||||||
20
examples/ember/.eslintignore
Normal file
20
examples/ember/.eslintignore
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
# unconventional js
|
||||||
|
/blueprints/*/files/
|
||||||
|
/vendor/
|
||||||
|
|
||||||
|
# compiled output
|
||||||
|
/dist/
|
||||||
|
/tmp/
|
||||||
|
|
||||||
|
# dependencies
|
||||||
|
/bower_components/
|
||||||
|
/node_modules/
|
||||||
|
|
||||||
|
# misc
|
||||||
|
/coverage/
|
||||||
|
!.*
|
||||||
|
|
||||||
|
# ember-try
|
||||||
|
/.node_modules.ember-try/
|
||||||
|
/bower.json.ember-try
|
||||||
|
/package.json.ember-try
|
||||||
47
examples/ember/.eslintrc.js
Normal file
47
examples/ember/.eslintrc.js
Normal file
@@ -0,0 +1,47 @@
|
|||||||
|
module.exports = {
|
||||||
|
root: true,
|
||||||
|
parserOptions: {
|
||||||
|
ecmaVersion: 2018,
|
||||||
|
sourceType: 'module',
|
||||||
|
},
|
||||||
|
plugins: ['ember'],
|
||||||
|
extends: ['eslint:recommended', 'plugin:ember/recommended'],
|
||||||
|
env: {
|
||||||
|
browser: true,
|
||||||
|
},
|
||||||
|
rules: {},
|
||||||
|
overrides: [
|
||||||
|
// node files
|
||||||
|
{
|
||||||
|
files: [
|
||||||
|
'.eslintrc.js',
|
||||||
|
'.template-lintrc.js',
|
||||||
|
'ember-cli-build.js',
|
||||||
|
'testem.js',
|
||||||
|
'blueprints/*/index.js',
|
||||||
|
'config/**/*.js',
|
||||||
|
'lib/*/index.js',
|
||||||
|
'server/**/*.js',
|
||||||
|
],
|
||||||
|
parserOptions: {
|
||||||
|
sourceType: 'script',
|
||||||
|
},
|
||||||
|
env: {
|
||||||
|
browser: false,
|
||||||
|
node: true,
|
||||||
|
},
|
||||||
|
plugins: ['node'],
|
||||||
|
rules: Object.assign(
|
||||||
|
{},
|
||||||
|
require('eslint-plugin-node').configs.recommended.rules,
|
||||||
|
{
|
||||||
|
// add your custom rules and overrides for node files here
|
||||||
|
|
||||||
|
// this can be removed once the following is fixed
|
||||||
|
// https://github.com/mysticatea/eslint-plugin-node/issues/77
|
||||||
|
'node/no-unpublished-require': 'off',
|
||||||
|
}
|
||||||
|
),
|
||||||
|
},
|
||||||
|
],
|
||||||
|
};
|
||||||
29
examples/ember/.gitignore
vendored
Normal file
29
examples/ember/.gitignore
vendored
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
# See https://help.github.com/ignore-files/ for more about ignoring files.
|
||||||
|
|
||||||
|
# compiled output
|
||||||
|
/dist/
|
||||||
|
/tmp/
|
||||||
|
|
||||||
|
# dependencies
|
||||||
|
/bower_components/
|
||||||
|
/node_modules/
|
||||||
|
|
||||||
|
# misc
|
||||||
|
/.env*
|
||||||
|
/.pnp*
|
||||||
|
/.sass-cache
|
||||||
|
/connect.lock
|
||||||
|
/coverage/
|
||||||
|
/libpeerconnection.log
|
||||||
|
/npm-debug.log*
|
||||||
|
/testem.log
|
||||||
|
/yarn-error.log
|
||||||
|
|
||||||
|
# ember-try
|
||||||
|
/.node_modules.ember-try/
|
||||||
|
/bower.json.ember-try
|
||||||
|
/package.json.ember-try
|
||||||
|
|
||||||
|
# Environment Variables
|
||||||
|
.env
|
||||||
|
.env.build
|
||||||
5
examples/ember/.template-lintrc.js
Normal file
5
examples/ember/.template-lintrc.js
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
'use strict';
|
||||||
|
|
||||||
|
module.exports = {
|
||||||
|
extends: 'recommended',
|
||||||
|
};
|
||||||
24
examples/ember/.travis.yml
Normal file
24
examples/ember/.travis.yml
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
---
|
||||||
|
language: node_js
|
||||||
|
node_js:
|
||||||
|
- "8"
|
||||||
|
|
||||||
|
sudo: false
|
||||||
|
dist: trusty
|
||||||
|
|
||||||
|
addons:
|
||||||
|
chrome: stable
|
||||||
|
|
||||||
|
cache:
|
||||||
|
directories:
|
||||||
|
- $HOME/.npm
|
||||||
|
|
||||||
|
env:
|
||||||
|
global:
|
||||||
|
# See https://git.io/vdao3 for details.
|
||||||
|
- JOBS=1
|
||||||
|
|
||||||
|
script:
|
||||||
|
- npm run lint:hbs
|
||||||
|
- npm run lint:js
|
||||||
|
- npm test
|
||||||
3
examples/ember/.watchmanconfig
Normal file
3
examples/ember/.watchmanconfig
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"ignore_dirs": ["tmp", "dist"]
|
||||||
|
}
|
||||||
29
examples/ember/README.md
Normal file
29
examples/ember/README.md
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|

|
||||||
|
|
||||||
|
# Ember Example
|
||||||
|
|
||||||
|
This directory is a brief example of an [Ember](https://emberjs.com/) app that can be deployed with ZEIT Now and zero configuration.
|
||||||
|
|
||||||
|
## Deploy Your Own
|
||||||
|
|
||||||
|
Deploy your own Ember project with ZEIT Now.
|
||||||
|
|
||||||
|
[](https://zeit.co/new/project?template=https://github.com/zeit/now/tree/master/examples/ember)
|
||||||
|
|
||||||
|
_Live Example: https://ember.now-examples.now.sh_
|
||||||
|
|
||||||
|
### How We Created This Example
|
||||||
|
|
||||||
|
To get started with Ember for deployment with ZEIT Now, you can use the [Ember CLI](https://ember-cli.com/) to initialize the project:
|
||||||
|
|
||||||
|
```shell
|
||||||
|
$ npx ember-cli new ember-project
|
||||||
|
```
|
||||||
|
|
||||||
|
### Deploying From Your Terminal
|
||||||
|
|
||||||
|
You can deploy your new Ember project with a single command from your terminal using [Now CLI](https://zeit.co/download):
|
||||||
|
|
||||||
|
```shell
|
||||||
|
$ now
|
||||||
|
```
|
||||||
14
examples/ember/app/app.js
Normal file
14
examples/ember/app/app.js
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
import Application from '@ember/application';
|
||||||
|
import Resolver from './resolver';
|
||||||
|
import loadInitializers from 'ember-load-initializers';
|
||||||
|
import config from './config/environment';
|
||||||
|
|
||||||
|
const App = Application.extend({
|
||||||
|
modulePrefix: config.modulePrefix,
|
||||||
|
podModulePrefix: config.podModulePrefix,
|
||||||
|
Resolver,
|
||||||
|
});
|
||||||
|
|
||||||
|
loadInitializers(App, config.modulePrefix);
|
||||||
|
|
||||||
|
export default App;
|
||||||
0
examples/ember/app/components/.gitkeep
Normal file
0
examples/ember/app/components/.gitkeep
Normal file
0
examples/ember/app/controllers/.gitkeep
Normal file
0
examples/ember/app/controllers/.gitkeep
Normal file
0
examples/ember/app/helpers/.gitkeep
Normal file
0
examples/ember/app/helpers/.gitkeep
Normal file
25
examples/ember/app/index.html
Normal file
25
examples/ember/app/index.html
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||||
|
<title>HelloWorld</title>
|
||||||
|
<meta name="description" content="">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
|
|
||||||
|
{{content-for "head"}}
|
||||||
|
|
||||||
|
<link integrity="" rel="stylesheet" href="{{rootURL}}assets/vendor.css">
|
||||||
|
<link integrity="" rel="stylesheet" href="{{rootURL}}assets/hello-world.css">
|
||||||
|
|
||||||
|
{{content-for "head-footer"}}
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
{{content-for "body"}}
|
||||||
|
|
||||||
|
<script src="{{rootURL}}assets/vendor.js"></script>
|
||||||
|
<script src="{{rootURL}}assets/hello-world.js"></script>
|
||||||
|
|
||||||
|
{{content-for "body-footer"}}
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
0
examples/ember/app/models/.gitkeep
Normal file
0
examples/ember/app/models/.gitkeep
Normal file
3
examples/ember/app/resolver.js
Normal file
3
examples/ember/app/resolver.js
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
import Resolver from 'ember-resolver';
|
||||||
|
|
||||||
|
export default Resolver;
|
||||||
11
examples/ember/app/router.js
Normal file
11
examples/ember/app/router.js
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
import EmberRouter from '@ember/routing/router';
|
||||||
|
import config from './config/environment';
|
||||||
|
|
||||||
|
const Router = EmberRouter.extend({
|
||||||
|
location: config.locationType,
|
||||||
|
rootURL: config.rootURL,
|
||||||
|
});
|
||||||
|
|
||||||
|
Router.map(function() {});
|
||||||
|
|
||||||
|
export default Router;
|
||||||
0
examples/ember/app/routes/.gitkeep
Normal file
0
examples/ember/app/routes/.gitkeep
Normal file
0
examples/ember/app/styles/app.css
Normal file
0
examples/ember/app/styles/app.css
Normal file
5
examples/ember/app/templates/application.hbs
Normal file
5
examples/ember/app/templates/application.hbs
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
{{!-- The following component displays Ember's default welcome message. --}}
|
||||||
|
<WelcomePage />
|
||||||
|
{{!-- Feel free to remove this! --}}
|
||||||
|
|
||||||
|
{{outlet}}
|
||||||
0
examples/ember/app/templates/components/.gitkeep
Normal file
0
examples/ember/app/templates/components/.gitkeep
Normal file
51
examples/ember/config/environment.js
Normal file
51
examples/ember/config/environment.js
Normal file
@@ -0,0 +1,51 @@
|
|||||||
|
'use strict';
|
||||||
|
|
||||||
|
module.exports = function(environment) {
|
||||||
|
let ENV = {
|
||||||
|
modulePrefix: 'hello-world',
|
||||||
|
environment,
|
||||||
|
rootURL: '/',
|
||||||
|
locationType: 'auto',
|
||||||
|
EmberENV: {
|
||||||
|
FEATURES: {
|
||||||
|
// Here you can enable experimental features on an ember canary build
|
||||||
|
// e.g. EMBER_NATIVE_DECORATOR_SUPPORT: true
|
||||||
|
},
|
||||||
|
EXTEND_PROTOTYPES: {
|
||||||
|
// Prevent Ember Data from overriding Date.parse.
|
||||||
|
Date: false,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
|
APP: {
|
||||||
|
// Here you can pass flags/options to your application instance
|
||||||
|
// when it is created
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
|
if (environment === 'development') {
|
||||||
|
// ENV.APP.LOG_RESOLVER = true;
|
||||||
|
// ENV.APP.LOG_ACTIVE_GENERATION = true;
|
||||||
|
// ENV.APP.LOG_TRANSITIONS = true;
|
||||||
|
// ENV.APP.LOG_TRANSITIONS_INTERNAL = true;
|
||||||
|
// ENV.APP.LOG_VIEW_LOOKUPS = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (environment === 'test') {
|
||||||
|
// Testem prefers this...
|
||||||
|
ENV.locationType = 'none';
|
||||||
|
|
||||||
|
// keep test console output quieter
|
||||||
|
ENV.APP.LOG_ACTIVE_GENERATION = false;
|
||||||
|
ENV.APP.LOG_VIEW_LOOKUPS = false;
|
||||||
|
|
||||||
|
ENV.APP.rootElement = '#ember-testing';
|
||||||
|
ENV.APP.autoboot = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (environment === 'production') {
|
||||||
|
// here you can enable a production-specific feature
|
||||||
|
}
|
||||||
|
|
||||||
|
return ENV;
|
||||||
|
};
|
||||||
3
examples/ember/config/optional-features.json
Normal file
3
examples/ember/config/optional-features.json
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"jquery-integration": true
|
||||||
|
}
|
||||||
18
examples/ember/config/targets.js
Normal file
18
examples/ember/config/targets.js
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
'use strict';
|
||||||
|
|
||||||
|
const browsers = [
|
||||||
|
'last 1 Chrome versions',
|
||||||
|
'last 1 Firefox versions',
|
||||||
|
'last 1 Safari versions',
|
||||||
|
];
|
||||||
|
|
||||||
|
const isCI = !!process.env.CI;
|
||||||
|
const isProduction = process.env.EMBER_ENV === 'production';
|
||||||
|
|
||||||
|
if (isCI || isProduction) {
|
||||||
|
browsers.push('ie 11');
|
||||||
|
}
|
||||||
|
|
||||||
|
module.exports = {
|
||||||
|
browsers,
|
||||||
|
};
|
||||||
24
examples/ember/ember-cli-build.js
Normal file
24
examples/ember/ember-cli-build.js
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
'use strict';
|
||||||
|
|
||||||
|
const EmberApp = require('ember-cli/lib/broccoli/ember-app');
|
||||||
|
|
||||||
|
module.exports = function(defaults) {
|
||||||
|
let app = new EmberApp(defaults, {
|
||||||
|
// Add options here
|
||||||
|
});
|
||||||
|
|
||||||
|
// Use `app.import` to add additional libraries to the generated
|
||||||
|
// output files.
|
||||||
|
//
|
||||||
|
// If you need to use different assets in different
|
||||||
|
// environments, specify an object as the first parameter. That
|
||||||
|
// object's keys should be the environment name and the values
|
||||||
|
// should be the asset to use in that environment.
|
||||||
|
//
|
||||||
|
// If the library that you are including contains AMD or ES6
|
||||||
|
// modules that you would like to import into your application
|
||||||
|
// please specify an object with the list of modules as keys
|
||||||
|
// along with the exports of each module as its value.
|
||||||
|
|
||||||
|
return app.toTree();
|
||||||
|
};
|
||||||
53
examples/ember/package.json
Normal file
53
examples/ember/package.json
Normal file
@@ -0,0 +1,53 @@
|
|||||||
|
{
|
||||||
|
"name": "hello-world",
|
||||||
|
"version": "0.0.0",
|
||||||
|
"private": true,
|
||||||
|
"description": "Small description for hello-world goes here",
|
||||||
|
"repository": "",
|
||||||
|
"license": "MIT",
|
||||||
|
"author": "",
|
||||||
|
"directories": {
|
||||||
|
"doc": "doc",
|
||||||
|
"test": "tests"
|
||||||
|
},
|
||||||
|
"scripts": {
|
||||||
|
"build": "ember build",
|
||||||
|
"lint:hbs": "ember-template-lint .",
|
||||||
|
"lint:js": "eslint .",
|
||||||
|
"dev": "ember serve --port $PORT",
|
||||||
|
"start": "ember serve",
|
||||||
|
"test": "ember test"
|
||||||
|
},
|
||||||
|
"devDependencies": {
|
||||||
|
"@ember/jquery": "^0.6.0",
|
||||||
|
"@ember/optional-features": "^0.7.0",
|
||||||
|
"broccoli-asset-rev": "^3.0.0",
|
||||||
|
"ember-ajax": "^5.0.0",
|
||||||
|
"ember-cli": "~3.11.0",
|
||||||
|
"ember-cli-app-version": "^3.2.0",
|
||||||
|
"ember-cli-babel": "^7.7.3",
|
||||||
|
"ember-cli-dependency-checker": "^3.1.0",
|
||||||
|
"ember-cli-eslint": "^5.1.0",
|
||||||
|
"ember-cli-htmlbars": "^3.0.1",
|
||||||
|
"ember-cli-htmlbars-inline-precompile": "^2.1.0",
|
||||||
|
"ember-cli-inject-live-reload": "^1.8.2",
|
||||||
|
"ember-cli-sri": "^2.1.1",
|
||||||
|
"ember-cli-template-lint": "^1.0.0-beta.1",
|
||||||
|
"ember-cli-uglify": "^2.1.0",
|
||||||
|
"ember-data": "~3.11.0",
|
||||||
|
"ember-export-application-global": "^2.0.0",
|
||||||
|
"ember-load-initializers": "^2.0.0",
|
||||||
|
"ember-maybe-import-regenerator": "^0.1.6",
|
||||||
|
"ember-qunit": "^4.4.1",
|
||||||
|
"ember-resolver": "^5.0.1",
|
||||||
|
"ember-source": "~3.11.1",
|
||||||
|
"ember-welcome-page": "^4.0.0",
|
||||||
|
"eslint-plugin-ember": "^6.2.0",
|
||||||
|
"eslint-plugin-node": "^9.0.1",
|
||||||
|
"loader.js": "^4.7.0",
|
||||||
|
"qunit-dom": "^0.8.4"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": "8.* || >= 10.*"
|
||||||
|
}
|
||||||
|
}
|
||||||
21
examples/ember/testem.js
Normal file
21
examples/ember/testem.js
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
module.exports = {
|
||||||
|
test_page: 'tests/index.html?hidepassed',
|
||||||
|
disable_watching: true,
|
||||||
|
launch_in_ci: ['Chrome'],
|
||||||
|
launch_in_dev: ['Chrome'],
|
||||||
|
browser_args: {
|
||||||
|
Chrome: {
|
||||||
|
ci: [
|
||||||
|
// --no-sandbox is needed when running Chrome inside a container
|
||||||
|
process.env.CI ? '--no-sandbox' : null,
|
||||||
|
'--headless',
|
||||||
|
'--disable-gpu',
|
||||||
|
'--disable-dev-shm-usage',
|
||||||
|
'--disable-software-rasterizer',
|
||||||
|
'--mute-audio',
|
||||||
|
'--remote-debugging-port=0',
|
||||||
|
'--window-size=1440,900',
|
||||||
|
].filter(Boolean),
|
||||||
|
},
|
||||||
|
},
|
||||||
|
};
|
||||||
0
examples/ember/tests/helpers/.gitkeep
Normal file
0
examples/ember/tests/helpers/.gitkeep
Normal file
33
examples/ember/tests/index.html
Normal file
33
examples/ember/tests/index.html
Normal file
@@ -0,0 +1,33 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||||
|
<title>HelloWorld Tests</title>
|
||||||
|
<meta name="description" content="">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
|
|
||||||
|
{{content-for "head"}}
|
||||||
|
{{content-for "test-head"}}
|
||||||
|
|
||||||
|
<link rel="stylesheet" href="{{rootURL}}assets/vendor.css">
|
||||||
|
<link rel="stylesheet" href="{{rootURL}}assets/hello-world.css">
|
||||||
|
<link rel="stylesheet" href="{{rootURL}}assets/test-support.css">
|
||||||
|
|
||||||
|
{{content-for "head-footer"}}
|
||||||
|
{{content-for "test-head-footer"}}
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
{{content-for "body"}}
|
||||||
|
{{content-for "test-body"}}
|
||||||
|
|
||||||
|
<script src="/testem.js" integrity=""></script>
|
||||||
|
<script src="{{rootURL}}assets/vendor.js"></script>
|
||||||
|
<script src="{{rootURL}}assets/test-support.js"></script>
|
||||||
|
<script src="{{rootURL}}assets/hello-world.js"></script>
|
||||||
|
<script src="{{rootURL}}assets/tests.js"></script>
|
||||||
|
|
||||||
|
{{content-for "body-footer"}}
|
||||||
|
{{content-for "test-body-footer"}}
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
0
examples/ember/tests/integration/.gitkeep
Normal file
0
examples/ember/tests/integration/.gitkeep
Normal file
8
examples/ember/tests/test-helper.js
Normal file
8
examples/ember/tests/test-helper.js
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
import Application from '../app';
|
||||||
|
import config from '../config/environment';
|
||||||
|
import { setApplication } from '@ember/test-helpers';
|
||||||
|
import { start } from 'ember-qunit';
|
||||||
|
|
||||||
|
setApplication(Application.create(config.APP));
|
||||||
|
|
||||||
|
start();
|
||||||
0
examples/ember/tests/unit/.gitkeep
Normal file
0
examples/ember/tests/unit/.gitkeep
Normal file
0
examples/ember/vendor/.gitkeep
vendored
Normal file
0
examples/ember/vendor/.gitkeep
vendored
Normal file
Reference in New Issue
Block a user