A simple starterkit boilerplate that I use to realize my front end static development projects. If you have comments or suggestions feel free to give me a shout on Twitter! Also checkout the yeoman generator-startekit.
If you want to use the deploy task, you will have to edit the gulpfile.js lines between 65-69 with your ftp connection info: host | user | password. If you want to use Surge instead of FTP, just setup a domain name in the surgeInfo.domain
Once you setup ftpCredentials, you will have to choose a directory of your server where the deploy will go: ftpUploadsDir
Now you will be able to use gulp deploy and your /dist/ folder will go up to your ftp server!
Use npm run to list the gulp tasks available. You can run the tasks too using the npm run scriptname that is on the list.
请发表评论