This is a pre-configured gulp setup for getting up and running quickly with either a new or existing typescript or ES2017 node.js application (both are supported).
This package has a bunch of dependencies but none of them will run in your production code.
Standalone, this package is designed to be imported into an existing application. If you are starting a new application, feel free to use the associated yeoman generator to scaffold a brand new web application for you, using this package.
An important assumption in using this tool is that is that your code already is(or you're willing to make it) build-friendly, such as in a structure similar to below.src/ <- where you house your source code, (typecsript, es7, etc - stuff that wont work in browser)server/app.jsclient/lib/ <- where your files get built to, so that you can run them in developmentdist/ <- where built/minified files go for production deployment.gitignore (required).gulpfile.js.package.json...etcThe file paths above are configurable, however, we're also assuming there's a separation between clientand server code for your app. If you are looking for something isomorphic or universal, this probably isn'tyour best choice of build configuration.
$ npm i --save-dev gulp@github:gulpjs/gulp#40 gulp-build-config
Create a gulpfile (gulpfile.js) and add the below code into it.
// gulpfile.jsconst gulp = ;const GulpConfig = ;const gulpConfig = gulp;gulpConfig;// end gulpfile.js// add npm script --> "dev": "gulp dev"// run your code$ npm run dev// test$ gulp test// test watch$ gulp watch// deploy to npm (be careful!)$ npm publish
These come out of the box. Namespacing is available via configuration. From cli, type: gulp [command]
How to persionalize:
All configuration is done by using the provided setter API. Do not overwrite!
// setter apigulpConfig;// example:gulpConfig;
Options Have fun!
$ npm i$ typings i$ npm run dev
Stuff you can help with.
react-slingshot- Corey House