Hey! I'm Carlos Cuesta ๐๐ผ
I'm a Front End Engineer based in Barcelona, that loves to code and build products with a delightful user experience. I love working in between product, engineering and developer experience, currently at N26.
A Front End development Gulp.js based workflow. ๐
Home Page: https://starterkit.carloscuesta.me
License: MIT License
I'm a Front End Engineer based in Barcelona, that loves to code and build products with a delightful user experience. I love working in between product, engineering and developer experience, currently at N26.
When I run 'gulp' I get this:
revod at Revods-iMac in /Volumes/Files/Development/Frontend-Boilerplate on master โ [752f793] 12:25
> gulp
[12:26:03] Requiring external module babel-register
[12:26:05] Using gulpfile /Volumes/Files/Development/Frontend-Boilerplate/gulpfile.babel.js
[12:26:05] Starting 'default'...
[12:26:05] Starting 'templates'...
[12:26:05] Starting 'styles'...
[12:26:05] Starting 'scripts'...
[12:26:05] Starting 'images'...
[12:26:05] Finished 'images' after 971 ฮผs
[12:26:05] Starting 'serve'...
[12:26:05] Finished 'serve' after 40 ms
[12:26:05] Finished 'default' after 61 ms
[BS] Access URLs:
---------------------------------------
Local: http://localhost:3000
External: http://192.168.20.160:3000
---------------------------------------
UI: http://localhost:3001
UI External: http://192.168.20.160:3001
---------------------------------------
[BS] Serving files from: ./dist/
events.js:160
throw er; // Unhandled 'error' event
^
Error: spawn /Volumes/Files/Development/Frontend-Boilerplate/node_modules/optipng-bin/vendor/optipng ENOENT
at exports._errnoException (util.js:1026:11)
at Process.ChildProcess._handle.onexit (internal/child_process.js:193:32)
at onErrorNT (internal/child_process.js:359:16)
at _combinedTickCallback (internal/process/next_tick.js:74:11)
at process._tickCallback (internal/process/next_tick.js:98:9)
Using xo add linting to the gulpfile.js
. Create a test npm script
that runs xo and the default gulp task to check if everything is working properly and add travis-ci.
To Do:
npm test
script.Add surge integration to the gulpfile.js to provide an easy way to deploy the static dist/
folder instead of using FTP server only.
Getting an reference error error when I try to import any ES6 module in index.js
import LazyLoad from "vanilla-lazyload";
(This is a terrific project, easy to fall out of touch when you are always using the create react app cli!)
Got a problem with Gulp critical task.
Clone the repo >> run npm install >> run gulp default task >> Everything is ok and working.
then locally run command "gulp critical" just for testing
here got an erro in CLI:
TypeError: (0 , _critical2.default) is not a function
at Gulp. (/Users/MYNAME/MYFOLDER/starterkit/gulpfile.babel.js:247:9)
at module.exports
....
did i do something wrong?
or is there is a bug?
help :)
Followed the directions in README.md and I receive this error when I run gulp
:
$ gulp
[11:26:22] Failed to load external module babel/register
[11:26:22] Requiring external module babel/register
It does, however, serve the boilerplate welcome page successfully.
And npm i --save-dev babel
do not fix it.
System/Software Information
Linux NUC6i5SYK 4.15.0-20-generic #21-Ubuntu SMP Tue Apr 24 06:16:15 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
linux { http_parser: '2.8.0',
node: '10.1.0',
v8: '6.6.346.27-node.6',
uv: '1.20.2',
zlib: '1.2.11',
ares: '1.14.0',
modules: '64',
nghttp2: '1.29.0',
napi: '3',
openssl: '1.1.0h',
icu: '61.1',
unicode: '10.0',
cldr: '33.0',
tz: '2018c' }
npm -v
5.6.0
$ gulp -v
[00:27:27] Failed to load external module @babel/register
[00:27:27] Requiring external module babel-register
[00:27:27] CLI version 2.0.1
[00:27:27] Local version 3.9.1
I attempted a clean install, and retraced every step for a second time in a new directory and I am still encountering the same error.
I must note that I am new to Babel, so I have no idea whether or not this has any consequence.
Use ES6 for the gulpfile.js
To Do:
npm i --save-dev babel-core
npm i --save-dev babel-preset-es2015
gulpfile.js
=> gulpfile.babel.js
Speed up the CI build, update the package.json and move the gulp
dependencies to dependencies
instead of devDependencies
. Move xo
to devDependencies
.
Customize the install step at the .travis.yml
only installing the devDeps
npm install --only=dev
Using gulp-changed
, modify the tasks at the starterkit gulpfile.js to only build those files that have been changed.
To Do:
gulp-changed
as a devDependecy.gulpfile.js
styles
, scripts
, templates
_file.pug
includes.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.