Move node server code to own directory. Setup shell gulp project to compile TypeScript
This commit is contained in:
Родитель
de83d95818
Коммит
c77bd4afc6
37
README.md
37
README.md
|
@ -1,37 +0,0 @@
|
|||
# You've added your first ReadMe file!
|
||||
A README.md file is intended to quickly orient readers to what your project can do. New to Markdown? [Learn more](https://go.microsoft.com/fwlink/p/?LinkId=524306&clcid=0x409)
|
||||
|
||||
## Edit this ReadMe and commit your change to a topic branch
|
||||
In Git, branches are cheap. You should use them whenever you're making changes to your repository. Edit this file by clicking on the edit icon.
|
||||
|
||||
Then make some changes to this ReadMe file.
|
||||
|
||||
> Make some **edits** to _this_ blockquote
|
||||
|
||||
When you are done, click the dropdown arrow next to the save button - that will allow you to commit your changes to a new branch.
|
||||
|
||||
## Create a pull request to contribute your changes back into master
|
||||
Pull requests are the way to move changes from a topic branch back into the master branch.
|
||||
|
||||
Click on the **Pull Requests** page in the **CODE** hub, then click "New Pull Request" to create a new pull request from your topic branch to the master branch.
|
||||
|
||||
When you are done adding details, click "Create Pull request". Once a pull request is sent, reviewers can see your changes, recommend modifications, or even push follow-up commits.
|
||||
|
||||
First time creating a pull request? [Learn more](https://go.microsoft.com/fwlink/?LinkId=533211&clcid=0x409)
|
||||
|
||||
### Congratulations! You've completed the grand tour of the CODE hub!
|
||||
|
||||
# Next steps
|
||||
|
||||
If you haven't already done so, [install Git](https://git-scm.com/downloads) (as well as [Git Credential Manager](https://java.visualstudio.com/Downloads/gitcredentialmanager/Index) for Linux or Mac OS)
|
||||
|
||||
Choose and install one of these supported IDEs:
|
||||
* [Visual Studio](https://go.microsoft.com/fwlink/?LinkId=309297&clcid=0x409&slcid=0x409)
|
||||
* [Android Studio](https://developer.android.com/studio) (with [Team Services Plugin](https://java.visualstudio.com/Downloads/intellijplugin/Index))
|
||||
* [Eclipse](https://www.eclipse.org/downloads) (with [Team Explorer Everywhere](https://java.visualstudio.com/Downloads/eclipseplugin/Index))
|
||||
* [IntelliJ IDEA](https://www.jetbrains.com/idea/download) (with [Team Services Plugin](https://java.visualstudio.com/Downloads/intellijplugin/Index))
|
||||
* [Visual Studio Code](https://code.visualstudio.com/Download) (with [Team Services Extension](https://java.visualstudio.com/Downloads/visualstudiocode/Index))
|
||||
|
||||
Then clone this repo to your local machine to get started with your own project.
|
||||
|
||||
Happy coding!
|
|
@ -0,0 +1,2 @@
|
|||
dist/
|
||||
node_modules/
|
|
@ -0,0 +1,10 @@
|
|||
# Office Network
|
||||
Getting started
|
||||
|
||||
Requirements
|
||||
* Node.js
|
||||
|
||||
Project setup
|
||||
* `npm install -g typescript gulp-cli`
|
||||
* `npm install`
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
var gulp = require("gulp");
|
||||
var ts = require("gulp-typescript");
|
||||
var tsProject = ts.createProject("tsconfig.json");
|
||||
|
||||
gulp.task("default", function () {
|
||||
return tsProject.src()
|
||||
.pipe(ts(tsProject))
|
||||
.js.pipe(gulp.dest("dist"));
|
||||
});
|
|
@ -0,0 +1,18 @@
|
|||
{
|
||||
"name": "officenet",
|
||||
"version": "1.0.0",
|
||||
"description": "A README.md file is intended to quickly orient readers to what your project can do. New to Markdown? [Learn more](https://go.microsoft.com/fwlink/p/?LinkId=524306&clcid=0x409)",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://offnet.visualstudio.com/_git/officenet"
|
||||
},
|
||||
"author": "",
|
||||
"devDependencies": {
|
||||
"gulp": "^3.9.1",
|
||||
"gulp-typescript": "^2.13.6"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,5 @@
|
|||
function hello(compiler: string) {
|
||||
console.log(`Hello from ${compiler}`);
|
||||
}
|
||||
|
||||
hello("TypeScript");
|
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
"files": [
|
||||
"src/index.ts"
|
||||
],
|
||||
"compilerOptions": {
|
||||
"target": "es5",
|
||||
"module": "commonjs",
|
||||
"moduleResolution": "node"
|
||||
}
|
||||
}
|
Загрузка…
Ссылка в новой задаче