{"name":"tooling","version":"1.2.0","description":"Universal CLI for any framework.","repository":{"url":"git+https://github.com/egoist/tooling.git","type":"git"},"main":"lib/index.js","files":["bin","lib"],"bin":{"tooling":"bin/tooling"},"engines":{"node":">= 7"},"scripts":{"test":"jest && npm run lint","lint":"xo lib/*.js bin/*"},"author":{"name":"egoist","email":"0x142857@gmail.com"},"license":"MIT","jest":{"testEnvironment":"node"},"devDependencies":{"jest-cli":"^18.1.0","xo":"^0.17.1"},"xo":{"space":2,"semicolon":false,"esnext":true,"rules":{"import/no-dynamic-require":0,"unicorn/no-process-exit":0,"guard-for-in":0}},"dependencies":{"autoprefixer":"^6.7.0","babel-core":"^6.22.1","babel-loader":"^6.2.10","babel-preset-latest":"^6.22.0","chalk":"^1.1.3","connect-history-api-fallback":"^1.3.0","copy-webpack-plugin":"^4.0.1","cross-spawn":"^5.0.1","css-loader":"^0.26.1","express":"^4.14.0","extract-text-webpack-plugin":"2.0.0-beta.5","friendly-errors-webpack-plugin":"^1.1.3","html-webpack-plugin":"^2.26.0","http-proxy-middleware":"^0.17.3","installed-by-yarn-globally":"^0.1.2","meow":"^3.7.0","minimist":"^1.2.0","object-picker":"^0.2.0","post-compile-webpack-plugin":"^0.1.1","postcss-loader":"^1.2.2","style-loader":"^0.13.1","update-notifier":"^1.0.3","webpack":"^2.2.0","webpack-dev-middleware":"^1.9.0","webpack-hot-middleware":"^2.15.0"},"gitHead":"0028c8c3e1974dc34e6b4a10c8916eb1933cc2ae","bugs":{"url":"https://github.com/egoist/tooling/issues"},"homepage":"https://github.com/egoist/tooling#readme","_id":"tooling@1.2.0","_shasum":"b6cff561056afbf46fd18a28b2585cd3e4b113a6","_from":".","_npmVersion":"3.10.8","_nodeVersion":"7.0.0","_npmUser":{"name":"rem","email":"0x142857@gmail.com"},"dist":{"shasum":"b6cff561056afbf46fd18a28b2585cd3e4b113a6","tarball":"http://registry-npm.ywwl.com/tooling/download/tooling-1.2.0.tgz","integrity":"sha512-WtVZk4EYZIOVJYoGrvJ4bYyvu6WdeVOH4WUPtKO7fGUrtCVoIWETCppaXiFYHLg0v8ttC1XphWFyuNtwW68veQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIECymehPbP+E0+rzwyET5hDDLzmYuv8/miRbWTNFWpccAiBN4EAu6g+jwlhwLJaNhlykd3jSunqjckZDM1uJxwCB+A=="}],"size":7779,"noattachment":false,"key":"/tooling/-/tooling-1.2.0.tgz"},"maintainers":[{"name":"kchan","email":"kchanzen@gmail.com"},{"name":"rem","email":"0x142857@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/tooling-1.2.0.tgz_1485439917929_0.26735025038942695"},"directories":{},"readme":"<p align=\"center\">\n  <img src=\"https://rawgit.com/egoist/tooling/master/media/logo.svg\" alt=\"\">\n  <br><strong>tooling</strong> is a universal <br>CLI for any front-end framework.\n</p>\n<br>\n<p align=\"center\"><a href=\"https://npmjs.com/package/tooling\"><img src=\"https://img.shields.io/npm/v/tooling.svg?style=flat\" alt=\"NPM version\"></a> <a href=\"https://npmjs.com/package/tooling\"><img src=\"https://img.shields.io/npm/dm/tooling.svg?style=flat\" alt=\"NPM downloads\"></a> <a href=\"https://circleci.com/gh/egoist/tooling\"><img src=\"https://img.shields.io/circleci/project/egoist/tooling/master.svg?style=flat\" alt=\"Build Status\"></a> <a href=\"https://github.com/egoist/donate\"><img src=\"https://img.shields.io/badge/$-donate-ff69b4.svg?maxAge=2592000&amp;style=flat\" alt=\"donate\"></a></p>\n\n## Install\n\nRecommend to install `tooling` as devDependency in your project.\n\n```bash\nyarn add tooling --dev\n```\n\nNote that you can execute `./node_modules/.bin/tooling` via `yarn tooling`\n\n## Getting started\n\nFirst populate an entry file `index.js` in your project:\n\n```js\nsetInterval(() => {\n  document.body.innerHTML = new Date()\n}, 1000)\n```\n\n**Development mode:**\n\n```bash\nyarn tooling dev index.js\n```\n\nThen open `http://localhost:4000` and test it out yourself!\n\n**Production mode: (minified and optimized)**\n\n```bash\nyarn tooling build index.js\n```\n\nThen you can deploy generated files in `./dist` folder.\n\n**Build in library mode:**\n\nSimilar to production mode, but it generates a UMD format bundle:\n\n```bash\nyarn tooling build index.js --lib LibraryName\n# then window.LibraryName will also be available\n```\n\nYou may [exclude some modules](/docs/config.md#externals) from your library.\n\n## What's inside?\n\n### Babel\n\nBabel with `babel-preset-latest` for transpiling ES2015+ code, you can override it by providing `.babelrc` in your project root.\n\n### PostCSS\n\nThe Default postcss plugins only contain the `autoprefixer` with `browsers: ['ie > 8', 'last 4 versions']`, you can override it by providing `postcss.config.js` in your project root.\n\n### Static folder\n\nBy default `./static/*` will be copied to `./dist/*`, thus all resource in the `./static` folder can be accessible via `http://localhost:4000/*`.\n\n### Homepage\n\nThe `index.html` for homepage is generated by [html-webpack-plugin](https://github.com/ampedandwired/html-webpack-plugin), you can check out the default template we use at [lib/template.html](/lib/template.html), you can also populate a `template.html` in project root to override it. The title of homepage is inferred by this order if you have a `package.json`: `pkg.productName > pkg.title`, you can also set this via CLI options `--html.title <title>`, if none is present, it fallbacks to `Tooling App`.\n\n## Config file\n\nYou can keep CLI options here, check out the [docs](/docs/config.md).\n\n## Adapter\n\nAn adapter can mutate the webpack config tooling uses, it can use all options in config file and is often used to adapt specific framework like `react` and `vue`.\n\nCheck out the [docs](/docs/adapter.md) for adapter.\n\n## List of adapters\n\n- [vue](https://github.com/egoist/tooling-vue)\n- [preact](https://github.com/egoist/tooling-preact)\n\n## Contributing\n\n1. Fork it!\n2. Create your feature branch: `git checkout -b my-new-feature`\n3. Commit your changes: `git commit -am 'Add some feature'`\n4. Push to the branch: `git push origin my-new-feature`\n5. Submit a pull request :D\n\n\n## Author\n\n**tooling** © [egoist](https://github.com/egoist), Released under the [MIT](./LICENSE) License.<br>\nAuthored and maintained by egoist with help from contributors ([list](https://github.com/egoist/tooling/contributors)).\n\n> [egoistian.com](https://egoistian.com) · GitHub [@egoist](https://github.com/egoist) · Twitter [@rem_rin_rin](https://twitter.com/rem_rin_rin)\n","publish_time":1485439918191,"_cnpm_publish_time":1485439918191,"dist-tags":{"latest":"1.6.0","next":"2.0.0-beta.2"}}