Gulp based project skeleton with modular tasks.
yarn
yarn start
yarn build:prod
/webpack.config.js
, /webpack.config.prod.js
& /gulpset/tasks/scripts/index.js
/.eslintrc
: modify @fourdigit/eslint-config-fourdigit/esnext
=> @fourdigit/eslint-config-fourdigit/base
copy
task (add js
ext)scripts
task from gulpfile.js
Gulpset has 2 webpack settings & corresponding 2 gulp tasks.
webpack-watch
mode: development
process.env.NODE_ENV === 'development'
webpack
mode: production
=> webpack 4 automatically optimize your code for production.process.env.NODE_ENV === 'production'
=> you can use this environmental variable for environmental settings e.g. API key, endpoints./gulpset/tasks/scss/index.js
/src/assets/css/app.scss
/gulpset/tasks/ejs/index.js
/src/_utils.ejs
/gulpset/tasks/deployrsync/index.js
gulpset.confs.deployrsync.options.hostname
ssh-add ~/.ssh/xxxxxxxx_rsa
gulp deployrsync
$ base64 gulpset_rsa| pbcopy
PRIVATE_KEY
(make sure the to enable checkbox of "encrypt") and TARGET_HOST
develop
branch will be deployed to TARGET_HOST
branches
section on bitbucket-pipelines.yml