-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add config for ts and webpack * configure webpack and babel for typescript * ci: set REUSE for json files * ci(reuse): add composer.lock to dep5
- Loading branch information
Showing
10 changed files
with
13,919 additions
and
472 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ Upstream-Name: Template App | |
Upstream-Contact: Sebastian Stöcker <[email protected]> | ||
Source: https://github.com/nextcloud/profiler | ||
|
||
Files: package-lock.json package.json composer.json composer.lock versions.json .github/renovate.json .vscode/*.json *.csv *.png | ||
Files: *.json composer.lock .github/renovate.json .vscode/*.json *.csv *.png | ||
Copyright: Sebastian Stöcker <[email protected]> | ||
License: AGPL-3.0-or-later | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// SPDX-FileCopyrightText: Sebastian Stöcker <[email protected]> | ||
// SPDX-License-Identifier: AGPL-3.0-or-later | ||
|
||
export interface Note { | ||
id: number | ||
title: string | ||
content: string | ||
} | ||
|
||
export interface AppData { | ||
notes: Array<Note> | ||
currentNoteId: number | null | ||
updating: boolean | ||
loading: boolean | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
"extends": "@vue/tsconfig/tsconfig.json", | ||
"include": ["./src/**/*.ts", "./src/**/*.vue", "./*.d.ts"], | ||
"compilerOptions": { | ||
"types": ["jest", "node", "vue", "vue-router", "@nextcloud/typings"], | ||
"target": "ESNext", | ||
"module": "esnext", | ||
// Set module resolution to bundler and `noEmit` to be able to set `allowImportingTsExtensions`, so we can import Typescript with .ts extension | ||
"moduleResolution": "bundler", | ||
"allowImportingTsExtensions": true, | ||
// "emitDeclarationOnly": true, | ||
"noEmit": true, | ||
// Allow ts to import js files | ||
"allowJs": true, | ||
"allowSyntheticDefaultImports": true, | ||
"declaration": false, | ||
"noImplicitAny": false, | ||
"resolveJsonModule": true, | ||
"strict": true, | ||
"sourceMap": true, | ||
"isolatedModules": true | ||
}, | ||
"files": ["./vue-shims.d.ts"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
// SPDX-FileCopyrightText: Sebastian Stöcker <[email protected]> | ||
// SPDX-License-Identifier: AGPL-3.0-or-later | ||
declare module "*.vue" { | ||
import Vue from "vue" | ||
export default Vue | ||
} |
Oops, something went wrong.