The markup for subsequent integration with CMS. Contains raw HTML files and other resources.
Homepage Repository npm Download
npm install teplotech-markup@1.0.2
Before you start deployment these tools have to be installed on your system globally:
curl -sL https://deb.nodesource.com/setup_4.x | bash -
apt-get install -y nodejs
$ npm install -g bower
$ npm install --global gulp-cli
$ npm install webpack -g
Execute the following commands in your terminal:
$ cd YOUR_PROJECT_DIR
$ npm init
$ npm install teplotech-markup --save
This will initialize your project (e.g. a Wordpress theme) as an NPM packet and install the teplotech-markup
packet as a dependency in node_modules
subfolder of YOUR_PROJECT_DIR
.
NOTE. When a new version of the package is available you can update your copy by typing:
$ npm update
ATTENTION Make sure all the tools mentioned above have been installed before executing the following commands!
$ git clone git@gitlab.com:coderlex/teplotech-markup.git
$ cd ./teplotech-markup
$ npm install
$ bower install
$ gulp
Some useful gulp tasks:
$ gulp sprite
$ gulp base64
$ gulp sass
$ gulp sass:watch
The same thing exists for Webpack task either (see below):
$ gulp webpack:watch
$ gulp webpack
├─dist // built files to deploy on sever
│ ├─bower_components // built external libraries like html5shiv
│ ├─css // compiled scss
│ ├─fonts // built web fonts
│ ├─img // images + built texture atlases
│ ├─js // javascript bundles
│ └─*.html // html templates
├─src // source files
│ ├─fonts // the same as /dist/fonts in this case
│ ├─images // various images (see gulpfile.js)
│ │ ├─base64 // images to base64-encode into SASS mixins
│ │ └─sprites // tiles to build texture atlases
│ │ └─ui // default ui texture atlas (-> /dist/img/ui.png)
│ ├─scripts // client javascript sources
│ ├─styles // *.scss
│ │ ├─base64 // base64 encoded data generated by the gulp task
│ │ ├─blocks // BEM blocks
│ │ ├─boilerplate // reusable helpers
│ │ ├─components // thematic assemblies (like _forms.scss)
│ │ └─sprites // sprite mixins and data generated by the gulp task
│ └─*.html // the same as /dist/*.html in this case
└─node_modules // js development tools and sources
# npm cache clean -f
# npm install -g n
# n stable
You shouldn't, npm comes with NodeJS nowadays.