Included packages:
- Compilation
- Gulp
- npm
- yarn
- (bower?)
- browserify (babel, ES6)
- Frameworks
- Panini
- jQuery
- Test frameworks
- mocha
- chai
yarn install
or if you cant live without npm run npm install
.
Set BUILD_PATH
variable in the file .env
.
To use Foundation, install these npm packages:
yarn add foundation-sites --dev
Uncomment Foundation lines in:
app/app.init.js
app/app.scss
gulpfile.js
To use React, install these npm packages:
yarn add react babel-preset-react --dev
Uncomment React lines in:
app/app.init.js
.babelrc
Folders used by Panini:
components
helpers
layouts
pages
data
Javascript is placed in its component folder components/c-todo/c-todo.js
. Follow the script example c-todo.js
for structure.
Libraries are install through npm/yarn and imported in app/app.init.js
.
TODO
Development
npm run dev
Production
npm run production
Test
npm run test