Name | SENIOR-CITIZEN-Page |
---|---|
Description | landing page using patternLab |
Start date | 14.12.2017 |
Version | 0.0.1 |
- Download this repo:
git clone https://github.com/Max-im/senior-citizen-landing
- Go to the project directory:
cd senior-citizen-landing
- Install all App dependencies:
npm i
- for start the project in develop mode:
npm run patternlab:serve
- for building the project:
npm run patternlab:build
- webpack / patternLab ;
- ES6 ;
- jQuery / slick-carousel / magnific-popup;
- Mustashe ;
- HTML5 / BEM / OpenGraph ;
- Sass (Scss) / CSS3 / mobile-first ;
Num | Action | Hours |
---|---|---|
1. | Consider the project, create repo | 2 |
1. | Environment init, structure the project | 4 |
1. | Prepare assets for the projects | 2 |
1. | Create Header organism | 4 |
1. | Create About organism | 5 |
1. | Create Photos organism | 1 |
1. | Create Moments organism | 2 |
1. | Create Flowers organism | 3 |
1. | Create Mail organism | 1 |
1. | Create Footer organism | 3 |
1. | Create Popup organism | 3 |
1. | Code review, refactoring | 4 |
1. | Add microdata, correct readme | 1 |
1. | Deploy | 1 |
TOTAL | 36 |
- author: Maxim Pozhidaev pogidaevmo@gmail.com
- AuthorPage
- phone: +38 (050) 77-23-169
- skype: Pogidaev_mo
- social:
The webpack wrapper around Pattern Lab Node Core providing tasks to interact with the core library and move supporting frontend assets.
npm install
npm run patternlab:serve
The webpack edition comes with the following components:
patternlab-node
: GitHub, npmpatternengine-node-mustache
: GitHub, npmpattern-lab/styleguidekit-assets-default
: GitHubpattern-lab/styleguidekit-mustache-default
: GitHub
The Pattern Lab Node - webpack edition uses Node for core processing, npm to manage project dependencies, and webpack.io to run tasks and interface with the core library. Node version 4 or higher suffices. You can follow the directions for installing Node on the Node website if you haven't done so already. Installation of Node will include npm.
npm install
The pre-built project comes with the Base Starterkit for Mustache installed by default.
Please note: Pattern Lab Node uses npm to manage project dependencies. To upgrade the webpack edition or to install plug-ins you'll need to be familiar with npm.
npm
is a dependency management and package system which can pull in all of the webpack editions's dependencies for you. To accomplish this:
-
download or
git clone
this repository to an install location. -
run the following
cd install/location npm install
Running npm install
from a directory containing a package.json
file will download all dependencies defined within. The package-lock.json
file is automatically managaged everytime you add/remove/upgrade a dependency.
Most people want to run Pattern Lab Node standalone and not as a dependency. If you wish to install as a dependency you can do the following:
Use npm's install
command with an argument to install the Webpack Edition into a location of your choosing. In Terminal type:
cd install/location/
npm install edition-node-webpack
This will install the Webpack Edition into a directory called node_modules
in install/location/
.
The Pattern Lab Node - Webpack Edition ships with a base experience which serves as clean place to start from scratch with Pattern Lab. But if you want to get rolling with a starterkit of your own, or use the demo starterkit like the one on demo.patternlab.io, you can do so automatically at time of npm install
by adding your starterkit to the package.json
file.
You can also work with starterkits using the command line.
To update Pattern Lab please refer to each component's GitHub repository, and the master instructions for core. The components are listed at the top of the README.
To list all available commands type:
npm run patternlab:help
To generate the front-end for Pattern Lab type:
npm run patternlab:build
To watch for changes, re-generate the front-end, and server it via a BrowserSync server, type:
npm run patternlab:serve
Webpack dev server should open http://localhost:3000 in your browser, both host and port are configurable in the patternlab-config.json
file.
To install a specific StarterKit from GitHub type:
npm run add [starterkit-vendor/starterkit-name]
npm run patternlab:loadstarterkit --kit=[starterkit-name]
Unlike the other editions, there were a few options added just for this edition that allow for easier upgrading, and better flexibility.
You can set the url and port number in the configuration for
"server": {
"url": "http://localhost",
"port": 3000
},
In this edition, it's important to make the configuration for webpack something very easy to update, and very easy to modify. The current setting for webpack merge are described here.
You can change how it merges by changing this object in patternlab-config.json
:
"webpackMerge": {
"entry":"replace"
},
By default merge does a append
if that option works for you only set which webpack configuration you want to change. The merge setting is: smartStrategy
which is documented over on this page.
- babel-core - MIT
- babel-loader -MIT,
- babel-preset-es2015 - MIT
- copy-webpack-plugin - MIT
- event-hooks-webpack-plugin - MIT
- globby - MIT
- patternlab-node - MIT
- styleguidekit-assets-default - MIT
- styleguidekit-mustache-default - MIT
- webpack - MIT
- webpack-config-utils - MIT
- webpack-dev-server - MIT
- webpack-merge - MIT
Contributor | Message / How to Reach |
---|---|
@paintedbicycle | Paul Wright - https://paintedbicycle.com |
@rgualberto | "A huge thank you to a incredible developer Rodrigo Gualberto for all of his hard work, dedication, and support from the start of project." |