Ember app starter

This commit is contained in:
Daniil Borovkov 2018-12-05 02:42:29 +06:00
parent fdf5b6024d
commit daeb8b9a8e
11 changed files with 35 additions and 11 deletions

View File

@ -1,4 +1,3 @@
{
"disableAnalytics": false,
"output_path": "dist"
"disableAnalytics": false
}

View File

@ -15,6 +15,7 @@ module.exports = {
browser: true
},
rules: {
'no-console': 0
},
overrides: [
// node files

5
.template-lintrc.js Normal file
View File

@ -0,0 +1,5 @@
'use strict';
module.exports = {
extends: 'recommended'
};

View File

@ -3,12 +3,14 @@ import Resolver from './resolver';
import loadInitializers from 'ember-load-initializers';
import config from './config/environment';
// import EmbarkJS from 'Embark/EmbarkJS';
const App = Application.extend({
modulePrefix: config.modulePrefix,
podModulePrefix: config.podModulePrefix,
Resolver
});
})
loadInitializers(App, config.modulePrefix);
loadInitializers(App, config.modulePrefix)
export default App;
export default App

View File

@ -10,18 +10,18 @@
{{content-for "head"}}
<link integrity="" rel="stylesheet" href="{{rootURL}}assets/vendor.css">
<link integrity="" rel="stylesheet" href="{{rootURL}}assets/ember-quickstart.css">
<link integrity="" rel="stylesheet" href="{{rootURL}}assets/embark-ember-template.css">
{{content-for "head-footer"}}
</head>
<body>
<h3>Welcome to Embark!</h3>
<p>See the <a href="http://embark.readthedocs.io/en/latest/index.html" target="_blank">Embark's documentation</a> to see what you can do with Embark!</p>
<h2>Text</h2>
{{content-for "body"}}
<div id="app"></div>
<script src="{{rootURL}}assets/vendor.js"></script>
<script src="{{rootURL}}assets/ember-quickstart.js"></script>
<script src="{{rootURL}}assets/embark-ember-template.js"></script>
{{content-for "body-footer"}}
</body>

View File

@ -1,4 +1,12 @@
import Route from '@ember/routing/route';
export default Route.extend({
model () {
return {}
},
init () {
this._super(...arguments)
console.log('Inited')
}
});

1
app/styles/app.css Normal file
View File

@ -0,0 +1 @@
/* @import "ember-cli-bootstrap-4/bootstrap"; */

View File

@ -1 +0,0 @@
@import "ember-cli-bootstrap-4/bootstrap";

View File

@ -1,3 +1,3 @@
{{outlet}}
{{component ember-blockchain}}
<h1>Spiel</h1>

View File

@ -0,0 +1,9 @@
{{yield}}
<h2>{{title}}</h2>
<ul>
{{#each people as |person|}}
<li>{{person}}</li>
{{/each}}
</ul>

View File

@ -1,5 +1,5 @@
{
"name": "embark-emberjs-template",
"name": "embark-ember-template",
"version": "0.0.1",
"description": "",
"scripts": {