-
Notifications
You must be signed in to change notification settings - Fork 0
/
TODO
executable file
·142 lines (126 loc) · 7.5 KB
/
TODO
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
TODO: remove intercept-stdout module
TODO: check if whatwg-fetch is removable from devDependencies
TODO: check if all babel plugins needed
TODO: add ember-test-helpers addon-test-helpers types to tsconfig
TODO: babel6-plugin-strip-heimdall -> probably can remove
TODO: babelify probably can remove, check cheerio, chokidar, klaw
Adapter and Serializer in new ember + documentation expressions
only Serializer EmbeddedRecordsMixin solution is needed
- there could be an issue with eslint configs
- qunit getTestMetadata has direct dep to ember/@test-helpers.
Which has questionable dependency to ember-test-waiters addon
- babel-plugin-filter-imports upgrade breaks tests(probably just size increase)
- upgrade fastboot
- research further with ember-packages repo
- add code coverage
- add directory and npm install check
- maybe upgrade fastboot
- add unit tests for resolvePortNumberFor + add e2e test for mber s + mber t while port is in use(so it changes)
configuration file: .mber
display the error html page for hbs errors, css errors: js syntax errors
- we need to inject fastboot still to vendor.js because of fastboot service injections
- add prember functionality?
styleguide TODO:
- display autogenerate services, routes, components, models, helpers, utils(modules)
- right side navigation!
- make all h expect h1 tags linkable in docs-viewer-page
- search
- keyboard shortcuts
might be missing babel deps:
"babel6-plugin-strip-class-callcheck": "^6.0.0",
ember-data prod might have polymorphic issue
make <!-- EMBER_CLI_FASTBOOT_TITLE --><!-- EMBER_CLI_FASTBOOT_HEAD --> optional
add qunit-dom
use streams instead of fs.readFile and fs.writeFile
Testing todo:
- heavy fastboot middleware tests
- inject ember-devtools to development(?)
- add linter (js + hbs)
- rootURL in the test
All I need:
- investigate how people use engines
addons to investigate:
- ember-cli-sri, https://github.com/jonathanKingston/broccoli-sri-hash/blob/master/index.js adds integrity
- ember-cli-csp
// add generators
CDN
add eslint-plugin-ember + eslint
- write appTransform tests
- utils/fastboot-express-middleware unit tests are missing
- add backend-test environment with tests
ERROR Structures:
build-css:
// { Error: Invalid CSS after "": expected 1 selector or at-rule, was ".this-class-has-err"
// at options.error (/Users/izelnakri/mber-lib/node_modules/node-sass/lib/index.js:291:26)
// status: 1,
// file: 'stdin',
// line: 1,
// column: 1,
// message:
// 'Invalid CSS after "": expected 1 selector or at-rule, was ".this-class-has-err"',
// formatted:
// 'Error: Invalid CSS after "": expected 1 selector or at-rule, was ".this-class-has-err"\n on line 1 of stdin\n>> \n\n ^\n' }
build-application:
js:
{ SyntaxError: unknown: Unexpected token, expected , (3:33)
1 |
2 | export default {
> 3 | JavaScript: 'sometimes sucks';
| ^
4 | }
5 |
at Parser.pp$5.raise (/Users/izelnakri/mber-lib/node_modules/babylon/lib/index.js:4454:13)
at Parser.pp.unexpected (/Users/izelnakri/mber-lib/node_modules/babylon/lib/index.js:1761:8)
at Parser.pp.expect (/Users/izelnakri/mber-lib/node_modules/babylon/lib/index.js:1749:33)
at Parser.pp$3.parseObj (/Users/izelnakri/mber-lib/node_modules/babylon/lib/index.js:3978:12)
at Parser.pp$3.parseExprAtom (/Users/izelnakri/mber-lib/node_modules/babylon/lib/index.js:3719:19)
at Parser.pp$3.parseExprSubscripts (/Users/izelnakri/mber-lib/node_modules/babylon/lib/index.js:3494:19)
at Parser.pp$3.parseMaybeUnary (/Users/izelnakri/mber-lib/node_modules/babylon/lib/index.js:3474:19)
at Parser.pp$3.parseExprOps (/Users/izelnakri/mber-lib/node_modules/babylon/lib/index.js:3404:19)
at Parser.pp$3.parseMaybeConditional (/Users/izelnakri/mber-lib/node_modules/babylon/lib/index.js:3381:19)
at Parser.pp$3.parseMaybeAssign (/Users/izelnakri/mber-lib/node_modules/babylon/lib/index.js:3344:19)
pos: 53,
loc: Position { line: 3, column: 33 },
_babel: true,
codeFrame:
'\u001b[0m \u001b[90m 1 | \u001b[39m\n \u001b[90m 2 | \u001b[39m \u001b[36mexport\u001b[39m \u001b[36mdefault\u001b[39m {\n\u001b[31m\u001b[1m>\u001b[22m\u001b[39m\u001b[90m 3 | \u001b[39m \u001b[33mJavaScript\u001b[39m\u001b[33m:\u001b[39m \u001b[32m\'sometimes sucks\'\u001b[39m\u001b[33m;\u001b[39m\n \u001b[90m | \u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[39m\n \u001b[90m 4 | \u001b[39m }\n \u001b[90m 5 | \u001b[39m\u001b[0m' }
hbs:
{ Error: Unclosed element `h1` (on line 2).
at new SyntaxError (/Users/izelnakri/mber-lib/vendor/ember-template-compiler.js:2854:31)
at TokenizerEventHandlers.HandlebarsNodeVisitors.Program (/Users/izelnakri/mber-lib/vendor/ember-template-compiler.js:3063:23)
at TokenizerEventHandlers.Parser.acceptNode (/Users/izelnakri/mber-lib/vendor/ember-template-compiler.js:2946:35)
at preprocess (/Users/izelnakri/mber-lib/vendor/ember-template-compiler.js:4125:56)
at exports.precompile (/Users/izelnakri/mber-lib/vendor/ember-template-compiler.js:2563:42)
at Object.exports.default (/Users/izelnakri/mber-lib/vendor/ember-template-compiler.js:6154:37)
at default (/Users/izelnakri/mber-lib/lib/transpilers/convert-hbs-to-amd.js:4:36)
at fs.readFile.then (/Users/izelnakri/mber-lib/lib/builders/build-application.js:95:24)
message: 'Unclosed element `h1` (on line 2).',
stack:
'Error: Unclosed element `h1` (on line 2).\n at new SyntaxError (/Users/izelnakri/mber-lib/vendor/ember-template-compiler.js:2854:31)\n at TokenizerEventHandlers.HandlebarsNodeVisitors.Program (/Users/izelnakri/mber-lib/vendor/ember-template-compiler.js:3063:23)\n at TokenizerEventHandlers.Parser.acceptNode (/Users/izelnakri/mber-lib/vendor/ember-template-compiler.js:2946:35)\n at preprocess (/Users/izelnakri/mber-lib/vendor/ember-template-compiler.js:4125:56)\n at exports.precompile (/Users/izelnakri/mber-lib/vendor/ember-template-compiler.js:2563:42)\n at Object.exports.default (/Users/izelnakri/mber-lib/vendor/ember-template-compiler.js:6154:37)\n at default (/Users/izelnakri/mber-lib/lib/transpilers/convert-hbs-to-amd.js:4:36)\n at fs.readFile.then (/Users/izelnakri/mber-lib/lib/builders/build-application.js:95:24)',
location:
{ source: null,
start: { line: 2, column: 0 },
end: { line: undefined, column: undefined } } }
anotherHBSERROR:
Error: Parse error on line 3:
...h1>This is mee</h1>{{/another-component
----------------------^
Expecting 'EOF', got 'OPEN_ENDBLOCK'
at Parser.parseError (/Users/izelnakri/mber-lib/vendor/ember-template-compiler.js:7996:15)
at Parser.parse (/Users/izelnakri/mber-lib/vendor/ember-template-compiler.js:8060:20)
at exports.parse (/Users/izelnakri/mber-lib/vendor/ember-template-compiler.js:9106:36)
at preprocess (/Users/izelnakri/mber-lib/vendor/ember-template-compiler.js:4119:75)
at exports.precompile (/Users/izelnakri/mber-lib/vendor/ember-template-compiler.js:2563:42)
at Object.exports.default (/Users/izelnakri/mber-lib/vendor/ember-template-compiler.js:6154:37)
at default (/Users/izelnakri/mber-lib/lib/transpilers/convert-hbs-to-amd.js:4:36)
at fs.readFile.then (/Users/izelnakri/mber-lib/lib/builders/build-application.js:95:24)
// function utf16StringToSharedArrayBuffer(str) {
// // 2 bytes for each char
// const buffer = new SharedArrayBuffer(2 * str.length);
// const arrayBuffer = new Uint16Array(buffer);
// for (let i = 0, strLen = str.length; i < strLen; i++) {
// arrayBuffer[i] = str.charCodeAt(i);
// }
//
// return { array: arrayBuffer, buffer: buffer };
// }