2017 © Pedro Peláez
 

library lin3s-distribution

Distribution library for different purposes inside LIN3S

image

lin3s/lin3s-distribution

Distribution library for different purposes inside LIN3S

  • JavaScript
  • 1 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 44 Versions
  • 1 % Grown

The README.md

LIN3S Distribution

Distribution library for different purposes inside LIN3S., (*1)

Latest Stable Version, (*2)

Downloads from packagist (PHP):
Downloads from Packagist, (*3)

Downloads from NPM (JS):
Downloads from NPM, (*4)

Why?

In LIN3S, we are working with many libraries and projects and usually all of them need scripts to automate some process. This library centralize this kind of scripts and tasks improving its reusability., (*5)

Installation

At this moment, this package contains PHP and JavaScript code, so you can manage this library from [NPM][3] and from Composer., (*6)

If your project is in PHP, be sure that Composer is installed in your system and execute the following command:, (*7)

$ composer require lin3s/distribution

Otherwise, if your project is in JavaScript, be sure that Node is installed in your system and execute the following command:, (*8)

$ npm install lin3s-distribution --save-dev
#
# OR
#
$ yarn add lin3s-distribution --dev

Usage

The following code is the basic configuration to make it work with Webpack., (*9)

'use strict';

const Webpack = require('lin3s-distribution').Webpack;

const options = {
  entry: {
    'app': './app/Resources/assets/js/entry-app.js',
  },
  input: {
    base: 'app',
    scss: 'app/Resources/scss',
    includedNodeModules: [
      'swiper'
    ]
  },
  output: {
    jsPath: './web',
    jsPublicPath: '/',
    jsFilename: '[name].js',
    jsFilenameProduction: '[name].[chunkhash].js',

    cssPath: '',
    cssPublicPath: '/',
    cssFilename: '[name].css',
    cssFilenameProduction: '[name].[contenthash].css'
  },
  postcss: {
    autoprefixer: {
      browsers: ['last 2 versions']
    }
  },
  manifest: '../../manifest.json'
};

module.exports = Webpack(options);

Symfony integration

Firstly, you need to install the bundle in your app kernel., (*10)

// app/config/AppKernel.php

public function registerBundles()
{
    $bundles = [
        // ...

        new LIN3S\Distribution\Php\Symfony\Lin3sDistributionBundle(),
        // ...
    ];
}

Once the bundle has been enabled you can manage the configuration. The following is the default config:, (*11)

# app/config/config.yml

lin3s_distribution:
    webpack:
        manifest_path: "%kernel.root_dir%/../manifest.json"
        public_js_path: "/js/"
        public_css_path: "/css/"

Optionally you can enable the webpack default configuration doing this:, (*12)

# app/config/config.yml

lin3s_distribution:
    webpack: ~

Finally replace your script and link html tags with the following Twig tags., (*13)

{# app/Resources/views/base.html.twig #}

(...)

<head>
(...)

    {% webpack_entry_css 'app' %}
</head>

<body>
(...)

    {% webpack_entry_js 'app' %}
</body>

Licensing Options

License, (*14)

The Versions

27/06 2018

dev-master

9999999-dev

Distribution library for different purposes inside LIN3S

  Sources   Download

MIT

The Requires

 

The Development Requires

distribution lin3s

31/01 2018

v4.3.2

4.3.2.0

Distribution library for different purposes inside LIN3S

  Sources   Download

MIT

The Requires

 

The Development Requires

distribution lin3s

31/01 2018

v4.3.1

4.3.1.0

Distribution library for different purposes inside LIN3S

  Sources   Download

MIT

The Requires

 

The Development Requires

distribution lin3s

29/11 2017

v4.3.0

4.3.0.0

Distribution library for different purposes inside LIN3S

  Sources   Download

MIT

The Requires

 

The Development Requires

distribution lin3s

29/11 2017

dev-feature/uglifyjs-webpack-plugin

dev-feature/uglifyjs-webpack-plugin

Distribution library for different purposes inside LIN3S

  Sources   Download

MIT

The Requires

 

The Development Requires

distribution lin3s

09/11 2017

v4.2.2

4.2.2.0

Distribution library for different purposes inside LIN3S

  Sources   Download

MIT

The Requires

 

The Development Requires

distribution lin3s

09/11 2017

v4.2.1

4.2.1.0

Distribution library for different purposes inside LIN3S

  Sources   Download

MIT

The Requires

 

The Development Requires

distribution lin3s

16/10 2017

v4.2.0

4.2.0.0

Distribution library for different purposes inside LIN3S

  Sources   Download

MIT

The Requires

 

The Development Requires

distribution lin3s

02/10 2017

v4.1.0

4.1.0.0

Distribution library for different purposes inside LIN3S

  Sources   Download

MIT

The Requires

 

The Development Requires

distribution lin3s

19/07 2017

v4.0.1

4.0.1.0

Distribution library for different purposes inside LIN3S

  Sources   Download

MIT

The Requires

 

The Development Requires

distribution lin3s

11/07 2017

v4.0.0

4.0.0.0

Distribution library for different purposes inside LIN3S

  Sources   Download

MIT

The Requires

 

The Development Requires

distribution lin3s

13/06 2017

v3.0.3

3.0.3.0

Distribution library for different purposes inside LIN3S

  Sources   Download

MIT

The Requires

 

The Development Requires

distribution lin3s

13/06 2017

v3.0.4

3.0.4.0

Distribution library for different purposes inside LIN3S

  Sources   Download

MIT

The Requires

 

The Development Requires

distribution lin3s

13/06 2017

v3.0.2

3.0.2.0

Distribution library for different purposes inside LIN3S

  Sources   Download

MIT

The Requires

 

The Development Requires

distribution lin3s

12/06 2017

v3.0.1

3.0.1.0

Distribution library for different purposes inside LIN3S

  Sources   Download

MIT

The Requires

 

The Development Requires

distribution lin3s

12/06 2017

v3.0.0

3.0.0.0

Distribution library for different purposes inside LIN3S

  Sources   Download

MIT

The Requires

 

The Development Requires

distribution lin3s

31/03 2017

v2.4.2

2.4.2.0

Distribution library for different purposes inside LIN3S

  Sources   Download

MIT

The Requires

 

The Development Requires

distribution lin3s

31/03 2017

v2.4.1

2.4.1.0

Distribution library for different purposes inside LIN3S

  Sources   Download

MIT

The Requires

 

The Development Requires

distribution lin3s

08/02 2017

v2.4.0

2.4.0.0

Distribution library for different purposes inside LIN3S

  Sources   Download

MIT

The Requires

 

The Development Requires

distribution lin3s

08/02 2017

v2.3.3

2.3.3.0

Distribution library for different purposes inside LIN3S

  Sources   Download

MIT

The Requires

 

The Development Requires

distribution lin3s

25/01 2017

v2.3.2

2.3.2.0

Distribution library for different purposes inside LIN3S

  Sources   Download

MIT

The Requires

 

The Development Requires

distribution lin3s

10/01 2017

v2.3.1

2.3.1.0

Distribution library for different purposes inside LIN3S

  Sources   Download

MIT

The Requires

 

The Development Requires

distribution lin3s

10/01 2017

v2.3.0

2.3.0.0

Distribution library for different purposes inside LIN3S

  Sources   Download

MIT

The Requires

 

The Development Requires

distribution lin3s

29/12 2016

v2.2.1

2.2.1.0

Distribution library for different purposes inside LIN3S

  Sources   Download

MIT

The Requires

 

The Development Requires

distribution lin3s

29/12 2016

v2.2.0

2.2.0.0

Distribution library for different purposes inside LIN3S

  Sources   Download

MIT

The Requires

 

The Development Requires

distribution lin3s

15/12 2016

v2.1.3

2.1.3.0

Distribution library for different purposes inside LIN3S

  Sources   Download

MIT

The Requires

 

The Development Requires

distribution lin3s

15/12 2016

v2.1.2

2.1.2.0

Distribution library for different purposes inside LIN3S

  Sources   Download

MIT

The Requires

 

The Development Requires

distribution lin3s

15/12 2016

v2.1.1

2.1.1.0

Distribution library for different purposes inside LIN3S

  Sources   Download

MIT

The Requires

 

The Development Requires

distribution lin3s

15/12 2016

v2.1.0

2.1.0.0

Distribution library for different purposes inside LIN3S

  Sources   Download

MIT

The Requires

 

The Development Requires

distribution lin3s

02/12 2016

v2.0.9

2.0.9.0

Distribution library for different purposes inside LIN3S

  Sources   Download

MIT

The Requires

 

The Development Requires

distribution lin3s

30/11 2016

v2.0.8

2.0.8.0

Distribution library for different purposes inside LIN3S

  Sources   Download

MIT

The Requires

 

The Development Requires

distribution lin3s

30/11 2016

v2.0.7

2.0.7.0

Distribution library for different purposes inside LIN3S

  Sources   Download

MIT

The Requires

 

The Development Requires

distribution lin3s

28/10 2016

v2.0.6

2.0.6.0

Distribution library for different purposes inside LIN3S

  Sources   Download

MIT

The Requires

 

The Development Requires

distribution lin3s

27/10 2016

v2.0.5

2.0.5.0

Distribution library for different purposes inside LIN3S

  Sources   Download

MIT

The Requires

 

The Development Requires

distribution lin3s

02/10 2016

v2.0.4

2.0.4.0

Distribution library for different purposes inside LIN3S

  Sources   Download

MIT

The Requires

 

The Development Requires

distribution lin3s

22/09 2016

v2.0.3

2.0.3.0

Distribution library for different purposes inside LIN3S

  Sources   Download

MIT

The Requires

 

The Development Requires

distribution lin3s

14/09 2016

v2.0.2

2.0.2.0

Distribution library for different purposes inside LIN3S

  Sources   Download

MIT

The Requires

 

The Development Requires

distribution lin3s

14/09 2016

v2.0.1

2.0.1.0

Distribution library for different purposes inside LIN3S

  Sources   Download

MIT

The Requires

 

The Development Requires

distribution lin3s

13/09 2016

v2.0.0

2.0.0.0

Distribution library for different purposes inside LIN3S

  Sources   Download

MIT

The Requires

 

The Development Requires

distribution lin3s

02/12 2015

v1.2.1

1.2.1.0

Distribution library for different purposes inside LIN3S

  Sources   Download

MIT

The Requires

 

distribution lin3s

14/09 2015

v1.2.0

1.2.0.0

Distribution library for different purposes inside LIN3S

  Sources   Download

MIT

The Requires

 

distribution lin3s

03/08 2015

v1.1.1

1.1.1.0

Distribution library for different purposes inside LIN3S

  Sources   Download

MIT

The Requires

 

distribution lin3s

29/07 2015

v1.1.0

1.1.0.0

Distribution library for different purposes inside LIN3S

  Sources   Download

MIT

The Requires

 

distribution lin3s

24/07 2015

v1.0.0

1.0.0.0

Distribution library for different purposes inside LIN3S

  Sources   Download

MIT

The Requires

 

distribution lin3s