Skip to content
This repository has been archived by the owner on Feb 17, 2023. It is now read-only.

mbostock/smash

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

SMASH

SMASH DEPRECATED. DO ROLLUP INSTEAD.

SMASH TOGETHER FILES! PROBABLY JAVASCRIPT.

SAY THIS foo.js:

import "bar";

function foo() {
  return "foo" + bar();
}

AND THIS bar.js:

function bar() {
  return "bar";
}

WHEN SMASH TOGETHER foo.js AND bar.js:

function bar() {
  return "bar";
}

function foo() {
  return "foo" + bar();
}

SMASH HANDLE CIRCULAR AND REDUNDANT IMPORTS GOOD. SMASH GOOD. SMASH.

SMASH LIKE MAKE, TOO.

bundle.js: $(shell smash --list src/bundle.js)
  smash src/bundle.js > bundle.js

About

SMASH TOGETHER MULTIPLE FILES [deprecated; try rollup/rollup]

Resources

License

Stars

Watchers

Forks

Packages

No packages published