@friendsof/spaghetti
Tasty little compiler util.
Last updated a month ago by estrattonbailey .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @friendsof/spaghetti 
SYNC missed versions from official npm registry.

@friendsof/spaghetti

???? Tasty little compiler util. Supports most modern JS syntax, as well as compiles and extracts CSS (or SCSS) by default.

Install

npm i @friendsof/spaghetti -g # or --save-dev for npm scripts

Usage

spaghetti [options] <in> <outDir>

Options

-w, --watch

Watch files for changes.

spaghetti src/index.js dist/ -w

--jsx

Specify a JSX pragma (default: React.createElement)

spaghetti src/index.js dist/ --jsx preact.h

--map

Any source map value supported by webpack (default: source-map)

spaghetti src/index.js dist/ --map cheap-module-source-map

--sass

Use sass instead of postcss

spaghetti src/index.js dist/ --sass

--config

Specify a config file (default: spaghetti.config.js)

spaghetti src/index.js dist/ --config config.js

Config

Config files support the same options as above, along with a couple additions.

// spaghetti.config.js
module.exports = {
  in: 'src/index.js',
  outDir: 'dist',
  jsx: 'h',
  alias: {
    components: 'src/components/'
  },
  banner: '/** Hello there */'
}

License

MIT License © Friends of Friends

Current Tags

  • 1.2.2                                ...           latest (a month ago)

14 Versions

  • 1.2.2                                ...           a month ago
  • 1.2.1                                ...           2 months ago
  • 1.2.0                                ...           2 months ago
  • 1.1.1                                ...           3 months ago
  • 1.1.0                                ...           3 months ago
  • 1.0.1                                ...           4 months ago
  • 1.0.0                                ...           4 months ago
  • 0.1.5                                ...           4 months ago
  • 0.1.4                                ...           4 months ago
  • 0.1.3                                ...           4 months ago
  • 0.1.2                                ...           4 months ago
  • 0.1.1                                ...           6 months ago
  • 0.1.0                                ...           7 months ago
  • 0.0.1                                ...           7 months ago
Downloads
Today 0
This Week 0
This Month 15
Last Day 0
Last Week 14
Last Month 60
Dependencies (33)
Dev Dependencies (0)
None
Dependents (1)

Copyright 2014 - 2016 © taobao.org |