Skip to content

Commit ffbba7c

Browse files
authored
Merge branch 'dapr:master' into add_dapr_docs
2 parents 3756cee + 8eab134 commit ffbba7c

File tree

214 files changed

+10164
-28965
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

214 files changed

+10164
-28965
lines changed

.devcontainer/Dockerfile

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
#-------------------------------------------------------------------------------------------------------------
2+
# Copyright (c) Microsoft Corporation and Dapr Contributors. All rights reserved.
3+
# Licensed under the MIT License. See https://go.microsoft.com/fwlink/?linkid=2090316 for license information.
4+
#-------------------------------------------------------------------------------------------------------------
5+
6+
FROM ubuntu:20.04
7+
8+
# Avoid warnings by switching to noninteractive
9+
ENV DEBIAN_FRONTEND=noninteractive
10+
11+
# This Dockerfile adds a non-root user with sudo access. Use the "remoteUser"
12+
# property in devcontainer.json to use it. On Linux, the container user's GID/UIDs
13+
# will be updated to match your local UID/GID (when using the dockerFile property).
14+
# See https://aka.ms/vscode-remote/containers/non-root-user for details.
15+
ARG USERNAME=vscode
16+
ARG USER_UID=1000
17+
ARG USER_GID=$USER_UID
18+
19+
# Uncomment the following COPY line and the corresponding lines in the `RUN` command if you wish to
20+
# include your requirements in the image itself. It is suggested that you only do this if your
21+
# requirements rarely (if ever) change.
22+
# COPY requirements.txt /tmp/pip-tmp/
23+
24+
# Configure apt and install packages
25+
RUN apt-get update \
26+
&& apt-get -y install --no-install-recommends apt-utils dialog wget curl 2>&1 \
27+
#
28+
# Verify git, process tools, lsb-release (common in install instructions for CLIs) installed
29+
&& apt-get -y install git openssh-client less iproute2 procps lsb-release \
30+
#
31+
# Install Docker CE CLI
32+
&& apt-get install -y apt-transport-https ca-certificates curl gnupg-agent software-properties-common lsb-release \
33+
&& curl -fsSL https://download.docker.com/linux/$(lsb_release -is | tr '[:upper:]' '[:lower:]')/gpg | (OUT=$(apt-key add - 2>&1) || echo $OUT) \
34+
&& add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/$(lsb_release -is | tr '[:upper:]' '[:lower:]') $(lsb_release -cs) stable" \
35+
&& apt-get update \
36+
&& apt-get install -y docker-ce-cli \
37+
#
38+
# Install NVM
39+
&& curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | bash \
40+
&& export NVM_DIR="$HOME/.nvm" \
41+
&& \. "$NVM_DIR/nvm.sh" \
42+
#
43+
# Install Node 14.16 (latest LTS)
44+
&& nvm install v14.16.1 \
45+
#
46+
# Install Dapr CLI
47+
&& wget -q https://raw.githubusercontent.com/dapr/cli/master/install/install.sh -O - | /bin/bash \
48+
# Create a non-root user to use if preferred - see https://aka.ms/vscode-remote/containers/non-root-user.
49+
&& groupadd --gid $USER_GID $USERNAME \
50+
&& useradd -s /bin/bash --uid $USER_UID --gid $USER_GID -m $USERNAME \
51+
# [Optional] Add sudo support for the non-root user
52+
&& apt-get install -y sudo \
53+
&& echo $USERNAME ALL=\(root\) NOPASSWD:ALL > /etc/sudoers.d/$USERNAME\
54+
&& chmod 0440 /etc/sudoers.d/$USERNAME \
55+
#
56+
# Clean up
57+
&& apt-get autoremove -y \
58+
&& apt-get clean -y \
59+
&& rm -rf /var/lib/apt/lists/*
60+
61+
# Switch back to dialog for any ad-hoc use of apt-get
62+
ENV DEBIAN_FRONTEND=dialog

.devcontainer/devcontainer.json

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
// For format details, see https://aka.ms/vscode-remote/devcontainer.json.
2+
{
3+
"name": "Dapr - JS SDK",
4+
"context": "..",
5+
"dockerFile": "Dockerfile",
6+
7+
// Set *default* container specific settings.json values on container create.
8+
"settings": {
9+
"terminal.integrated.profiles.linux": {
10+
"bash": {
11+
"path": "bash"
12+
},
13+
"zsh": {
14+
"path": "zsh"
15+
},
16+
"fish": {
17+
"path": "fish"
18+
},
19+
"tmux": {
20+
"path": "tmux",
21+
"icon": "terminal-tmux"
22+
},
23+
"pwsh": {
24+
"path": "pwsh",
25+
"icon": "terminal-powershell"
26+
}
27+
},
28+
"terminal.integrated.defaultProfile.linux": "bash",
29+
},
30+
31+
// Add the IDs of extensions you want installed when the container is created.
32+
"extensions": [
33+
"ms-azuretools.vscode-dapr"
34+
],
35+
36+
"mounts": [
37+
"source=/var/run/docker.sock,target=/var/run/docker.sock,type=bind",
38+
],
39+
40+
"postCreateCommand": "npm install",
41+
42+
// Use 'forwardPorts' to make a list of ports inside the container available locally.
43+
// "forwardPorts": [],
44+
// Uncomment to connect as a non-root user. See https://aka.ms/vscode-remote/containers/non-root.
45+
// "remoteUser": "vscode"
46+
}

.eslintignore

Lines changed: 0 additions & 3 deletions
This file was deleted.

.eslintrc.json

Lines changed: 0 additions & 20 deletions
This file was deleted.

.gitignore

Lines changed: 85 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,30 @@
1+
### vscode ###
2+
.vscode/*
3+
!.vscode/settings.json
4+
!.vscode/tasks.json
5+
!.vscode/launch.json
6+
!.vscode/extensions.json
7+
*.code-workspace
8+
9+
### DotnetCore ###
10+
# .NET Core build folders
11+
bin/
12+
obj/
13+
14+
# Common node modules locations
15+
/node_modules
16+
/wwwroot/node_modules
17+
18+
### Node ###
119
# Logs
220
logs
321
*.log
422
npm-debug.log*
523
yarn-debug.log*
624
yarn-error.log*
7-
8-
# components generated by dapr CLI
9-
/**/components/*
10-
25+
lerna-debug.log*
26+
# Diagnostic reports (https://nodejs.org/api/report.html)
27+
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
1128

1229
# Runtime data
1330
pids
@@ -20,11 +37,12 @@ lib-cov
2037

2138
# Coverage directory used by tools like istanbul
2239
coverage
40+
*.lcov
2341

2442
# nyc test coverage
2543
.nyc_output
2644

27-
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
45+
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
2846
.grunt
2947

3048
# Bower dependency directory (https://bower.io/)
@@ -39,17 +57,28 @@ build/Release
3957
# Dependency directories
4058
node_modules/
4159
jspm_packages/
42-
**/node_modules/
4360

4461
# TypeScript v1 declaration files
4562
typings/
4663

64+
# TypeScript cache
65+
*.tsbuildinfo
66+
4767
# Optional npm cache directory
4868
.npm
4969

5070
# Optional eslint cache
5171
.eslintcache
5272

73+
# Optional stylelint cache
74+
.stylelintcache
75+
76+
# Microbundle cache
77+
.rpt2_cache/
78+
.rts2_cache_cjs/
79+
.rts2_cache_es/
80+
.rts2_cache_umd/
81+
5382
# Optional REPL history
5483
.node_repl_history
5584

@@ -61,6 +90,55 @@ typings/
6190

6291
# dotenv environment variables file
6392
.env
93+
.env.test
94+
.env*.local
6495

65-
# next.js build output
96+
# parcel-bundler cache (https://parceljs.org/)
97+
.cache
98+
.parcel-cache
99+
100+
# Next.js build output
66101
.next
102+
103+
# Nuxt.js build / generate output
104+
.nuxt
105+
dist
106+
107+
# Storybook build outputs
108+
.out
109+
.storybook-out
110+
storybook-static
111+
112+
# rollup.js default build output
113+
dist/
114+
115+
# Gatsby files
116+
.cache/
117+
# Comment in the public line in if your project uses Gatsby and not Next.js
118+
# https://nextjs.org/blog/next-9-1#public-directory-support
119+
# public
120+
121+
# vuepress build output
122+
.vuepress/dist
123+
124+
# Serverless directories
125+
.serverless/
126+
127+
# FuseBox cache
128+
.fusebox/
129+
130+
# DynamoDB Local files
131+
.dynamodb/
132+
133+
# TernJS port file
134+
.tern-port
135+
136+
# Stores VSCode versions used for testing VSCode extensions
137+
.vscode-test
138+
139+
# Temporary folders
140+
tmp/
141+
temp/
142+
143+
# dapr-js-sdk
144+
build/

.npmignore

Lines changed: 0 additions & 2 deletions
This file was deleted.

.prettierrc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"printWidth": 120,
3+
"trailingComma": "all",
4+
"singleQuote": true
5+
}

0 commit comments

Comments
 (0)