Skip to content

Commit 571907c

Browse files
authored
Merge pull request #13 from Authmaker/feature/guidemaker
Converting to Guidemaker
2 parents 938c475 + 8537b8d commit 571907c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

66 files changed

+17078
-16
lines changed

.editorconfig

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
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

.ember-cli

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
/**
3+
Ember CLI sends analytics information by default. The data is completely
4+
anonymous, but there are times when you might want to disable this behavior.
5+
6+
Setting `disableAnalytics` to true will prevent any data from being sent.
7+
*/
8+
"disableAnalytics": false
9+
}

.eslintignore

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# unconventional js
2+
/blueprints/*/files/
3+
/vendor/
4+
5+
# compiled output
6+
/dist/
7+
/tmp/
8+
9+
# dependencies
10+
/bower_components/
11+
12+
# misc
13+
/coverage/
14+
!.*
15+
16+
# ember-try
17+
/.node_modules.ember-try/
18+
/bower.json.ember-try
19+
/package.json.ember-try

.eslintrc.js

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
module.exports = {
2+
root: true,
3+
parserOptions: {
4+
ecmaVersion: 2017,
5+
sourceType: 'module'
6+
},
7+
plugins: [
8+
'ember'
9+
],
10+
extends: [
11+
'eslint:recommended',
12+
'plugin:ember/recommended'
13+
],
14+
env: {
15+
browser: true
16+
},
17+
rules: {
18+
},
19+
overrides: [
20+
// node files
21+
{
22+
files: [
23+
'.template-lintrc.js',
24+
'ember-cli-build.js',
25+
'testem.js',
26+
'blueprints/*/index.js',
27+
'config/**/*.js',
28+
'lib/*/index.js'
29+
],
30+
parserOptions: {
31+
sourceType: 'script',
32+
ecmaVersion: 2015
33+
},
34+
env: {
35+
browser: false,
36+
node: true
37+
}
38+
}
39+
]
40+
};

.gitignore

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# See https://help.github.com/ignore-files/ for more about ignoring files.
2+
3+
# compiled output
4+
/dist/
5+
/tmp/
6+
7+
# dependencies
8+
/bower_components/
9+
/node_modules/
10+
11+
# misc
12+
/.sass-cache
13+
/connect.lock
14+
/coverage/
15+
/libpeerconnection.log
16+
/npm-debug.log*
17+
/testem.log
18+
/yarn-error.log
19+
20+
# ember-try
21+
/.node_modules.ember-try/
22+
/bower.json.ember-try
23+
/package.json.ember-try

.template-lintrc.js

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
'use strict';
2+
3+
module.exports = {
4+
extends: 'recommended'
5+
};

.travis.yml

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
language: node_js
3+
node_js:
4+
- "6"
5+
6+
sudo: false
7+
dist: trusty
8+
9+
addons:
10+
chrome: stable
11+
12+
cache:
13+
directories:
14+
- $HOME/.npm
15+
16+
env:
17+
global:
18+
# See https://git.io/vdao3 for details.
19+
- JOBS=1
20+
21+
before_install:
22+
- npm config set spin false
23+
24+
script:
25+
- npm run lint:hbs
26+
- npm run lint:js
27+
- npm test

.watchmanconfig

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"ignore_dirs": ["tmp", "dist"]
3+
}

README.md

+57-1

app/app.js

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import Application from '@ember/application';
2+
import Resolver from './resolver';
3+
import loadInitializers from 'ember-load-initializers';
4+
import config from './config/environment';
5+
6+
const App = Application.extend({
7+
modulePrefix: config.modulePrefix,
8+
podModulePrefix: config.podModulePrefix,
9+
Resolver
10+
});
11+
12+
loadInitializers(App, config.modulePrefix);
13+
14+
export default App;

app/components/.gitkeep

Whitespace-only changes.

app/controllers/.gitkeep

Whitespace-only changes.

app/helpers/.gitkeep

Whitespace-only changes.

app/index.html

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta charset="utf-8">
5+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
6+
<title>Documentation</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 integrity="" rel="stylesheet" href="{{rootURL}}assets/vendor.css">
13+
<link integrity="" rel="stylesheet" href="{{rootURL}}assets/@authmaker/documentation.css">
14+
15+
{{content-for "head-footer"}}
16+
</head>
17+
<body>
18+
{{content-for "body"}}
19+
20+
<script src="{{rootURL}}assets/vendor.js"></script>
21+
<script src="{{rootURL}}assets/@authmaker/documentation.js"></script>
22+
23+
{{content-for "body-footer"}}
24+
</body>
25+
</html>

app/models/.gitkeep

Whitespace-only changes.

app/resolver.js

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import Resolver from 'ember-resolver';
2+
3+
export default Resolver;

app/router.js

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import EmberRouter from '@ember/routing/router';
2+
import config from './config/environment';
3+
4+
const Router = EmberRouter.extend({
5+
location: config.locationType,
6+
rootURL: config.rootURL
7+
});
8+
9+
Router.map(function() {
10+
});
11+
12+
export default Router;

app/routes/.gitkeep

Whitespace-only changes.

app/styles/app.css

Whitespace-only changes.

app/templates/components/.gitkeep

Whitespace-only changes.

config/environment.js

+68
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
'use strict';
2+
3+
module.exports = function(environment) {
4+
let ENV = {
5+
modulePrefix: '@authmaker/documentation',
6+
environment,
7+
rootURL: '/',
8+
locationType: 'trailing-history',
9+
historySupportMiddleware: true,
10+
11+
EmberENV: {
12+
FEATURES: {
13+
// Here you can enable experimental features on an ember canary build
14+
// e.g. 'with-controller': true
15+
},
16+
EXTEND_PROTOTYPES: {
17+
// Prevent Ember Data from overriding Date.parse.
18+
Date: false
19+
}
20+
},
21+
22+
APP: {
23+
// Here you can pass flags/options to your application instance
24+
// when it is created
25+
},
26+
27+
'ember-meta': {
28+
description: 'Authmaker Beginner Documentation'
29+
},
30+
31+
guidemaker: {
32+
title: 'Authmaker docs',
33+
logo: '/images/logo.svg',
34+
copyright: 'Stone Circle Design Limited',
35+
social: {
36+
github: 'authmaker',
37+
twitter: 'authmaker',
38+
},
39+
sourceRepo: 'https://github.com/authmaker/documentation',
40+
},
41+
};
42+
43+
if (environment === 'development') {
44+
// ENV.APP.LOG_RESOLVER = true;
45+
// ENV.APP.LOG_ACTIVE_GENERATION = true;
46+
// ENV.APP.LOG_TRANSITIONS = true;
47+
// ENV.APP.LOG_TRANSITIONS_INTERNAL = true;
48+
// ENV.APP.LOG_VIEW_LOOKUPS = true;
49+
}
50+
51+
if (environment === 'test') {
52+
// Testem prefers this...
53+
ENV.locationType = 'none';
54+
55+
// keep test console output quieter
56+
ENV.APP.LOG_ACTIVE_GENERATION = false;
57+
ENV.APP.LOG_VIEW_LOOKUPS = false;
58+
59+
ENV.APP.rootElement = '#ember-testing';
60+
ENV.APP.autoboot = false;
61+
}
62+
63+
if (environment === 'production') {
64+
// here you can enable a production-specific feature
65+
}
66+
67+
return ENV;
68+
};

config/optional-features.json

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"jquery-integration": true
3+
}

config/targets.js

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
'use strict';
2+
3+
const browsers = [
4+
'last 1 Chrome versions',
5+
'last 1 Firefox versions',
6+
'last 1 Safari versions'
7+
];
8+
9+
const isCI = !!process.env.CI;
10+
const isProduction = process.env.EMBER_ENV === 'production';
11+
12+
if (isCI || isProduction) {
13+
browsers.push('ie 11');
14+
}
15+
16+
module.exports = {
17+
browsers
18+
};

ember-cli-build.js

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
'use strict';
2+
3+
const EmberApp = require('ember-cli/lib/broccoli/ember-app');
4+
5+
module.exports = function(defaults) {
6+
let app = new EmberApp(defaults, {
7+
fingerprint: {
8+
extensions: ['js', 'css', 'map']
9+
}
10+
});
11+
12+
// Use `app.import` to add additional libraries to the generated
13+
// output files.
14+
//
15+
// If you need to use different assets in different
16+
// environments, specify an object as the first parameter. That
17+
// object's keys should be the environment name and the values
18+
// should be the asset to use in that environment.
19+
//
20+
// If the library that you are including contains AMD or ES6
21+
// modules that you would like to import into your application
22+
// please specify an object with the list of modules as keys
23+
// along with the exports of each module as its value.
24+
25+
return app.toTree();
26+
};

0 commit comments

Comments
 (0)