Skip to content
This repository was archived by the owner on Sep 4, 2020. It is now read-only.

Commit d4381da

Browse files
committed
first commit
0 parents  commit d4381da

File tree

19 files changed

+849
-0
lines changed

19 files changed

+849
-0
lines changed

.gitignore

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
8+
# Dependencies
9+
node_modules
10+
11+
# dotenv environment variables file
12+
.env
13+
.env.test
14+
15+
# Intermediary compilation files
16+
out
17+
18+
# Deployment files
19+
lib
20+
21+
# VS Code
22+
.vscode/*
23+
!.vscode/settings.json
24+
!.vscode/tasks.json
25+
!.vscode/launch.json
26+
!.vscode/extensions.json

.npmignore

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
.npmignore
2+
/src
3+
/test
4+
/out/test
5+
/out/**/*.map
6+
/e2e
7+
/examples
8+
9+
tsconfig.json
10+
tslint.json
11+
.travis.yml
12+
.vscode
13+
node_modules
14+
*.test.js
15+
*.js.map

.travis.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
branches:
2+
only:
3+
- master
4+
5+
language: node_js
6+
7+
node_js:
8+
- "10"
9+
10+
sudo: false
11+
12+
matrix:
13+
include:
14+
- os: linux
15+
- os: mac
16+
- os: windows
17+
18+
install:
19+
- yarn
20+
21+
script:
22+
- yarn lint
23+
- yarn compile

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Changelog
2+
3+
## 1.0.0 - 2019-03-06
4+
5+
- Initial release

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2018 Microsoft
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 117 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,117 @@
1+
# typescript-deno-plugin
2+
3+
> Deno language service plugin for TypeScript.
4+
5+
## Editor Support
6+
7+
This plugin requires TypeScript 2.3 or later. It can provide intellisense in TypeScript files within any editors that uses TypeScript to power their language features.
8+
9+
### With VS Code
10+
11+
The simplest way to use this plugin is to install the [TypeScript Deno Plugin VS Code extension](). This extension enables the plugin when using VS Code's version of TypeScript.
12+
13+
If you are using a workspace version of TypeScript, you must manually install the plugin alongside the version of TypeScript in your workspace.
14+
15+
**use npm**:
16+
17+
```bash
18+
npm install --save-dev typescript-deno-plugin typescript
19+
```
20+
21+
or **use yarn**:
22+
23+
```bash
24+
yarn add -D typescript-deno-plugin typescript
25+
```
26+
27+
Then add a `plugins` section to your [tsconfig.json](http://www.typescriptlang.org/docs/handbook/tsconfig-json.html).
28+
29+
```json
30+
{
31+
"compilerOptions": {
32+
"plugins": [
33+
{
34+
"name": "typescript-deno-plugin"
35+
}
36+
]
37+
}
38+
}
39+
```
40+
41+
Finally, run the `Select TypeScript version` command in VS Code to switch to use the workspace version of TypeScript for VS Code's JavaScript and TypeScript language support. You can find more information about managing typescript versions [in the VS Code documentation](https://code.visualstudio.com/Docs/languages/typescript#_using-newer-typescript-versions).
42+
43+
### With Visual Studio
44+
45+
This plugin works Visual Studio 2017 using the TypeScript 2.3+ SDK.
46+
47+
First install the plugin in your project.
48+
49+
**use npm**:
50+
51+
```bash
52+
npm install --save-dev typescript-deno-plugin typescript
53+
```
54+
55+
or **use yarn**:
56+
57+
```bash
58+
yarn add -D typescript-deno-plugin typescript
59+
```
60+
61+
Then add a plugins section to your [tsconfig.json](http://www.typescriptlang.org/docs/handbook/tsconfig-json.html).
62+
63+
```json
64+
{
65+
"compilerOptions": {
66+
"plugins": [
67+
{
68+
"name": "typescript-deno-plugin"
69+
}
70+
]
71+
}
72+
}
73+
```
74+
75+
Then reload your project to make sure the plugin has been loaded properly.
76+
77+
### With Atom
78+
79+
This plugin works with the [Atom TypeScript plugin](https://atom.io/packages/atom-typescript).
80+
81+
First install the plugin and a copy of TypeScript in your workspace.
82+
83+
**use npm**:
84+
85+
```bash
86+
npm install --save-dev typescript-deno-plugin typescript
87+
```
88+
89+
or **use yarn**:
90+
91+
```bash
92+
yarn add -D typescript-deno-plugin typescript
93+
```
94+
95+
Then add a plugins section to your [tsconfig.json](http://www.typescriptlang.org/docs/handbook/tsconfig-json.html).
96+
97+
```json
98+
{
99+
"compilerOptions": {
100+
"plugins": [
101+
{
102+
"name": "typescript-deno-plugin"
103+
}
104+
]
105+
}
106+
}
107+
```
108+
109+
Then restart Atom.
110+
111+
### Credits
112+
113+
- [justjavac](https://github.com/justjavac)
114+
115+
### License
116+
117+
typescript-deno-plugin is released under the MIT License. See the bundled [LICENSE](./LICENSE) file for details.

examples/.vscode/settings.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"typescript.tsdk": "node_modules/typescript/lib",
3+
"typescript.tsserver.log": "verbose",
4+
"typescript.tsserver.trace": "verbose"
5+
}

examples/package.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"private": true,
3+
"scripts": {
4+
"test": "echo \"Error: no test specified\" && exit 1"
5+
},
6+
"devDependencies": {
7+
"typescript": "^3.3.3333",
8+
"typescript-deno-plugin": "file:./.."
9+
}
10+
}

examples/src/deno.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import * as a from "https://deno.land/x/std/log/mod.ts";
2+
3+
import * as log2 from "C:/Users/troila/AppData/Local/deno/deps/https/deno.land/x/std/log/mod.ts";
4+
5+
import * as log3 from "C:\\Users\\troila\\AppData\\Local\\deno\\deps\\https\\deno.land\\x\\std\\log\\mod.ts";
6+
7+
log2.info("hello");
8+
9+
log3.debug("hello");

examples/src/hello.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export const str: string = "hello";

0 commit comments

Comments
 (0)