@lskjs/build
Lego Starter Kit builder & webpack configurator
Last updated 10 days ago by isuvorov .
MIT · Repository · Original npm · Tarball · package.json
$ cnpm install @lskjs/build 
SYNC missed versions from official npm registry.

lsk-build

Lego Starter Kit builder & webpack configurator

Что это такое?

Данный проект - это вспомогательная утилита, позволяющая удобно конфигурировать сборку вебпака. Все свои проекты я собираю данный утилитой, это позволяет мне настраивать их в взаимо совместимом виде, и спользовать подпроекты в качестве зависимостей.

Ключевой особоенностью данной утилиты является принцип наследуемости.

Пример конфига

import fs from 'fs';
const dirname = `${__dirname}/..`;
const ctx = {
  env: process.env.NODE_ENV,
  debug: !process.argv.includes('--release'),
  verbose: process.argv.includes('--verbose'),
  webpackConfigDist: `${dirname}/build/webpack.config.js`,
  webpackStats: 'verbose',
  dirname,
  pkg: require('../package.json'),
  deps: [
    {
      name: 'lego-starter-kit',
      path: fs.realpathSync(`${dirname}/node_modules/lego-starter-kit/src`),
      alias: 'lego-starter-kit',
    },
    {
      name: 'lsk-general',
      path: fs.realpathSync(`${dirname}/node_modules/lsk-general/src`),
      alias: 'lsk-general',
    },
    {
      name: 'lsk-quiz',
      path: fs.realpathSync(`${dirname}/node_modules/lsk-quiz/src`),
      alias: 'lsk-quiz',
    },
    {
      name: 'lsk-admin',
      path: fs.realpathSync(`${dirname}/node_modules/lsk-admin/src`),
      alias: 'lsk-admin',
    },
    // {
    //   name: 'universal-model',
    //   path: fs.realpathSync(`${dirname}/node_modules/universal-model/src`),
    //   alias: 'universal-model',
    // },
  ],
  alias: {
    react: fs.realpathSync(`${dirname}/node_modules/react`),
    'react-dom': fs.realpathSync(`${dirname}/node_modules/react-dom`),
  },
};
export default ctx;

Вхохновлен

Current Tags

  • 0.35.101                                ...           latest (10 days ago)

74 Versions

  • 0.35.101                                ...           10 days ago
  • 0.35.84                                ...           a month ago
  • 0.35.63                                ...           3 months ago
  • 0.35.57                                ...           3 months ago
  • 0.35.43                                ...           3 months ago
  • 0.35.38                                ...           4 months ago
  • 0.35.37                                ...           4 months ago
  • 0.35.29                                ...           5 months ago
  • 0.35.16                                ...           5 months ago
  • 0.35.6                                ...           5 months ago
  • 0.35.5                                ...           5 months ago
  • 0.35.0                                ...           6 months ago
  • 0.34.13                                ...           6 months ago
  • 0.34.8                                ...           6 months ago
  • 0.34.6                                ...           6 months ago
  • 0.34.2                                ...           7 months ago
  • 0.34.1                                ...           7 months ago
  • 0.34.0                                ...           7 months ago
  • 0.33.24                                ...           7 months ago
  • 0.33.20                                ...           7 months ago
  • 0.33.15                                ...           7 months ago
  • 0.33.14                                ...           7 months ago
  • 0.33.8                                ...           8 months ago
  • 0.33.6                                ...           8 months ago
  • 0.33.5                                ...           8 months ago
  • 0.33.1                                ...           8 months ago
  • 0.33.0                                ...           8 months ago
  • 0.32.2                                ...           8 months ago
  • 0.32.0                                ...           9 months ago
  • 0.31.1                                ...           9 months ago
  • 0.31.0                                ...           9 months ago
  • 0.30.7                                ...           9 months ago
  • 0.30.4                                ...           9 months ago
  • 0.30.3                                ...           9 months ago
  • 0.30.1                                ...           9 months ago
  • 0.30.0                                ...           9 months ago
  • 0.29.8-alpha.0                                ...           9 months ago
  • 0.29.6-alpha.0                                ...           9 months ago
  • 0.29.3-alpha.0                                ...           9 months ago
  • 0.29.2-alpha.0                                ...           9 months ago
  • 0.29.0                                ...           9 months ago
  • 0.28.0                                ...           9 months ago
  • 0.27.0                                ...           9 months ago
  • 0.26.18                                ...           9 months ago
  • 0.26.6                                ...           9 months ago
  • 0.26.4                                ...           9 months ago
  • 1.21.0                                ...           a year ago
  • 1.20.0                                ...           a year ago
  • 1.19.31                                ...           a year ago
  • 1.19.30                                ...           a year ago
  • 1.19.29                                ...           a year ago
  • 1.19.28                                ...           a year ago
  • 1.19.17                                ...           a year ago
  • 1.19.16                                ...           a year ago
  • 1.19.15                                ...           a year ago
  • 1.19.14                                ...           a year ago
  • 1.19.13                                ...           a year ago
  • 1.19.12                                ...           a year ago
  • 1.19.11                                ...           a year ago
  • 1.19.9                                ...           2 years ago
  • 1.19.8                                ...           2 years ago
  • 1.19.7                                ...           2 years ago
  • 1.19.6                                ...           2 years ago
  • 1.19.5                                ...           2 years ago
  • 1.19.4                                ...           2 years ago
  • 1.19.3                                ...           2 years ago
  • 1.19.2                                ...           2 years ago
  • 1.19.1                                ...           2 years ago
  • 1.19.0                                ...           2 years ago
  • 1.18.4                                ...           2 years ago
  • 1.18.3                                ...           2 years ago
  • 1.18.2                                ...           2 years ago
  • 1.18.1                                ...           2 years ago
  • 1.18.0                                ...           2 years ago

Copyright 2014 - 2016 © taobao.org |