This repository was archived by the owner on May 20, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 18 files changed +5201
-0
lines changed Expand file tree Collapse file tree 18 files changed +5201
-0
lines changed Original file line number Diff line number Diff line change
1
+ # EditorConfig helps developers define and maintain consistent
2
+ # coding styles between different editors and IDEs
3
+ # editorconfig.org
4
+
5
+ root = true
6
+
7
+
8
+ [* ]
9
+ end_of_line = lf
10
+ charset = utf-8
11
+ trim_trailing_whitespace = true
12
+ insert_final_newline = true
13
+ indent_style = space
14
+ indent_size = 2
15
+
16
+ [* .hbs ]
17
+ insert_final_newline = false
18
+
19
+ [* .{diff,md} ]
20
+ trim_trailing_whitespace = false
Original file line number Diff line number Diff line change
1
+ node_modules
2
+ tmp
3
+ dist
Original file line number Diff line number Diff line change
1
+ {
2
+ "ignore_dirs" : [" tmp" , " dist" ]
3
+ }
Original file line number Diff line number Diff line change
1
+ # frontend
2
+
3
+ This README outlines the details of collaborating on this Glimmer application.
4
+ A short introduction of this app could easily go here.
5
+
6
+ ## Prerequisites
7
+
8
+ You will need the following things properly installed on your computer.
9
+
10
+ * [ Git] ( https://git-scm.com/ )
11
+ * [ Node.js] ( https://nodejs.org/ ) (with NPM)
12
+ * [ Yarn] ( https://yarnpkg.com/en/ )
13
+ * [ Ember CLI] ( https://ember-cli.com/ )
14
+
15
+ ## Installation
16
+
17
+ * ` git clone <repository-url> ` this repository
18
+ * ` cd frontend `
19
+ * ` yarn `
20
+
21
+ ## Running / Development
22
+
23
+ * ` ember serve `
24
+ * Visit your app at [ http://localhost:4200 ] ( http://localhost:4200 ) .
25
+
26
+ ### Building
27
+
28
+ * ` ember build ` (development)
29
+ * ` ember build --environment production ` (production)
30
+
31
+ ## Further Reading / Useful Links
32
+
33
+ * [ glimmerjs] ( http://github.com/tildeio/glimmer/ )
34
+ * [ ember-cli] ( https://ember-cli.com/ )
Original file line number Diff line number Diff line change
1
+ 'use strict' ;
2
+
3
+ module . exports = function ( environment ) {
4
+ let ENV = {
5
+ modulePrefix : 'frontend-app' ,
6
+ environment : environment
7
+ } ;
8
+
9
+ return ENV ;
10
+ } ;
Original file line number Diff line number Diff line change
1
+ /**
2
+ * This is just a placeholder file to keep TypeScript aware editors happy. At build time,
3
+ * it will be replaced with a complete map of resolvable module paths => rolled up contents.
4
+ */
5
+
6
+ export interface Dict < T > {
7
+ [ index : string ] : T ;
8
+ }
9
+
10
+ declare let map : Dict < any > ;
11
+ export default map ;
Original file line number Diff line number Diff line change
1
+ /**
2
+ * This is just a placeholder file to keep TypeScript aware editors happy. At build time,
3
+ * it will be replaced with a resolver configuration composed from your application's
4
+ * `config/environment.js` (and supplemented with default settings as possible).
5
+ */
6
+
7
+ import { ResolverConfiguration } from '@glimmer/resolver' ;
8
+ declare var _default : ResolverConfiguration ;
9
+ export default _default ;
Original file line number Diff line number Diff line change
1
+ 'use strict' ;
2
+
3
+ const GlimmerApp = require ( '@glimmer/application-pipeline' ) . GlimmerApp ;
4
+
5
+ module . exports = function ( defaults ) {
6
+ let app = new GlimmerApp ( defaults , {
7
+ // Add options here
8
+ } ) ;
9
+
10
+ // Use `app.import` to add additional libraries to the generated
11
+ // output files.
12
+ //
13
+ // If you need to use different assets in different
14
+ // environments, specify an object as the first parameter. That
15
+ // object's keys should be the environment name and the values
16
+ // should be the asset to use in that environment.
17
+ //
18
+ // If the library that you are including contains AMD or ES6
19
+ // modules that you would like to import into your application
20
+ // please specify an object with the list of modules as keys
21
+ // along with the exports of each module as its value.
22
+
23
+ return app . toTree ( ) ;
24
+ } ;
Original file line number Diff line number Diff line change
1
+ {
2
+ "name" : " frontend" ,
3
+ "version" : " 0.0.0" ,
4
+ "description" : " A brand new Glimmer app." ,
5
+ "directories" : {
6
+ "doc" : " doc" ,
7
+ "test" : " tests"
8
+ },
9
+ "scripts" : {
10
+ "build" : " ember build" ,
11
+ "start" : " ember server" ,
12
+ "test" : " ember test"
13
+ },
14
+ "devDependencies" : {
15
+ "@glimmer/application" : " ^0.5.1" ,
16
+ "@glimmer/application-pipeline" : " ^0.7.0" ,
17
+ "@glimmer/blueprint" : " ^0.2.1" ,
18
+ "@glimmer/resolver" : " ^0.3.0" ,
19
+ "broccoli-asset-rev" : " ^2.5.0" ,
20
+ "ember-cli" : " ^2.14.0-beta.2" ,
21
+ "ember-cli-inject-live-reload" : " ^1.6.1" ,
22
+ "ember-cli-uglify" : " ^1.2.0" ,
23
+ "ember-cli-sass" : " ^6.2.0" ,
24
+ "typescript" : " ^2.2.2"
25
+ },
26
+ "engines" : {
27
+ "node" : " >= 4.0"
28
+ },
29
+ "private" : true
30
+ }
Original file line number Diff line number Diff line change
1
+ # http://www.robotstxt.org
2
+ User-agent: *
3
+ Disallow:
Original file line number Diff line number Diff line change
1
+ import App from './main' ;
2
+ import { ComponentManager , setPropertyDidChange } from '@glimmer/component' ;
3
+
4
+ const app = new App ( ) ;
5
+ const containerElement = document . getElementById ( 'app' ) ;
6
+
7
+ setPropertyDidChange ( ( ) => {
8
+ app . scheduleRerender ( ) ;
9
+ } ) ;
10
+
11
+ app . registerInitializer ( {
12
+ initialize ( registry ) {
13
+ registry . register ( `component-manager:/${ app . rootName } /component-managers/main` , ComponentManager ) ;
14
+ }
15
+ } ) ;
16
+
17
+ app . renderComponent ( 'frontend-app' , containerElement , null ) ;
18
+
19
+ app . boot ( ) ;
Original file line number Diff line number Diff line change
1
+ import Application from '@glimmer/application' ;
2
+ import Resolver , { BasicModuleRegistry } from '@glimmer/resolver' ;
3
+ import moduleMap from '../config/module-map' ;
4
+ import resolverConfiguration from '../config/resolver-configuration' ;
5
+
6
+ export default class App extends Application {
7
+ constructor ( ) {
8
+ let moduleRegistry = new BasicModuleRegistry ( moduleMap ) ;
9
+ let resolver = new Resolver ( resolverConfiguration , moduleRegistry ) ;
10
+
11
+ super ( {
12
+ rootName : resolverConfiguration . app . rootName ,
13
+ resolver
14
+ } ) ;
15
+ }
16
+ }
Original file line number Diff line number Diff line change
1
+ import Component from "@glimmer/component" ;
2
+
3
+ export default class Frontend extends Component {
4
+
5
+ }
Original file line number Diff line number Diff line change
1
+ <div >
2
+ <h1 >Welcome to Glimmer!</h1 >
3
+ </div >
Original file line number Diff line number Diff line change
1
+ <!DOCTYPE html>
2
+ < html >
3
+ < head >
4
+ < meta charset ="utf-8 ">
5
+ < meta http-equiv ="X-UA-Compatible " content ="IE=edge ">
6
+ < title > Hello Glimmer</ title >
7
+ < meta name ="description " content ="">
8
+ < meta name ="viewport " content ="width=device-width, initial-scale=1 ">
9
+
10
+ {{content-for "head"}}
11
+
12
+ < link rel ="stylesheet " href ="{{rootURL}}app.css ">
13
+
14
+ {{content-for "head-footer"}}
15
+ </ head >
16
+ < body >
17
+ {{content-for "body"}}
18
+
19
+ < div id ="app "> </ div >
20
+ < script src ="{{rootURL}}app.js "> </ script >
21
+
22
+ {{content-for "body-footer"}}
23
+ </ body >
24
+ </ html >
Original file line number Diff line number Diff line change
1
+ h1 {
2
+ color : #444 ;
3
+ }
Original file line number Diff line number Diff line change
1
+ {
2
+ "compilerOptions" : {
3
+ "target" : " es6" ,
4
+ "module" : " es2015" ,
5
+ "inlineSourceMap" : true ,
6
+ "inlineSources" : true ,
7
+ "moduleResolution" : " node" ,
8
+ "experimentalDecorators" : true
9
+ },
10
+ "exclude" : [
11
+ " node_modules" ,
12
+ " tmp" ,
13
+ " dist"
14
+ ]
15
+ }
You can’t perform that action at this time.
0 commit comments