@cherrypulp/trunk

0.0.27 • Public • Published

Trunk

Frontend framework for cool kids

Installation

Make sure all dependencies have been installed before moving on:

npm install --save @cherrypulp/trunk

Webpack

// webpack.mix.js
...
mix.webpackConfig({
    resolve: {
        alias: {
            # required for autoload
            '@': path.resolve(__dirname, paths.src),
        },
    },
});
...

Quick start

Configuration and Setup

Take a look to config/ directory. You can setup a lot of things there.

# mandatory
# TODO
import { Application } from '@cherrypulp/trunk';

const app = new Application();

// Bind Dependencies
app.bind('Http', axios);

// Register Service Providers
app.register(new MyAwesomeServiceProvider(app));

document.addEventListener('DOMContentLoaded', () => app.boot());

Structure

assets/
|--- js/
|    |--- config/                           # autoloaded by ConfigServiceProvider
|    |    |--- app.js
|    |--- main.js
|--- scss/
|    |--- config/                           # autoloaded by @cherrypulp/trunk/src/scss/index.scss
|    |    |--- index.scss

Documentation

Container

Binding dependencies

app.bind('Http', axios);
# TODO

Versioning

Versioned using SemVer.

Contribution

Please raise an issue if you find any. Pull requests are welcome!

Author

License

This project is licensed under the MIT License - see the LICENSE file for details.

Package Sidebar

Install

npm i @cherrypulp/trunk

Weekly Downloads

0

Version

0.0.27

License

MIT

Unpacked Size

665 kB

Total Files

143

Last publish

Collaborators

  • dbennani_cherry
  • danielsum
  • cherrypulpcom
  • monkeymonk
  • anthonypauwels