Skip to content

Instantly share code, notes, and snippets.

Avatar

Dariusz Luber DariuszLuber

View GitHub Profile
@DariuszLuber
DariuszLuber / package.json
Last active Sep 27, 2018
WEBPACK 4 CONFIG - ES6
View package.json
{
"name": "webpacka-init",
"version": "1.0.0",
"description": "<img alt=\"Logo\" src=\"http://coderslab.pl/svg/logo-coderslab.svg\" width=\"400\">",
"main": "index.js",
"scripts": {
"watch": "node_modules/.bin/webpack -w",
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
@DariuszLuber
DariuszLuber / api-platform
Created Aug 30, 2017
api-platform - swagger anotation
View api-platform
@ApiResource(
attributes={
"filters"={"apiOrder", "searchFilter"},
"pagination_items_per_page"=50,
"normalization_context"={"groups"={"drugs_unified"}},
},
itemOperations={
"get"={"method"="GET"},
"put"={"method"="PUT"},
"special"={
@DariuszLuber
DariuszLuber / AWS+Docker Swarm.md
Last active Jul 7, 2017
AWS - create Docker Swarm
View AWS+Docker Swarm.md

Script to start AWS EC2 with Docker and commands to start SWARM and Jenkinks for CI

@DariuszLuber
DariuszLuber / Debian-Jessie-Docker-install.md
Last active Jul 9, 2017
Debian- Jessie install Docker script
View Debian-Jessie-Docker-install.md

Script to install Docker on Debian Jessie

View CL-Gulp-Sass-Project-Init.md

Init files for CodersLab students

View Webpack config for Sass+ES6+LiveReload.md

#Webpack + ES6 + Sass + Live reload

Basic example of webpack config to work with sass, es6 and live reload.

To get live reload working you need:

  • get package.json and webpack.config.js to your project foldee
  • run in terminal npm install
  • add this script <script src="http://localhost:35729/livereload.js"></script> to your index.html
  • create src folder and src files
  • run in terminal webpack