質問編集履歴

1

ビルド設定を追記

2019/07/26 07:12

投稿

4321bocya
4321bocya

スコア13

test CHANGED
File without changes
test CHANGED
@@ -141,3 +141,157 @@
141
141
  Uncaught TypeError: Cannot assign to read only property 'exports' of object '#<Object>'
142
142
 
143
143
  ```
144
+
145
+
146
+
147
+ ### ビルド関連
148
+
149
+ babel.config.js
150
+
151
+ ```js
152
+
153
+ module.exports = {
154
+
155
+ presets: [
156
+
157
+ '@vue/app'
158
+
159
+ ]
160
+
161
+ }
162
+
163
+ ```
164
+
165
+ tsconfig.json
166
+
167
+ ```json
168
+
169
+ {
170
+
171
+ "compilerOptions": {
172
+
173
+ "target": "esnext",
174
+
175
+ "module": "esnext",
176
+
177
+ "strict": true,
178
+
179
+ "jsx": "preserve",
180
+
181
+ "importHelpers": true,
182
+
183
+ "moduleResolution": "node",
184
+
185
+ "experimentalDecorators": true,
186
+
187
+ "esModuleInterop": true,
188
+
189
+ "allowSyntheticDefaultImports": true,
190
+
191
+ "sourceMap": true,
192
+
193
+ "baseUrl": ".",
194
+
195
+ "types": [
196
+
197
+ "webpack-env"
198
+
199
+ ],
200
+
201
+ "paths": {
202
+
203
+ "@/*": [
204
+
205
+ "src/*"
206
+
207
+ ]
208
+
209
+ },
210
+
211
+ "lib": [
212
+
213
+ "esnext",
214
+
215
+ "dom",
216
+
217
+ "dom.iterable",
218
+
219
+ "scripthost"
220
+
221
+ ]
222
+
223
+ },
224
+
225
+ "include": [
226
+
227
+ "src/**/*.ts",
228
+
229
+ "src/**/*.tsx",
230
+
231
+ "src/**/*.vue",
232
+
233
+ "tests/**/*.ts",
234
+
235
+ "tests/**/*.tsx"
236
+
237
+ ],
238
+
239
+ "exclude": [
240
+
241
+ "node_modules"
242
+
243
+ ]
244
+
245
+ }
246
+
247
+
248
+
249
+ ```
250
+
251
+ telint.json
252
+
253
+ ```json
254
+
255
+ {
256
+
257
+ "defaultSeverity": "warning",
258
+
259
+ "extends": [
260
+
261
+ "tslint:recommended"
262
+
263
+ ],
264
+
265
+ "linterOptions": {
266
+
267
+ "exclude": [
268
+
269
+ "node_modules/**"
270
+
271
+ ]
272
+
273
+ },
274
+
275
+ "rules": {
276
+
277
+ "quotemark": [true, "single"],
278
+
279
+ "indent": [true, "spaces", 2],
280
+
281
+ "interface-name": false,
282
+
283
+ "ordered-imports": false,
284
+
285
+ "object-literal-sort-keys": false,
286
+
287
+ "no-consecutive-blank-lines": false,
288
+
289
+ "max-line-length": [true, {"limit": 120, "ignore-pattern": "^import | ^export {(.*?)}"}]
290
+
291
+ }
292
+
293
+ }
294
+
295
+
296
+
297
+ ```