Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

jk-build-suite

Package Overview
Dependencies
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jk-build-suite

A suite of build tools for providing dev ENV to JIKE.

  • 0.1.34
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3
Maintainers
1
Weekly downloads
 
Created
Source

JK-Build-Suite

A suite of build tools for providing dev ENV to JIKE, which is a formula = JK-* + IMPL + ENV. There is a list that explains what the factors stand for:

  • JK-* - Basic, common and independent libraries/components, you would find them via filter jk-.

  • IMPL - An implentation of a special BLL requirement. Generally, the name prefix of IMPL projects is jike-.

  • ENV - Nowadays, frondend projects must use build-structure to compile source files. But Webpack is suck, our code should be esay to run. Highly customizable build system will take days and days when initializing a project. So we need a unified and config-less build suite in dev environment.

Installation

$ npm i --save-dev jk-build-suite

CLI Usage

# Start a dev server, via Webpack Dev Server
$ jkbs start --config webpack.config.js

# Build source for production, via Webpack
$ NODE_ENV=production jkbs build --config webpack.config.js

# Upload static files to CDN, via Gulp
$ jkbs deploy 'dist/static/**' --output build-suite

Configuration Template

import {
  createWebpackConfig,
  mergeWebpackConfig
} from 'jk-build-suite'

const buildSuiteConfig = {
  DIST_DIR: 'dist'
}

const baseConfig = createWebpackConfig(
  buildSuiteConfig
)

const instanceConfig = {
  entry: {
    app: 'src/main'
  }
}

module.exports = mergeWebpackConfig(
  baseConfig,
  instanceConfig
)

The template is pithy, see the test/config directory for more complicated configurations.

Supported Languages

  • Template: HTML, EJS, Pug
  • Style: CSS, Stylus
  • Script: JavaScript, TypeScript, Vue

License

MIT

FAQs

Package last updated on 11 Oct 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc