clean typescript sample
This commit is contained in:
Родитель
4ced128f8e
Коммит
75a9a69ddb
|
@ -11,4 +11,4 @@
|
|||
* [Visual Studio Code's Markdown Support](http://code.visualstudio.com/docs/languages/markdown)
|
||||
* [Markdown Syntax Reference](http://daringfireball.net)
|
||||
|
||||
** Enjoy!**
|
||||
**Enjoy!**
|
|
@ -32,7 +32,6 @@ gulp.task('browser-sync', ['nodemon', 'watch'], function () {
|
|||
browserSync.init(null, {
|
||||
proxy: "http://localhost:3000",
|
||||
files: ["src/public/**/*.*", "src/views/**/*.*"],
|
||||
browser: "google chrome",
|
||||
port: 7000,
|
||||
});
|
||||
});
|
||||
|
|
|
@ -8,25 +8,24 @@
|
|||
"test": "mocha ./tests/test.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"body-parser": "~1.12.0",
|
||||
"cookie-parser": "~1.3.4",
|
||||
"debug": "~2.1.1",
|
||||
"express": "~4.12.2",
|
||||
"jade": "~1.9.2",
|
||||
"less-middleware": "~2.0.1",
|
||||
"morgan": "~1.5.1",
|
||||
"serve-favicon": "~2.2.0"
|
||||
"body-parser": "~1.13.2",
|
||||
"cookie-parser": "~1.3.5",
|
||||
"debug": "~2.2.0",
|
||||
"express": "~4.13.1",
|
||||
"jade": "~1.11.0",
|
||||
"morgan": "~1.6.1",
|
||||
"serve-favicon": "~2.3.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"browser-sync": "^2.8.2",
|
||||
"gulp": "^3.9.0",
|
||||
"gulp-less": "^3.0.3",
|
||||
"gulp-mocha": "^2.1.2",
|
||||
"gulp-nodemon": "^2.0.3",
|
||||
"gulp-tsb": "^1.4.4",
|
||||
"marked": "^0.3.5",
|
||||
"mocha": "^2.2.5",
|
||||
"nodemon": "^1.4.0",
|
||||
"typescript": "^1.8.10"
|
||||
"browser-sync": "^2.18.8",
|
||||
"gulp": "^3.9.1",
|
||||
"gulp-less": "^3.3.0",
|
||||
"gulp-mocha": "^4.1.0",
|
||||
"gulp-nodemon": "^2.2.1",
|
||||
"gulp-tsb": "^2.0.3",
|
||||
"marked": "^0.3.6",
|
||||
"mocha": "^3.2.0",
|
||||
"nodemon": "^1.11.0",
|
||||
"typescript": "^2.2.1"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -4,6 +4,6 @@ block content
|
|||
h1 Visual Studio Code - Starter Express Application (TypeScript)
|
||||
p Welcome to #{title}
|
||||
|
||||
| For more information, please see the
|
||||
a(href='/quickstart') Quick Start
|
||||
| For more information, please visit
|
||||
a(href='https://code.visualstudio.com/docs') https://code.visualstudio.com!
|
||||
|.
|
|
@ -1,23 +0,0 @@
|
|||
<!--
|
||||
Press Ctrl+Shift+V (Windows, Linux) or Cmd+Shift+V (OSX) to preview this document!
|
||||
-->
|
||||
|
||||
# Getting Started with Node, Express and Visual Studio Code
|
||||
This is a sample customized for development using [Visual Studio Code](http://code.visualstudio.com) and [TypeScript](http://www.typescriptlang.org/).
|
||||
|
||||
This sample illustrates:
|
||||
- **Great IntelliSense**: [TypeScript definition files](https://github.com/borisyankov/DefinitelyTyped) provide IntelliSense for Node, Express, Mocha, and Gulp. Use [tsd](http://definitelytyped.org/tsd/) to install additional typings.
|
||||
|
||||
- **Iterative Development**: Use [BrowserSync](http://www.browsersync.io/) and [NodeMon](http://nodemon.io/) to automatically recycle your client and server while developing in Visual Studio Code. Run `gulp browser-sync` from the Terminal.
|
||||
|
||||
- **Build**: Compile your [TypeScript](http://typescriptlang.org/) files to JavaScript by pressing `Ctrl+Shift+B` (Windows, Linux) or `Cmd+Shift+B` (OS X). You can also let gulp watch for file changes and automatically build by running `gulp watch` from the terminal.
|
||||
|
||||
- **StyleSheets**: [LESS](http://lesscss.org/) is a CSS pre-processor that extends CSS to allow for typical programming construcs such as variables, mixins, and functions. To compile your .less file to .css press `Ctrl+P` (Windows, Linux) or `Cmd+P` (OS X) to bring up the Command Palette, and then type in `task less`.
|
||||
|
||||
- **Test**: [Mocha](http://mochajs.org/) is a popular test framework for Node applications. Press `Ctrl+Shift+T` (Windows, Linux) or `Cmd+Shift+T` (OS X) to run the tests.
|
||||
|
||||
- **Debugging**: [Launch Configurations](https://code.visualstudio.com/Docs/debugging) are used for running your application under the debugger as well as launching the Mocha tests under the debugger. Open the Debug viewlet, select `Launch ./src/www` and press `F5` to run the application.
|
||||
|
||||
- **Integration with existing tools**: [Task Configurations](https://code.visualstudio.com/Docs/tasks) allow for control over how individual [Gulp](http://gulpjs.com/) tasks are launched. Run individual tasks from the Command Palette by pressing `Ctrl+P` (Windows, Linux) or `Cmd+P` (OS X), type in `task` and then press `space` to see all of the tasks in the provided `gulpfile.js`.
|
||||
|
||||
For more information, please visit us at [code.visualstudio.com](http://code.visualstudio.com), read the [documentation](http://code.visualstudio.com/docs) and follow us on twitter [@code](https://twitter.com/code).
|
Загрузка…
Ссылка в новой задаче