Initial Commit from Ember CLI v6.1.0
_...,
,:^;,...;
-+===;. ,,--++====++-,,, .: /.....,
:::::~+++++#:,+#++++++++++++++++++#*..: /,......
(,,,,,,::=+++##++++++++++++++++++++++#. :....../
...,,,,,::++++++++++++++++++++++++++++++*..,...:
*..+...,#@@@@@@@@@++++++++++++++++++++++#*....*
@#,;##############@@@+*+#@@@@@@@@@@#*++#..<
*@##@@+,-*^^^*-+@####@@@######@@@#####@@,,,+
@#@* @#@@@@#@@+--*^^*--#@@@@@@#
@#@. @# @##+++@#, .@@#@@
#@# @@ +@@++++#@@ @@ :@@
:@#* @#@++++++@#* #@ @@+
:*+@@#;,.__.+@#@+,-^^.++@# @@++
;* :*@@@##@@@@;++r._j^.+@##@+,.__,,@@++.
/* ........+++++++++++++#@@@@@###@@#++++,
,: ...,@@@#++===----==@@@####,,....+++++
.: ......@@##@\ ; :@####@,,...... +++.
; .........@###, ; ;xx#@;,,..... *;+,
| ........,*;xxxx--^--=xxx,........ :+#;
; ......,,;xxxxxxxxxxxxx;,..... *+#
; ......,::xxxx;. ...... +. .
*; ......... +### .... / ,. /:| ,.
.+: ... ;##++##, . ,#. (..v..;*./
** ## ###* .:*&&&+. \.,....<,
#&+**==-..,,__ ;## ### :,*+&&&&&&&v+#&,,.._/
#&&&&*...,::,,. ##; ,##* .*****;:&&&&&&&&&
,+*+;~*..*** *.* ### ###* ******* *+#&;*
##,;## **** :, **
##### ## ### ###, ######## .##### ;## ##
####### ;## #### ,###. ########## ######## ### ####
### ### ### ########## #### #### ,## ### #######*
### ,### ##############: ## ### #### ,## :#### ### ##;
########## ########### ## .## ,### ####### ##### :######
###### .###### #### ## ### ### ######* :##### ####
############# #### ################ ######## ###
#####* *#* #: :### *###* *#### #*
This commit is contained in:
19
.editorconfig
Normal file
19
.editorconfig
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
# 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
|
||||||
7
.ember-cli
Normal file
7
.ember-cli
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
/**
|
||||||
|
Setting `isTypeScriptProject` to true will force the blueprint generators to generate TypeScript
|
||||||
|
rather than JavaScript by default, when a TypeScript version of a given blueprint is available.
|
||||||
|
*/
|
||||||
|
"isTypeScriptProject": false
|
||||||
|
}
|
||||||
47
.github/workflows/ci.yml
vendored
Normal file
47
.github/workflows/ci.yml
vendored
Normal file
@@ -0,0 +1,47 @@
|
|||||||
|
name: CI
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
- master
|
||||||
|
pull_request: {}
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: ci-${{ github.head_ref || github.ref }}
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
lint:
|
||||||
|
name: "Lint"
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
timeout-minutes: 10
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- name: Install Node
|
||||||
|
uses: actions/setup-node@v3
|
||||||
|
with:
|
||||||
|
node-version: 18
|
||||||
|
cache: npm
|
||||||
|
- name: Install Dependencies
|
||||||
|
run: npm ci
|
||||||
|
- name: Lint
|
||||||
|
run: npm run lint
|
||||||
|
|
||||||
|
test:
|
||||||
|
name: "Test"
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
timeout-minutes: 10
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- name: Install Node
|
||||||
|
uses: actions/setup-node@v3
|
||||||
|
with:
|
||||||
|
node-version: 18
|
||||||
|
cache: npm
|
||||||
|
- name: Install Dependencies
|
||||||
|
run: npm ci
|
||||||
|
- name: Run Tests
|
||||||
|
run: npm test
|
||||||
25
.gitignore
vendored
Normal file
25
.gitignore
vendored
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
# compiled output
|
||||||
|
/dist/
|
||||||
|
/declarations/
|
||||||
|
|
||||||
|
# dependencies
|
||||||
|
/node_modules/
|
||||||
|
|
||||||
|
# misc
|
||||||
|
/.env*
|
||||||
|
/.pnp*
|
||||||
|
/.eslintcache
|
||||||
|
/coverage/
|
||||||
|
/npm-debug.log*
|
||||||
|
/testem.log
|
||||||
|
/yarn-error.log
|
||||||
|
|
||||||
|
# ember-try
|
||||||
|
/.node_modules.ember-try/
|
||||||
|
/npm-shrinkwrap.json.ember-try
|
||||||
|
/package.json.ember-try
|
||||||
|
/package-lock.json.ember-try
|
||||||
|
/yarn.lock.ember-try
|
||||||
|
|
||||||
|
# broccoli-debug
|
||||||
|
/DEBUG/
|
||||||
13
.prettierignore
Normal file
13
.prettierignore
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
# unconventional js
|
||||||
|
/blueprints/*/files/
|
||||||
|
|
||||||
|
# compiled output
|
||||||
|
/dist/
|
||||||
|
|
||||||
|
# misc
|
||||||
|
/coverage/
|
||||||
|
!.*
|
||||||
|
.*/
|
||||||
|
|
||||||
|
# ember-try
|
||||||
|
/.node_modules.ember-try/
|
||||||
20
.prettierrc.js
Normal file
20
.prettierrc.js
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
'use strict';
|
||||||
|
|
||||||
|
module.exports = {
|
||||||
|
plugins: ['prettier-plugin-ember-template-tag'],
|
||||||
|
overrides: [
|
||||||
|
{
|
||||||
|
files: '*.{js,gjs,ts,gts,mjs,mts,cjs,cts}',
|
||||||
|
options: {
|
||||||
|
singleQuote: true,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
files: '*.{gjs,gts}',
|
||||||
|
options: {
|
||||||
|
singleQuote: true,
|
||||||
|
templateSingleQuote: false,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
],
|
||||||
|
};
|
||||||
8
.stylelintignore
Normal file
8
.stylelintignore
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
# unconventional files
|
||||||
|
/blueprints/*/files/
|
||||||
|
|
||||||
|
# compiled output
|
||||||
|
/dist/
|
||||||
|
|
||||||
|
# addons
|
||||||
|
/.node_modules.ember-try/
|
||||||
5
.stylelintrc.js
Normal file
5
.stylelintrc.js
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
'use strict';
|
||||||
|
|
||||||
|
module.exports = {
|
||||||
|
extends: ['stylelint-config-standard', 'stylelint-prettier/recommended'],
|
||||||
|
};
|
||||||
5
.template-lintrc.js
Normal file
5
.template-lintrc.js
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
'use strict';
|
||||||
|
|
||||||
|
module.exports = {
|
||||||
|
extends: 'recommended',
|
||||||
|
};
|
||||||
3
.watchmanconfig
Normal file
3
.watchmanconfig
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"ignore_dirs": ["dist"]
|
||||||
|
}
|
||||||
56
README.md
Normal file
56
README.md
Normal file
@@ -0,0 +1,56 @@
|
|||||||
|
# holygamesapp
|
||||||
|
|
||||||
|
This README outlines the details of collaborating on this Ember application.
|
||||||
|
A short introduction of this app could easily go here.
|
||||||
|
|
||||||
|
## Prerequisites
|
||||||
|
|
||||||
|
You will need the following things properly installed on your computer.
|
||||||
|
|
||||||
|
- [Git](https://git-scm.com/)
|
||||||
|
- [Node.js](https://nodejs.org/) (with npm)
|
||||||
|
- [Ember CLI](https://cli.emberjs.com/release/)
|
||||||
|
- [Google Chrome](https://google.com/chrome/)
|
||||||
|
|
||||||
|
## Installation
|
||||||
|
|
||||||
|
- `git clone <repository-url>` this repository
|
||||||
|
- `cd holygamesapp`
|
||||||
|
- `npm install`
|
||||||
|
|
||||||
|
## Running / Development
|
||||||
|
|
||||||
|
- `npm run start`
|
||||||
|
- Visit your app at [http://localhost:4200](http://localhost:4200).
|
||||||
|
- Visit your tests at [http://localhost:4200/tests](http://localhost:4200/tests).
|
||||||
|
|
||||||
|
### Code Generators
|
||||||
|
|
||||||
|
Make use of the many generators for code, try `ember help generate` for more details
|
||||||
|
|
||||||
|
### Running Tests
|
||||||
|
|
||||||
|
- `npm run test`
|
||||||
|
- `npm run test:ember -- --server`
|
||||||
|
|
||||||
|
### Linting
|
||||||
|
|
||||||
|
- `npm run lint`
|
||||||
|
- `npm run lint:fix`
|
||||||
|
|
||||||
|
### Building
|
||||||
|
|
||||||
|
- `npm exec ember build` (development)
|
||||||
|
- `npm run build` (production)
|
||||||
|
|
||||||
|
### Deploying
|
||||||
|
|
||||||
|
Specify what it takes to deploy your app.
|
||||||
|
|
||||||
|
## Further Reading / Useful Links
|
||||||
|
|
||||||
|
- [ember.js](https://emberjs.com/)
|
||||||
|
- [ember-cli](https://cli.emberjs.com/release/)
|
||||||
|
- Development Browser Extensions
|
||||||
|
- [ember inspector for chrome](https://chrome.google.com/webstore/detail/ember-inspector/bmdblncegkenkacieihfhpjfppoconhi)
|
||||||
|
- [ember inspector for firefox](https://addons.mozilla.org/en-US/firefox/addon/ember-inspector/)
|
||||||
12
app/app.js
Normal file
12
app/app.js
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
import Application from '@ember/application';
|
||||||
|
import Resolver from 'ember-resolver';
|
||||||
|
import loadInitializers from 'ember-load-initializers';
|
||||||
|
import config from 'holygamesapp/config/environment';
|
||||||
|
|
||||||
|
export default class App extends Application {
|
||||||
|
modulePrefix = config.modulePrefix;
|
||||||
|
podModulePrefix = config.podModulePrefix;
|
||||||
|
Resolver = Resolver;
|
||||||
|
}
|
||||||
|
|
||||||
|
loadInitializers(App, config.modulePrefix);
|
||||||
0
app/components/.gitkeep
Normal file
0
app/components/.gitkeep
Normal file
0
app/controllers/.gitkeep
Normal file
0
app/controllers/.gitkeep
Normal file
0
app/helpers/.gitkeep
Normal file
0
app/helpers/.gitkeep
Normal file
24
app/index.html
Normal file
24
app/index.html
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="fr">
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<title>Holygamesapp</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/holygamesapp.css">
|
||||||
|
|
||||||
|
{{content-for "head-footer"}}
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
{{content-for "body"}}
|
||||||
|
|
||||||
|
<script src="{{rootURL}}assets/vendor.js"></script>
|
||||||
|
<script src="{{rootURL}}assets/holygamesapp.js"></script>
|
||||||
|
|
||||||
|
{{content-for "body-footer"}}
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
0
app/models/.gitkeep
Normal file
0
app/models/.gitkeep
Normal file
9
app/router.js
Normal file
9
app/router.js
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
import EmberRouter from '@ember/routing/router';
|
||||||
|
import config from 'holygamesapp/config/environment';
|
||||||
|
|
||||||
|
export default class Router extends EmberRouter {
|
||||||
|
location = config.locationType;
|
||||||
|
rootURL = config.rootURL;
|
||||||
|
}
|
||||||
|
|
||||||
|
Router.map(function () {});
|
||||||
0
app/routes/.gitkeep
Normal file
0
app/routes/.gitkeep
Normal file
1
app/styles/app.css
Normal file
1
app/styles/app.css
Normal file
@@ -0,0 +1 @@
|
|||||||
|
/* Ember supports plain CSS out of the box. More info: https://cli.emberjs.com/release/advanced-use/stylesheets/ */
|
||||||
7
app/templates/application.hbs
Normal file
7
app/templates/application.hbs
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
{{page-title "Holygamesapp"}}
|
||||||
|
|
||||||
|
{{outlet}}
|
||||||
|
|
||||||
|
{{! The following component displays Ember's default welcome message. }}
|
||||||
|
<WelcomePage />
|
||||||
|
{{! Feel free to remove this! }}
|
||||||
20
config/ember-cli-update.json
Normal file
20
config/ember-cli-update.json
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
{
|
||||||
|
"schemaVersion": "1.0.0",
|
||||||
|
"packages": [
|
||||||
|
{
|
||||||
|
"name": "ember-cli",
|
||||||
|
"version": "6.1.0",
|
||||||
|
"blueprints": [
|
||||||
|
{
|
||||||
|
"name": "app",
|
||||||
|
"outputRepo": "https://github.com/ember-cli/ember-new-output",
|
||||||
|
"codemodsSource": "ember-app-codemods-manifest@1",
|
||||||
|
"isBaseBlueprint": true,
|
||||||
|
"options": [
|
||||||
|
"--ci-provider=github"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
48
config/environment.js
Normal file
48
config/environment.js
Normal file
@@ -0,0 +1,48 @@
|
|||||||
|
'use strict';
|
||||||
|
|
||||||
|
module.exports = function (environment) {
|
||||||
|
const ENV = {
|
||||||
|
modulePrefix: 'holygamesapp',
|
||||||
|
environment,
|
||||||
|
rootURL: '/',
|
||||||
|
locationType: 'history',
|
||||||
|
EmberENV: {
|
||||||
|
EXTEND_PROTOTYPES: false,
|
||||||
|
FEATURES: {
|
||||||
|
// Here you can enable experimental features on an ember canary build
|
||||||
|
// e.g. EMBER_NATIVE_DECORATOR_SUPPORT: true
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
|
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;
|
||||||
|
};
|
||||||
7
config/optional-features.json
Normal file
7
config/optional-features.json
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"application-template-wrapper": false,
|
||||||
|
"default-async-observers": true,
|
||||||
|
"jquery-integration": false,
|
||||||
|
"template-only-glimmer-components": true,
|
||||||
|
"no-implicit-route-model": true
|
||||||
|
}
|
||||||
11
config/targets.js
Normal file
11
config/targets.js
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
'use strict';
|
||||||
|
|
||||||
|
const browsers = [
|
||||||
|
'last 1 Chrome versions',
|
||||||
|
'last 1 Firefox versions',
|
||||||
|
'last 1 Safari versions',
|
||||||
|
];
|
||||||
|
|
||||||
|
module.exports = {
|
||||||
|
browsers,
|
||||||
|
};
|
||||||
11
ember-cli-build.js
Normal file
11
ember-cli-build.js
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
'use strict';
|
||||||
|
|
||||||
|
const EmberApp = require('ember-cli/lib/broccoli/ember-app');
|
||||||
|
|
||||||
|
module.exports = function (defaults) {
|
||||||
|
const app = new EmberApp(defaults, {
|
||||||
|
// Add options here
|
||||||
|
});
|
||||||
|
|
||||||
|
return app.toTree();
|
||||||
|
};
|
||||||
121
eslint.config.mjs
Normal file
121
eslint.config.mjs
Normal file
@@ -0,0 +1,121 @@
|
|||||||
|
/**
|
||||||
|
* Debugging:
|
||||||
|
* https://eslint.org/docs/latest/use/configure/debug
|
||||||
|
* ----------------------------------------------------
|
||||||
|
*
|
||||||
|
* Print a file's calculated configuration
|
||||||
|
*
|
||||||
|
* npx eslint --print-config path/to/file.js
|
||||||
|
*
|
||||||
|
* Inspecting the config
|
||||||
|
*
|
||||||
|
* npx eslint --inspect-config
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
import globals from 'globals';
|
||||||
|
import js from '@eslint/js';
|
||||||
|
|
||||||
|
import ember from 'eslint-plugin-ember/recommended';
|
||||||
|
import prettier from 'eslint-plugin-prettier/recommended';
|
||||||
|
import qunit from 'eslint-plugin-qunit';
|
||||||
|
import n from 'eslint-plugin-n';
|
||||||
|
|
||||||
|
import babelParser from '@babel/eslint-parser';
|
||||||
|
|
||||||
|
const esmParserOptions = {
|
||||||
|
ecmaFeatures: { modules: true },
|
||||||
|
ecmaVersion: 'latest',
|
||||||
|
requireConfigFile: false,
|
||||||
|
babelOptions: {
|
||||||
|
plugins: [
|
||||||
|
['@babel/plugin-proposal-decorators', { decoratorsBeforeExport: true }],
|
||||||
|
],
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
|
export default [
|
||||||
|
js.configs.recommended,
|
||||||
|
prettier,
|
||||||
|
ember.configs.base,
|
||||||
|
ember.configs.gjs,
|
||||||
|
/**
|
||||||
|
* Ignores must be in their own object
|
||||||
|
* https://eslint.org/docs/latest/use/configure/ignore
|
||||||
|
*/
|
||||||
|
{
|
||||||
|
ignores: ['dist/', 'node_modules/', 'coverage/', '!**/.*'],
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* https://eslint.org/docs/latest/use/configure/configuration-files#configuring-linter-options
|
||||||
|
*/
|
||||||
|
{
|
||||||
|
linterOptions: {
|
||||||
|
reportUnusedDisableDirectives: 'error',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
files: ['**/*.js'],
|
||||||
|
languageOptions: {
|
||||||
|
parser: babelParser,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
files: ['**/*.{js,gjs}'],
|
||||||
|
languageOptions: {
|
||||||
|
parserOptions: esmParserOptions,
|
||||||
|
globals: {
|
||||||
|
...globals.browser,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
files: ['tests/**/*-test.{js,gjs}'],
|
||||||
|
plugins: {
|
||||||
|
qunit,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* CJS node files
|
||||||
|
*/
|
||||||
|
{
|
||||||
|
files: [
|
||||||
|
'**/*.cjs',
|
||||||
|
'config/**/*.js',
|
||||||
|
'testem.js',
|
||||||
|
'testem*.js',
|
||||||
|
'.prettierrc.js',
|
||||||
|
'.stylelintrc.js',
|
||||||
|
'.template-lintrc.js',
|
||||||
|
'ember-cli-build.js',
|
||||||
|
],
|
||||||
|
plugins: {
|
||||||
|
n,
|
||||||
|
},
|
||||||
|
|
||||||
|
languageOptions: {
|
||||||
|
sourceType: 'script',
|
||||||
|
ecmaVersion: 'latest',
|
||||||
|
globals: {
|
||||||
|
...globals.node,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* ESM node files
|
||||||
|
*/
|
||||||
|
{
|
||||||
|
files: ['**/*.mjs'],
|
||||||
|
plugins: {
|
||||||
|
n,
|
||||||
|
},
|
||||||
|
|
||||||
|
languageOptions: {
|
||||||
|
sourceType: 'module',
|
||||||
|
ecmaVersion: 'latest',
|
||||||
|
parserOptions: esmParserOptions,
|
||||||
|
globals: {
|
||||||
|
...globals.node,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
];
|
||||||
24802
package-lock.json
generated
Normal file
24802
package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
84
package.json
Normal file
84
package.json
Normal file
@@ -0,0 +1,84 @@
|
|||||||
|
{
|
||||||
|
"name": "holygamesapp",
|
||||||
|
"version": "0.0.0",
|
||||||
|
"private": true,
|
||||||
|
"description": "Small description for holygamesapp goes here",
|
||||||
|
"repository": "",
|
||||||
|
"license": "MIT",
|
||||||
|
"author": "",
|
||||||
|
"directories": {
|
||||||
|
"doc": "doc",
|
||||||
|
"test": "tests"
|
||||||
|
},
|
||||||
|
"scripts": {
|
||||||
|
"build": "ember build --environment=production",
|
||||||
|
"lint": "concurrently \"npm:lint:*(!fix)\" --names \"lint:\" --prefixColors auto",
|
||||||
|
"lint:css": "stylelint \"**/*.css\"",
|
||||||
|
"lint:css:fix": "concurrently \"npm:lint:css -- --fix\"",
|
||||||
|
"lint:fix": "concurrently \"npm:lint:*:fix\" --names \"fix:\" --prefixColors auto",
|
||||||
|
"lint:hbs": "ember-template-lint .",
|
||||||
|
"lint:hbs:fix": "ember-template-lint . --fix",
|
||||||
|
"lint:js": "eslint . --cache",
|
||||||
|
"lint:js:fix": "eslint . --fix",
|
||||||
|
"start": "ember serve",
|
||||||
|
"test": "concurrently \"npm:lint\" \"npm:test:*\" --names \"lint,test:\" --prefixColors auto",
|
||||||
|
"test:ember": "ember test"
|
||||||
|
},
|
||||||
|
"devDependencies": {
|
||||||
|
"@babel/core": "^7.26.0",
|
||||||
|
"@babel/eslint-parser": "^7.25.9",
|
||||||
|
"@babel/plugin-proposal-decorators": "^7.25.9",
|
||||||
|
"@ember/optional-features": "^2.2.0",
|
||||||
|
"@ember/string": "^4.0.0",
|
||||||
|
"@ember/test-helpers": "^4.0.4",
|
||||||
|
"@eslint/js": "^9.17.0",
|
||||||
|
"@glimmer/component": "^1.1.2",
|
||||||
|
"@glimmer/tracking": "^1.1.2",
|
||||||
|
"broccoli-asset-rev": "^3.0.0",
|
||||||
|
"concurrently": "^9.1.0",
|
||||||
|
"ember-auto-import": "^2.10.0",
|
||||||
|
"ember-cli": "~6.1.0",
|
||||||
|
"ember-cli-app-version": "^7.0.0",
|
||||||
|
"ember-cli-babel": "^8.2.0",
|
||||||
|
"ember-cli-clean-css": "^3.0.0",
|
||||||
|
"ember-cli-dependency-checker": "^3.3.3",
|
||||||
|
"ember-cli-htmlbars": "^6.3.0",
|
||||||
|
"ember-cli-inject-live-reload": "^2.1.0",
|
||||||
|
"ember-cli-sri": "^2.1.1",
|
||||||
|
"ember-cli-terser": "^4.0.2",
|
||||||
|
"ember-data": "~5.3.9",
|
||||||
|
"ember-fetch": "^8.1.2",
|
||||||
|
"ember-load-initializers": "^3.0.1",
|
||||||
|
"ember-modifier": "^4.2.0",
|
||||||
|
"ember-page-title": "^8.2.3",
|
||||||
|
"ember-qunit": "^8.1.1",
|
||||||
|
"ember-resolver": "^13.1.0",
|
||||||
|
"ember-source": "~6.1.0",
|
||||||
|
"ember-template-imports": "^4.2.0",
|
||||||
|
"ember-template-lint": "^6.0.0",
|
||||||
|
"ember-welcome-page": "^7.0.2",
|
||||||
|
"eslint": "^9.17.0",
|
||||||
|
"eslint-config-prettier": "^9.1.0",
|
||||||
|
"eslint-plugin-ember": "^12.3.3",
|
||||||
|
"eslint-plugin-n": "^17.15.1",
|
||||||
|
"eslint-plugin-prettier": "^5.2.1",
|
||||||
|
"eslint-plugin-qunit": "^8.1.2",
|
||||||
|
"globals": "^15.14.0",
|
||||||
|
"loader.js": "^4.7.0",
|
||||||
|
"prettier": "^3.4.2",
|
||||||
|
"prettier-plugin-ember-template-tag": "^2.0.4",
|
||||||
|
"qunit": "^2.23.1",
|
||||||
|
"qunit-dom": "^3.4.0",
|
||||||
|
"stylelint": "^16.12.0",
|
||||||
|
"stylelint-config-standard": "^36.0.1",
|
||||||
|
"stylelint-prettier": "^5.0.2",
|
||||||
|
"tracked-built-ins": "^3.4.0",
|
||||||
|
"webpack": "^5.97.1"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": ">= 18"
|
||||||
|
},
|
||||||
|
"ember": {
|
||||||
|
"edition": "octane"
|
||||||
|
}
|
||||||
|
}
|
||||||
3
public/robots.txt
Normal file
3
public/robots.txt
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
# http://www.robotstxt.org
|
||||||
|
User-agent: *
|
||||||
|
Disallow:
|
||||||
23
testem.js
Normal file
23
testem.js
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
'use strict';
|
||||||
|
|
||||||
|
module.exports = {
|
||||||
|
test_page: 'tests/index.html?hidepassed',
|
||||||
|
disable_watching: true,
|
||||||
|
launch_in_ci: ['Chrome'],
|
||||||
|
launch_in_dev: ['Chrome'],
|
||||||
|
browser_start_timeout: 120,
|
||||||
|
browser_args: {
|
||||||
|
Chrome: {
|
||||||
|
ci: [
|
||||||
|
// --no-sandbox is needed when running Chrome inside a container
|
||||||
|
process.env.CI ? '--no-sandbox' : null,
|
||||||
|
'--headless',
|
||||||
|
'--disable-dev-shm-usage',
|
||||||
|
'--disable-software-rasterizer',
|
||||||
|
'--mute-audio',
|
||||||
|
'--remote-debugging-port=0',
|
||||||
|
'--window-size=1440,900',
|
||||||
|
].filter(Boolean),
|
||||||
|
},
|
||||||
|
},
|
||||||
|
};
|
||||||
42
tests/helpers/index.js
Normal file
42
tests/helpers/index.js
Normal file
@@ -0,0 +1,42 @@
|
|||||||
|
import {
|
||||||
|
setupApplicationTest as upstreamSetupApplicationTest,
|
||||||
|
setupRenderingTest as upstreamSetupRenderingTest,
|
||||||
|
setupTest as upstreamSetupTest,
|
||||||
|
} from 'ember-qunit';
|
||||||
|
|
||||||
|
// This file exists to provide wrappers around ember-qunit's
|
||||||
|
// test setup functions. This way, you can easily extend the setup that is
|
||||||
|
// needed per test type.
|
||||||
|
|
||||||
|
function setupApplicationTest(hooks, options) {
|
||||||
|
upstreamSetupApplicationTest(hooks, options);
|
||||||
|
|
||||||
|
// Additional setup for application tests can be done here.
|
||||||
|
//
|
||||||
|
// For example, if you need an authenticated session for each
|
||||||
|
// application test, you could do:
|
||||||
|
//
|
||||||
|
// hooks.beforeEach(async function () {
|
||||||
|
// await authenticateSession(); // ember-simple-auth
|
||||||
|
// });
|
||||||
|
//
|
||||||
|
// This is also a good place to call test setup functions coming
|
||||||
|
// from other addons:
|
||||||
|
//
|
||||||
|
// setupIntl(hooks, 'en-us'); // ember-intl
|
||||||
|
// setupMirage(hooks); // ember-cli-mirage
|
||||||
|
}
|
||||||
|
|
||||||
|
function setupRenderingTest(hooks, options) {
|
||||||
|
upstreamSetupRenderingTest(hooks, options);
|
||||||
|
|
||||||
|
// Additional setup for rendering tests can be done here.
|
||||||
|
}
|
||||||
|
|
||||||
|
function setupTest(hooks, options) {
|
||||||
|
upstreamSetupTest(hooks, options);
|
||||||
|
|
||||||
|
// Additional setup for unit tests can be done here.
|
||||||
|
}
|
||||||
|
|
||||||
|
export { setupApplicationTest, setupRenderingTest, setupTest };
|
||||||
39
tests/index.html
Normal file
39
tests/index.html
Normal file
@@ -0,0 +1,39 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<title>Holygamesapp 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/holygamesapp.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"}}
|
||||||
|
|
||||||
|
<div id="qunit"></div>
|
||||||
|
<div id="qunit-fixture">
|
||||||
|
<div id="ember-testing-container">
|
||||||
|
<div id="ember-testing"></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<script src="/testem.js" integrity="" data-embroider-ignore></script>
|
||||||
|
<script src="{{rootURL}}assets/vendor.js"></script>
|
||||||
|
<script src="{{rootURL}}assets/test-support.js"></script>
|
||||||
|
<script src="{{rootURL}}assets/holygamesapp.js"></script>
|
||||||
|
<script src="{{rootURL}}assets/tests.js"></script>
|
||||||
|
|
||||||
|
{{content-for "body-footer"}}
|
||||||
|
{{content-for "test-body-footer"}}
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
0
tests/integration/.gitkeep
Normal file
0
tests/integration/.gitkeep
Normal file
12
tests/test-helper.js
Normal file
12
tests/test-helper.js
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
import Application from 'holygamesapp/app';
|
||||||
|
import config from 'holygamesapp/config/environment';
|
||||||
|
import * as QUnit from 'qunit';
|
||||||
|
import { setApplication } from '@ember/test-helpers';
|
||||||
|
import { setup } from 'qunit-dom';
|
||||||
|
import { start } from 'ember-qunit';
|
||||||
|
|
||||||
|
setApplication(Application.create(config.APP));
|
||||||
|
|
||||||
|
setup(QUnit.assert);
|
||||||
|
|
||||||
|
start();
|
||||||
0
tests/unit/.gitkeep
Normal file
0
tests/unit/.gitkeep
Normal file
Reference in New Issue
Block a user