Skip to content

rcnfinance/rcn-website

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RCN- WEBSITE using --> Penny Boilerplate

Installing dependencies & running up

Needs to install some dependencies to run the options you select. For this job, run this command in your shell

$ npm run start
$ npm run code

Other available npm commands

$ npm run build // build the project without serving

$ npm run code --tunnel // create a tunnel to share your project everywhere

Gulp Config file

You have a config file located at gulp/config.js that enables you to add thrid-party libraries easily.

SCSS Directories

We are using sass-module-importer so we can import sass libraries just using the npm package name like:

Example

import "bootstrap-sass";

That is the external library fits under one of these categories:

  • Set a SCSS/Sass/CSS file on the "main" field of their package.json/bower.json
  • Set a SCSS/Sass/CSS file on the "style" field of their package.json/bower.json
  • Have a index.css file on the root of their module

However fear not, if your module doesn't fit into those categories you can also navigate to your desired scss or css file like this:

@import "module-name/folder/to/_file.scss";

Script Files

We are using WebpackJS to bundle our script files. There's also ES6 on-demand transpilation and pollyfills.

Learn more about Javascript Modules here Wesbos Article About Modules

Also learn more about ES6 here: Babel Overview of ES2015

Example

import $ from "jquery";
import "bootstrap-sass";

We also included the amazing webpack-bundle-analyzer you can fine tweak you JS bundle size if you wish to. Fire it up running this command:

$ npm run debug

Font Files

You can add file paths to fontFiles key, who will move this fonts to the correct folder ./dist/assets/fonts. You can point to specific files or complete directories using wildcards (**/*)

Example

fontFiles: [
  './path/to/bootstrap/fonts/**/*',
  './node_modules/library/font/font.ttf'
]

Available Gulp Commands

Helpers

  • $ gulp clean Clean /dist directory

Images

  • $ gulp images Move images

Fonts Files

  • $ gulp fonts Move project fonts

Scripts

  • $ gulp scripts Process script files with webpack

Styles

  • $ gulp styles Compile, concat, autoprefix, minify and move [SCSS, Less, Stylus] project files

Daemons

  • $ gulp watch Watch your files and autoexecute gulp directives
  • $ gulp serve Watch your files and serve with an HTTP server and Sync with your prefered browser awesome!

Delivery

  • $ gulp build Execute all the gulp directives and makes a .zip file with the latest code.

Releases

No releases published

Packages

No packages published