@unic/estatico-boilerplate1.5.5 • Public • Published
Demo repo based on old Estático. Tasks were completely replaced with new ones and the source files were adapted where necessary.
# Use git to get boilerplate subpackage from monorepo# We are only interested in the current directory, so we can get rid of everthing else via `git filter-branch`git clone https://github.com/unic/estatico-nou.gitcd estatico-nougit filter-branch --subdirectory-filter packages/estatico-boilerplate# Optionally use Docker container, see below# Install correct node versionnvm install# Install npm packagesnpm install
- Run default task, building everything and starting web server:
$ npm run gulp -- --dev --watch
- Run specific task:
$ npm run html -- --dev
gulpfile.js for details.
# Create image (only initially and after changes to the Dockerfile)docker build -t estatico .# Start container and mount project directorydocker container run -it -p 9000:9000 -p 35729:35729 -v $(pwd):/app estatico /bin/bash# Continue above (nvm is preinstalled in the box)# After installing the correct node version via nvm, it might be helpful to commit this new state so it is persisted for the next run:# docker commit CONTAINER_ID estatico