Ember app starter
This commit is contained in:
parent
fdf5b6024d
commit
daeb8b9a8e
|
@ -1,4 +1,3 @@
|
||||||
{
|
{
|
||||||
"disableAnalytics": false,
|
"disableAnalytics": false
|
||||||
"output_path": "dist"
|
|
||||||
}
|
}
|
|
@ -15,6 +15,7 @@ module.exports = {
|
||||||
browser: true
|
browser: true
|
||||||
},
|
},
|
||||||
rules: {
|
rules: {
|
||||||
|
'no-console': 0
|
||||||
},
|
},
|
||||||
overrides: [
|
overrides: [
|
||||||
// node files
|
// node files
|
||||||
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
module.exports = {
|
||||||
|
extends: 'recommended'
|
||||||
|
};
|
|
@ -3,12 +3,14 @@ import Resolver from './resolver';
|
||||||
import loadInitializers from 'ember-load-initializers';
|
import loadInitializers from 'ember-load-initializers';
|
||||||
import config from './config/environment';
|
import config from './config/environment';
|
||||||
|
|
||||||
|
// import EmbarkJS from 'Embark/EmbarkJS';
|
||||||
|
|
||||||
const App = Application.extend({
|
const App = Application.extend({
|
||||||
modulePrefix: config.modulePrefix,
|
modulePrefix: config.modulePrefix,
|
||||||
podModulePrefix: config.podModulePrefix,
|
podModulePrefix: config.podModulePrefix,
|
||||||
Resolver
|
Resolver
|
||||||
});
|
})
|
||||||
|
|
||||||
loadInitializers(App, config.modulePrefix);
|
loadInitializers(App, config.modulePrefix)
|
||||||
|
|
||||||
export default App;
|
export default App
|
|
@ -10,18 +10,18 @@
|
||||||
{{content-for "head"}}
|
{{content-for "head"}}
|
||||||
|
|
||||||
<link integrity="" rel="stylesheet" href="{{rootURL}}assets/vendor.css">
|
<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"}}
|
{{content-for "head-footer"}}
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<h3>Welcome to Embark!</h3>
|
<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>
|
<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"}}
|
{{content-for "body"}}
|
||||||
|
<div id="app"></div>
|
||||||
|
|
||||||
<script src="{{rootURL}}assets/vendor.js"></script>
|
<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"}}
|
{{content-for "body-footer"}}
|
||||||
</body>
|
</body>
|
||||||
|
|
|
@ -1,4 +1,12 @@
|
||||||
import Route from '@ember/routing/route';
|
import Route from '@ember/routing/route';
|
||||||
|
|
||||||
export default Route.extend({
|
export default Route.extend({
|
||||||
|
model () {
|
||||||
|
return {}
|
||||||
|
},
|
||||||
|
|
||||||
|
init () {
|
||||||
|
this._super(...arguments)
|
||||||
|
console.log('Inited')
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
/* @import "ember-cli-bootstrap-4/bootstrap"; */
|
|
@ -1 +0,0 @@
|
||||||
@import "ember-cli-bootstrap-4/bootstrap";
|
|
|
@ -1,3 +1,3 @@
|
||||||
{{outlet}}
|
{{outlet}}
|
||||||
|
|
||||||
{{component ember-blockchain}}
|
<h1>Spiel</h1>
|
|
@ -0,0 +1,9 @@
|
||||||
|
{{yield}}
|
||||||
|
|
||||||
|
<h2>{{title}}</h2>
|
||||||
|
|
||||||
|
<ul>
|
||||||
|
{{#each people as |person|}}
|
||||||
|
<li>{{person}}</li>
|
||||||
|
{{/each}}
|
||||||
|
</ul>
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"name": "embark-emberjs-template",
|
"name": "embark-ember-template",
|
||||||
"version": "0.0.1",
|
"version": "0.0.1",
|
||||||
"description": "",
|
"description": "",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|
Loading…
Reference in New Issue