Skip to content

Commit

Permalink
v0.11.10 compile command fix + added some default linting rules to ne…
Browse files Browse the repository at this point in the history
…w boilerplate
  • Loading branch information
izelnakri committed Feb 13, 2020
1 parent bb81713 commit 1442987
Show file tree
Hide file tree
Showing 8 changed files with 77 additions and 4 deletions.
2 changes: 1 addition & 1 deletion ember-app-boilerplate/.eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module.exports = {
root: true,
parser: 'babel-eslint',
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 2018,
sourceType: 'module',
Expand Down
16 changes: 16 additions & 0 deletions ember-app-boilerplate/config/environment.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
export default config;

// Type declarations for
// import config from './config/environment'

// For now these need to be managed by the developer
// since different ember addons can materialize new entries.
declare const config: {
APP: any;
environment: any;
modulePrefix: string;
podModulePrefix: string;
locationType: string;
rootURL: string;
};

7 changes: 7 additions & 0 deletions ember-app-boilerplate/memserver/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
declare global {
interface Window {
Memserver?: any;
MemServer?: any;
}
}

import Memserver from "memserver/server";
import initializer from "./initializer";
import routes from "./routes";
Expand Down
11 changes: 10 additions & 1 deletion ember-app-boilerplate/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,23 @@
"mber": "{{mberVersion}}",
"eslint": "^6.8.0",
"eslint-plugin-ember": "^7.7.2",
"qunit-dom": "0.9.0"
"qunit-dom": "0.9.0",
"@types/ember": "^3.1.1",
"@types/ember-data": "^3.1.9",
"@types/ember-qunit": "^3.4.7",
"@types/ember__test-helpers": "^0.7.9",
"@types/qunit": "^2.9.0",
"@types/rsvp": "^4.0.3",
"@typescript-eslint/parser": "^2.19.2",
"typescript": "^3.7.5"
},
"fastbootDependencies": [
"crypto",
"node-fetch",
"abortcontroller-polyfill'"
],
"dependencies": {
"memserver": "2.0.7",
"abortcontroller-polyfill": "^1.4.0",
"ember-cli-fastboot": "^2.2.1",
"ember-data": "3.15.0",
Expand Down
40 changes: 40 additions & 0 deletions ember-app-boilerplate/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"compilerOptions": {
"target": "es2017",
"allowJs": true,
"moduleResolution": "node",
"allowSyntheticDefaultImports": true,
"noImplicitAny": true,
"noImplicitThis": true,
"alwaysStrict": true,
"strictNullChecks": true,
"strictPropertyInitialization": true,
"noFallthroughCasesInSwitch": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noImplicitReturns": true,
"noEmitOnError": false,
"noEmit": true,
"inlineSourceMap": true,
"inlineSources": true,
"baseUrl": ".",
"module": "es6",
"experimentalDecorators": true,
"paths": {
"{{applicationName}}/tests/*": [
"tests/*"
],
"{{applicationName}}/*": [
"src/*"
],
"*": [
"types/*"
]
}
},
"include": [
"app/**/*",
"tests/**/*",
"types/**/*"
]
}
1 change: 1 addition & 0 deletions lib/commands/compile.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import Console from '../utils/console.js';
import convertESModuletoAMD from '../transpilers/convert-es-module-to-amd.js';
import convertHBSToAMD from '../transpilers/convert-hbs-to-amd.js';
import findProjectRoot from '../utils/find-project-root.js';
import lookup from '../utils/recursive-file-lookup';

export default async function() {
return new Promise(async (resolve, reject) => {
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mber",
"version": "0.11.7",
"version": "0.11.9",
"type": "module",
"description": "Modern, fast, non-backward compatible ember-cli replacement with Module Unification RFC",
"author": "Izel Nakri",
Expand Down

0 comments on commit 1442987

Please sign in to comment.