Skip to content

arinomurakumo/frontend-dev-env

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

77 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Front-end Development Environment

MIT License

web develop environment. Babel / libsass / Webpack

Overview

Simple front-end development environment. Right for simple static site.

  • compile Scss and ES6 Javascript

Description

┣ frontend-dev-env - front develop  
  ┣ assets  
   ┣ js  
   ┗ sass  
    ┣ components  
    ┗ page  
  ┣ .babelrc           - Version specification setting file when converting with babel  
  ┣ .editorconfig      - Coding style setting file  
  ┣ .eslintrc          - eslint configuration file  
  ┣ .stylelintrc.json  - scss configuration file  
  ┣ gulpfile.babel.js  - gulp configuration file  
  ┣ package.json       - package configuration file  
  ┣ README.md  
  ┗ webpack.config.js  - webpack configuration file  
┗ www - Public directory  
  ┣ assets  
   ┣ bundle  
   ┗ images  
  ┗ index.html  

The paths to css and js which are published in each setting file are written.
Please change it if necessary.

Requirement

Usage

Clone to any directory.

$ cd ./frontend-dev-env

Install package.

$ npm install

or

$ yarn install

Run

Monitoring is started for scss and js files in public's assets directory.

$ yarn run dev

Dev Server

liveReload and open browser.

liveReload: true,
compress: true,
port: 8080,
open: true

SCSS

If you save /frontend-dev-env/assets/sass/style.scss in the development directory with an editor, The following two files are generated.

/www/assets/bundle/css/style.css

JavaScript

Add file

Javascript describes the target to be monitored in webpack.config.js.
If you save / frontend-dev-env / assets / js / app.js in the development directory with an editor etc, webpack converts it to ECMAScript 5.
The following two files are generated.

/www/assets/js/bundle/app.js

If you want to add files, entry of webpack.config.js

entry: {
  app: '../www/assets/js/app.js',
  something: '../www/assets/js/something.js',
},

Please add the name and path of something: '../www/assets/js/something.js' and js file name as above.

Install

$ git clone https://github.com/ariariasria/frontend-dev-env.git

Licence

MIT License

Author

@ariariasria

About

Simple Front-end development environment

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •