Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Sync gitignore moban #66

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
@@ -10,12 +10,24 @@ module.exports = {
],
extends: [
'eslint:recommended',
'plugin:ember/recommended'
'plugin:ember/recommended',
'airbnb-base'
],
env: {
browser: true
},
rules: {
// This rule has no support for @ember import system.
// Ember build have their own mechanism to managing dependency.
// Ember build will raise error on build if there is an import error.
'import/extensions': 'off',
'import/no-unresolved': 'off',
'import/no-extraneous-dependencies': 'off',
// Ember use underscore dangling, e.g _super. Which is enforced by ember's
// own linter to be used on init() method.
'no-underscore-dangle': 'off',
// Ember Routes and tests utilize `this` inside their callback.
'prefer-arrow-callback': 'off',
},
overrides: [
// node files
18 changes: 15 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -62,9 +62,15 @@ typings/
# dotenv environment variables file
.env

# parcel-bundler cache (https://parceljs.org/)
.cache

# next.js build output
.next

# nuxt.js build output
.nuxt

# vuepress build output
.vuepress/dist

@@ -222,7 +228,8 @@ flycheck_*.el
# Swap
[._]*.s[a-v][a-z]
[._]*.sw[a-p]
[._]s[a-v][a-z]
[._]s[a-rt-v][a-z]
[._]ss[a-gi-z]
[._]sw[a-p]

# Session
@@ -261,8 +268,7 @@ tags
.idea/**/libraries

# CMake
cmake-build-debug/
cmake-build-release/
cmake-build-*/

# Mongo Explorer plugin
.idea/**/mongoSettings.xml
@@ -419,6 +425,9 @@ local.properties
# Code Recommenders
.recommenders/

# Annotation Processing
.apt_generated/

# Scala IDE specific (Scala & Java development for Eclipse)
.cache-main
.scala_dependencies
@@ -451,3 +460,6 @@ cscope.po.out
*.patch
*.orig
*.diff

# Pytest profile files
prof/
4 changes: 2 additions & 2 deletions app/app.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import Application from '@ember/application';
import Resolver from './resolver';
import loadInitializers from 'ember-load-initializers';
import Resolver from './resolver';
import config from './config/environment';

const App = Application.extend({
modulePrefix: config.modulePrefix,
podModulePrefix: config.podModulePrefix,
Resolver
Resolver,
});

loadInitializers(App, config.modulePrefix);
24 changes: 11 additions & 13 deletions app/initializers/showdown.js
Original file line number Diff line number Diff line change
@@ -1,21 +1,19 @@
/* global showdown */
export function initialize() {
showdown.setFlavor('github');
showdown.extension("issueWrap", function() {
return [{
type: 'html',
regex: '<pre>',
replace: '<pre style="white-space: pre-wrap">'
},
{
type: 'html',
regex: '<p>',
replace: '<p style="overflow-wrap: break-word;">'
}];
});
showdown.extension('issueWrap', () => [{
type: 'html',
regex: '<pre>',
replace: '<pre style="white-space: pre-wrap">',
},
{
type: 'html',
regex: '<p>',
replace: '<p style="overflow-wrap: break-word;">',
}]);
}

export default {
name: 'showdown',
initialize
initialize,
};
7 changes: 7 additions & 0 deletions config/coverage.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/* global module */

'use strict';

module.exports = {
useBabelInstrumenter: true,
};
14 changes: 7 additions & 7 deletions config/environment.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use strict';

module.exports = function(environment) {
let ENV = {
module.exports = function environmentConfig(environment) {
const ENV = {
APP: {
// Here you can pass flags/options to your application instance
// when it is created
@@ -13,18 +13,18 @@ module.exports = function(environment) {
},
EXTEND_PROTOTYPES: {
// Prevent Ember Data from overriding Date.parse.
Date: false
Date: false,
},
// LOG_STACKTRACE_ON_DEPRECATION: false,
},
environment: environment,
environment,
locationType: 'auto',

modulePrefix: 'git-task-list',
rootURL: '/',
showdown: {
simplifiedAutoLink: true
}
simplifiedAutoLink: true,
},
};

if (environment === 'development') {
@@ -49,7 +49,7 @@ module.exports = function(environment) {

if (environment === 'production') {
ENV.locationType = 'hash';
ENV.rootURL = ENV.rootURL + (process.env.PATH_PREFIX || '');
ENV.rootURL += (process.env.PATH_PREFIX || '');
}

return ENV;
4 changes: 2 additions & 2 deletions config/targets.js
Original file line number Diff line number Diff line change
@@ -3,7 +3,7 @@
const browsers = [
'last 1 Chrome versions',
'last 1 Firefox versions',
'last 1 Safari versions'
'last 1 Safari versions',
];

const isCI = !!process.env.CI;
@@ -14,5 +14,5 @@ if (isCI || isProduction) {
}

module.exports = {
browsers
browsers,
};
4 changes: 2 additions & 2 deletions ember-cli-build.js
Original file line number Diff line number Diff line change
@@ -2,8 +2,8 @@

const EmberApp = require('ember-cli/lib/broccoli/ember-app');

module.exports = function(defaults) {
let app = new EmberApp(defaults, {
module.exports = function emberCliBuild(defaults) {
const app = new EmberApp(defaults, {
// Add options here
});

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -26,7 +26,7 @@
"ember-cli": "~3.1.4",
"ember-cli-app-version": "^3.2.0",
"ember-cli-babel": "^6.6.0",
"ember-cli-code-coverage": "^0.4.2",
"ember-cli-code-coverage": "^1.0.0-beta.4",
"ember-cli-dependency-checker": "^2.0.0",
"ember-cli-eslint": "^4.2.1",
"ember-cli-htmlbars": "^2.0.1",
@@ -43,7 +43,9 @@
"ember-paper": "^1.0.0-alpha.19",
"ember-source": "~3.1.0",
"eslint": "^4.19.1",
"eslint-config-airbnb-base": "12.1.0",
"eslint-plugin-ember": "^5.0.0",
"eslint-plugin-import": "^2.7.0",
"github-api": "https://github.com/github-tools/github/archive/v3.1.0.tar.gz",
"loader.js": "^4.2.3",
"remark": "^9.0.0",
15 changes: 9 additions & 6 deletions testem.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@

'use strict';

module.exports = {
test_page: 'tests/index.html?hidepassed',
disable_watching: true,
launch_in_ci: [
'Chrome'
'Chrome',
],
launch_in_dev: [
'Chrome'
'Chrome',
],
browser_args: {
Chrome: {
@@ -17,8 +20,8 @@ module.exports = {
'--disable-gpu',
'--headless',
'--remote-debugging-port=0',
'--window-size=1440,900'
].filter(Boolean)
}
}
'--window-size=1440,900',
].filter(Boolean),
},
},
};
4 changes: 2 additions & 2 deletions tests/test-helper.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Application from '../app';
import config from '../config/environment';
import { setApplication } from '@ember/test-helpers';
import { start } from 'ember-qunit';
import Application from '../app';
import config from '../config/environment';

setApplication(Application.create(config.APP));

4 changes: 2 additions & 2 deletions tests/unit/controllers/application-test.js
Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@ moduleFor('controller:application', 'Unit | Controller | application', {
});

// Replace this with your real tests.
test('it exists', function(assert) {
let controller = this.subject();
test('it exists', function applicationControllerTest(assert) {
const controller = this.subject();
assert.ok(controller);
});
Loading