This is a minimal and easy workflow for front-end development using vanila javascript
- This boilerplate shiped with bootstrap 4
- Easy to setup
- Using modren javascript features
- Comes with babel configured
- Similar to react
- uses dom directly
- Super fast
- uses scss to customize bootstrap 4 components
- Uses Jsx
- clone this repository
$ git clone https://github.com/W2AlharbiMe/parcel-boilerplate.git
- cd in the directory and run
$ npm install # you can also use yarn
- run development command
$ npm run dev # or use yarn
- Start developemnt
.
|-- .babelrc # babel configurations goes here
|-- package.json
|-- public
| `-- index.html # application entry
`-- src # all components goes here
|-- components # all your components should go there
# Note: import your components in App.jsx
|-- App.jsx # the entry component
|-- app.js # the application entry
|-- compiler
| `-- index.js # the compile function
`-- scss # all styles goes here
|-- _defaults.scss # to overwrite bootstrap 4 default styles
|-- _variables.scss # to overwrite bootstrap 4 default variables
|-- app.scss # entry scss file
`-- components # component styles goes here
`-- index.scss # import all the scss files to this file
Run this script to build the application
$ npm run build # or use yarn
this will build the dist
directory