<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by hiroppy😶 on Medium]]></title>
        <description><![CDATA[Stories by hiroppy😶 on Medium]]></description>
        <link>https://medium.com/@about_hiroppy?source=rss-498cb1f7b82d------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*WODbWsL8nXTvejAN.GIF</url>
            <title>Stories by hiroppy😶 on Medium</title>
            <link>https://medium.com/@about_hiroppy?source=rss-498cb1f7b82d------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 10:42:59 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@about_hiroppy/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com" rel="hub"/>
        <item>
            <title><![CDATA[Fusuma which can create slides with MarkDown easily has been released.]]></title>
            <link>https://medium.com/@about_hiroppy/fusuma-which-can-create-slides-with-markdown-easily-has-been-released-3dedd58ecc7d?source=rss-498cb1f7b82d------2</link>
            <guid isPermaLink="false">https://medium.com/p/3dedd58ecc7d</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[slides]]></category>
            <category><![CDATA[markdown]]></category>
            <dc:creator><![CDATA[hiroppy]]></dc:creator>
            <pubDate>Thu, 09 May 2019 00:01:16 GMT</pubDate>
            <atom:updated>2019-05-09T00:01:16.603Z</atom:updated>
            <content:encoded><![CDATA[<p>Fusuma which can create slides with MarkDown easily has been released.🎉</p><p><a href="https://github.com/hiroppy/fusuma">hiroppy/fusuma</a></p><h3>What is Fusuma?</h3><p><em>Fusuma is a CLI providing development environment, production build, deploying, exporting as PDF, and etc.</em></p><p>fusuma is a bridge which converts MarkDown to HTML, also it wraps configure(e.g. babel, webpack) like create-react-app.</p><h4>Features</h4><ul><li>Development environment (webpack-dev-server)</li><li>Production environment (including optimization)</li><li>Deploys to GitHub Pages</li><li>Exports as PDF</li><li>Supports for SNS and OGP</li><li>Presenter mode</li></ul><p><strong>You can get cool slides just doing the following.</strong></p><pre>$ npm i fusuma -D<br>$ npx fusuma init<br>$ mkdir slides &amp;&amp; echo ‘# Hello😄’ &gt; slides/title.md<br>$ npx fusuma build</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FCp23YuCr5zrl34vy5oOgQ.png" /></figure><blockquote>just write in MarkDown and execute with CLI😍</blockquote><h3>Slide Library</h3><p>Fusuma uses WebSlides which have many components and css-classes and so beautiful.</p><p><a href="https://webslides.tv/#slide=1">WebSlides - Making HTML Presentations Easy</a></p><p>Please see the sample slides.😍</p><p>Also, you can overwrite WebSlides’s CSS.</p><h3>Writing in MarkDown</h3><p>If you write below, you’ll get slides which have 2 pages.</p><pre>## First Slide</pre><pre>Hi!</pre><pre>— -</pre><pre>## Second Slide</pre><pre>Hi!</pre><h3>Expansion</h3><p>You can extend JavaScript and CSS to overwrite WebSlides.</p><h3>Presenter Mode</h3><p>Fusuma has the mode for presenters.</p><p>The image below is for presenters.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Omx8bNGgSR4LPWLkHYABKA.png" /></figure><p>Fusuma is compatible with Presentation API, but you can also use this mode if you use browsers which don’t have Presentation API because Fusuma can fallback to using localstrage.</p><p><a href="https://developer.mozilla.org/en-US/docs/Web/API/Presentation_API">Presentation API</a></p><h4>Presenter Note</h4><p>If you write on the slide as follows, you can see this as the note.</p><pre>&lt;!-- note<br>Hi!<br>--&gt;</pre><pre>## Hello😁</pre><h3>Sample Slide and Repository</h3><p>slide: <a href="https://hiroppy.github.io/fusuma/intro/#slide=1">https://hiroppy.github.io/fusuma/intro</a></p><p>repo: <a href="https://github.com/hiroppy/fusuma/tree/master/samples/intro">https://github.com/hiroppy/fusuma/tree/master/samples/intro</a></p><p>I think that Fusuma is useful when you want to create slides <strong>quickly✨</strong></p><p><a href="https://github.com/hiroppy/fusuma">hiroppy/fusuma</a></p><p>Enjoy😍</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3dedd58ecc7d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Introduce ECMAScript Modules of Node.js]]></title>
            <link>https://medium.com/@about_hiroppy/introduce-ecmascript-modules-of-node-js-4bf873bcb21b?source=rss-498cb1f7b82d------2</link>
            <guid isPermaLink="false">https://medium.com/p/4bf873bcb21b</guid>
            <category><![CDATA[experimental]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[nodejs]]></category>
            <dc:creator><![CDATA[hiroppy]]></dc:creator>
            <pubDate>Thu, 25 Apr 2019 19:10:28 GMT</pubDate>
            <atom:updated>2019-04-25T19:10:28.154Z</atom:updated>
            <content:encoded><![CDATA[<p>I talked about ECMAScript Modules at Dubin Node.js meetup. I made comments to deepen your understanding.</p><h3>URLs</h3><p><a href="https://www.meetup.com/ja-JP/Dublin-Node-js-Meetup/events/260666447/">meetup</a>, <a href="https://slides.hiroppy.me/node-esm">my slides</a></p><h3>Slides</h3><p>I will refer to ECMAScript Modules as <strong>ESM</strong> and CommonJS Modules as <strong>CJS</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*O2uOdSMrwF0qeX2BF-VC3g.png" /></figure><p>First, Thanks to all the Dublin engineers for inviting me. I have been living in Dublin for one month now and I feel very comfortable.</p><blockquote>Node.js v12 was released on 23rd April🎉🎉🎉</blockquote><blockquote>In addition, Node.js v6 will be End-of-life on 30th April.</blockquote><p><a href="https://nodejs.org/en/blog/release/v12.0.0/"><em>Node v12.0.0 (Current)</em></a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*k4dEjqch9mAIKrIUy8QrNw.png" /></figure><p>First of all, let me introduce myself.</p><p>I’m Yuta Hiroto. Everyone calls me “hiroppy”. I’m living in Dublin until September and then I’m going to go back to Japan. My twitter is <a href="https://twitter.com/about_hiroppy">here</a>. Currently, I’m a technical advisor at Mercari and working on improving webpack now. And, I’m a Node.js Core Collaborator.</p><p>This picture above is a famous shrine in Japan was taken from the article called “Why 2019 is the best year to visit Japan”. If you come to Japan at this time of year, you will see the cherry blossoms like in this picture.</p><p><a href="https://www.womanandhome.com/travel/best-time-to-visit-japan-55928/"><em>Why 2019 is the best year to visit Japan</em></a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fdXh0H73wG10Z27ifR3kzA.png" /></figure><p>Please let me introduce my company.</p><p>Mercari is a C2C marketplace app that allows users to enjoy buying and selling. Offices in Japan and the United States have more than 1650 people work. Mercari’s mission is to “create value in a global marketplace where anyone can buy &amp; sell,” and its focus on a global marketplace can be seen in the decision to expand overseas the year after its foundation. The company believes that succeeding in a market as large and diverse as the US is a key milestone in achieving its mission.</p><p>If you are interested in Mercari, see <a href="https://www.mercari.com/careers/">https://www.mercari.com/careers/</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VxJ-0ptO75k2iDCXJgTiyw.png" /></figure><p>JavaScript has many module systems. For example, AMD, UMD, and CJS.<br>ECMAScript Modules is owned by WHATWG and TC39.<br>TC39 has ESM syntax and rules concerning javascript. For example, the default is strict mode and how to treat `this`, etc…<br>However, modules loading is owned by WHATWG because it is the difference between browsers and Node.js. On the other hand, dynamic import is JavaScript only syntax, so TC39 manages it. Now, dynamic import is stage-3 of TC39.</p><p><a href="https://whatwg.github.io/loader/"><em>whatwg/loader</em></a><em>, </em><a href="https://tc39.github.io/ecma262/#sec-ecmascript-language-scripts-and-modules"><em>ECMAScript Language: Scripts and Modules</em></a><em>,</em></p><p><a href="https://github.com/tc39/proposal-dynamic-import"><em>tc39/proposal-dynamic-import</em></a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uq4e3fUP4prHxXIu0WT3JA.png" /></figure><p>You can specify `module` to `type` attribute in `&lt;script&gt;` to make it recognized as ESM. However, browsers that don’t know `type: module` ignore this script tag. In other words, it is not executed.</p><p>So you use the `nomodule` attribute. Browsers that don’t support ESM can ignore this attribute and execute it as a normal script tag because `type` attribute has not changed. And browsers that support ESM don’t execute this script. I think that files into one using a bundler usually have this attribute.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*09yi-j2BCdc1SIcwikQ-_A.png" /></figure><p>All browsers can use modules other than Internet Explorer. We might not need bundlers like webpack in the future. However, it is still more efficient to bundle large code now.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bLj60ii4yCbECVewKx-fHw.png" /></figure><p>I think many people are already using ESM. ESM has `import` and `export` syntax. Like this example.</p><p>I describe the features of ESM.</p><p>`import` and `export` can only be written at the top level. This restriction makes it possible to detect errors before execution. If you want to get modules as asynchronously, please use dynamic import which is stage-3 of TC39.</p><p>And, since `import` statement is hoisting, it is declared at the beginning of the module wherever it is written. So this is the same behavior as a function declaration. Also, the top level `this` in the module becomes `undefined` and a module which is written in ESM becomes strict mode.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Det6tGcJpebdlBr22_jmBg.png" /></figure><p>Currently, the status of ESM is stability:1. Node.js has stability level. It has 3 phases, 0 is Deprecated, 1 is Experimental, and 2 is Stable. Since stability 1 is experimental, it will be changed sometimes. Therefore, you should not use it in production.</p><blockquote><strong>The goal is to “release” (drop the </strong><strong>--experimental-modules flag) by when Node 12 starts LTS in October 2019.</strong></blockquote><p><a href="https://github.com/nodejs/modules/blob/master/doc/plan-for-new-modules-implementation.md#plan-for-new-modules-implementation"><em>Plan for New Modules Implementation</em></a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QgbTNAHzAsVYxsB7LKkuog.png" /></figure><p>PR was submitted on 18th March to Node.js Core by Mr. Myles.</p><p>We discuss the specification at “nodejs/modules”. Then, implement in the repository called “nodejs/ecmascript-modules” which forked Node.js Core, and finally backport to Node.js Core.</p><p><a href="https://github.com/nodejs/modules"><em>nodejs/modules</em></a><em>, </em><a href="https://github.com/nodejs/ecmascript-modules"><em>nodejs/ecmascript-modules</em></a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vl0e-MDpSj7tg55s8pIZ3Q.png" /></figure><p>Node.js spent a long time implementing ESM. Node.js had two major problems that browsers don’t have.</p><p>One is that Node.js cannot recognize if a file is written in ESM. In the case of browsers, it can be recognized because it is written as `module` in the `type` attribute. However, Node.js’ import does not have an attribute like the `type`. So we decided to look at the file extensions to be imported.</p><p>We made a rule that a file with the `.mjs` extension is written in ESM. And another issue is compatibility with existing CJS Modules. Node.js values backward compatibility. However, Node.js already has a module system. It’s very difficult to implement ESM so as not to break the existing code.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*grwdsw4wGqeXDbM8KEr9cA.png" /></figure><p>Node.js defined the standard for implementation. We keep these standards and implement ESM in Node.js.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_A8cwg4KCynU2zPrWhbnQw.png" /></figure><p>ESM’s path conforms to whatwg url.</p><p>See the example. As you can see, import syntax accepts URL object. Access using a relative path, an absolute path, a package name, and `file` protocol can be performed. Currently, protocols support only `file`.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IPoMEWqSxwNRlwOwpCC6Ig.png" /></figure><p>You can not use Node.js specific variables that were available until now. Such as, `require`, `module`, `exports`, `__dirname`, and `__filename`. These variables will become `undefined` when you write in ESM. To use these variables in ESM, you can use `import.meta` or `createRequireFromPath` to reproduce the same behavior.</p><p>If you want to get a file path, you can use `import.meta.url`. This is an ESM specification and currently exists in stage-3 of TC39.</p><p>If you want to use `require` syntax in ESM, you can use `createRequireFromPath` method. By passing a based path as an argument, This function returns an executable `require` method based on the argument.</p><p><a href="https://github.com/tc39/proposal-import-meta"><em>tc39/proposal-import-meta</em></a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*90MYH_G5Y4AZx8yQcQMLFQ.png" /></figure><p>CJS can omit `.js`, `.node`, `.json` extensions and the filename “index”. However, ESM doesn’t have this specification, so we also make this CJS specification unavailable in ESM by default. So, we prepared ` — es-module-specifier-resolution` flag. This flag has `explicit` and `node` options, and the default is `explicit`.</p><p>I think that most of the existing code written in ESM has omitted the extension and “index”. Then, please use `node` option.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CHRFQpgER-fueO_mE9OkNA.png" /></figure><p>In the future, you will not be able to execute anything other than JavaScript.</p><p><a href="https://github.com/whatwg/html/issues/4315"><em>whatwg/html “JSON modules”</em></a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gQZzEu_yPnpZpbHR6AkJcw.png" /></figure><p>This example is written in CJS. It is impossible to call an ESM file using require syntax. On the other hand, if you use import syntax, you can call CJS files. However, the only dynamic import can call ESM files from CJS.</p><p>In conclusion, CJS cannot call ESM at the top level, but CJS can use dynamic import. Also, ESM can call CJS.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RlleyeBkeA7OVkcfZ5sPhg.png" /></figure><p>Let’s explain how Node.js distinguishes ESM and CJS.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qYy-k7rjO_Vp2ZW2spNQMA.png" /></figure><p>I think many people have heard the word `.mjs` in the past.</p><p>Certainly, it is easy to distinguish by the extension. However, in the future, ESM will become the de-facto standard, so we do not want to change the extension from `.js` to `.mjs` it’s not needed. Probably, this is something that many people wanted. So we looked for another solution.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dKbu2zLVhhgd28kc0yAT7Q.png" /></figure><p>There is a way to specify the module type to package.json. This solution is already in the Core of Node.js, and probably will not be changed. The solution is very simple. Each file’s module type depends on the closest parent’s package.json.</p><p>See this picture. package.json on the root.js has `type: module`, so root.js will be read as ESM. index.js in “./esm” directory does not have package.json in the same hierarchy so index.js depends on package.json in the root hierarchy. Therefore, this file is also read as ESM. Finally, let’s look at the index.js in “./esm/cjs”. package.json exists in the same hierarchy but does not have `type` attribute. So, index.js is read as CJS.</p><p>Code: <a href="https://github.com/hiroppy/node-esm-example"><em>hiroppy/node-esm-example</em></a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*S5pWQC8F2aDD8b-f8lz_XA.png" /></figure><p>You can specify the type attribute in package.json. This attribute has `commonjs` and `module`, and the default is `commonjs`.</p><p>However, this key name might be changed. See the <a href="https://github.com/nodejs/modules/issues/312">issue</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AowdGF4TwoUNH0vG8MUaaA.png" /></figure><p>The directory structure is the same as the previous slide. Since ESM does not have a `module` variable, it is ESM if `module` is `undefined`.</p><p>Look at the output results. At first, `./esm/index.js` is called and output as ESM. This file depends on package.json of the root directory. Next, `./esm/cjs/index.js` is called and output as CJS. This file depends on package.json which exists in the same hierarchy and this package.json doesn’t have `type` attribute. Finally, `./root.js` outputs as ESM because package.json in the same hierarchy has `type:module`.</p><p>If package.json in the root directory doesn’t have `type:module`, this file can not be executed. Because it is executed as CJS, it can not interpret import syntax.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2wSZv5IFkRWPtcghJGOJBA.png" /></figure><p>If you don’t want to follow this rule for specific files, you specify the extension. You can use `.mjs` and `.cjs` extensions. If you want to read as ESM, use the `.mjs` extension. If you want to read as CJS, use the `.cjs` extension.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1ftqs_aYksPJqYO9xCrAGQ.png" /></figure><p>Currently, this is an ongoing task. These tasks will be improved before the `— experimental-modules` flag is removed.</p><p><a href="https://github.com/nodejs/modules/blob/master/doc/announcement.md#works-in-progress"><em>Works in progress</em></a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HJ19OY_zy9htS_wnEsF-4Q.png" /></figure><p>Please look forward to future Node.js😄</p><h3><strong>References</strong></h3><ul><li><a href="https://github.com/nodejs/modules">nodejs/modules</a></li><li><a href="https://developers.google.com/web/fundamentals/primers/modules">Using JavaScript modules on the web</a></li><li><a href="https://blog.hiroppy.me/entry/nodejs-experimental-modules">Node.js の新しいモジュール方式の実験的導入</a></li><li><a href="https://blog.jxck.io/entries/2017-06-21/nomodule-attribute.html">ES Modules への橋渡しとしての nomodule 属性</a></li></ul><h3><strong>Special Thanks to</strong></h3><p><a href="https://medium.com/u/710ac236583a">Daijiro Wachi</a> Thank you for reviewing my English.</p><p>If you have any questions, please feel free to ask me on <a href="https://twitter.com/about_hiroppy">Twitter</a>.🙃</p><p><strong>Thank you for your kind attention:)</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4bf873bcb21b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Introduce Fusuma that is a helper for creating a slide]]></title>
            <link>https://medium.com/@about_hiroppy/introduce-fusuma-that-is-a-helper-for-creating-a-slide-10d54775f255?source=rss-498cb1f7b82d------2</link>
            <guid isPermaLink="false">https://medium.com/p/10d54775f255</guid>
            <category><![CDATA[cli]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[presentations]]></category>
            <category><![CDATA[nodejs]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[hiroppy]]></dc:creator>
            <pubDate>Thu, 17 May 2018 21:08:53 GMT</pubDate>
            <atom:updated>2018-05-17T21:08:53.462Z</atom:updated>
            <content:encoded><![CDATA[<h3>Repository</h3><p><a href="https://github.com/hiroppy/fusuma">hiroppy/fusuma</a></p><h3>Theme</h3><p>Create a CLI that supports to release with 1 command without writing webpack, Babel, Postcssetc setting file.</p><p>And make a slide with <strong>markdown</strong> only.</p><p><strong>It can quickly create a slide and release it quickly.</strong></p><h3>Demo</h3><p><a href="https://slides.hiroppy.me/the-present-and-future-of-JavaScript/">the present and future of JavaScript</a></p><p>This code is <a href="https://github.com/hiroppy/slides/tree/master/slides/the-present-and-future-of-JavaScript">here</a>.</p><h3>What it can do · What it can not do</h3><h4>what it can do</h4><ul><li>development, build, and deploy can be done with one command</li><li>presenter mode: <a href="https://github.com/hiroppy/fusuma#presenter-mode">https://github.com/hiroppy/fusuma#presenter-mode</a></li><li>a table of contents is created in Sidebar</li><li>can extend css and js</li><li>can set OGP and SNS</li><li>etc…</li></ul><h4>What it can not do</h4><p>Expressing animation is difficult because a slide is written by Markdown.</p><p>However, you can write a slide as HTML and extend JS.</p><h3>Procedure</h3><p>You just execute the following three lines for executing, generating and deploying slides.</p><pre>$ npm i fusuma -D<br>$ npx fusuma init <br>$ mkdir slides &amp;&amp; touch slides/title.md &amp;&amp; echo &#39;# Hello😄&#39; &gt; slides/title.md<br><br># --- executable tasks---<br>$ npx fusuma start                     # development<br>$ NODE_ENV=production npx fusuma build # production<br>$ npx fusuma deploy                    # deploy to github pages<br>$ npx fusuma pdf                       # export as PDF from HTML<br><br># --- Tree ---<br>$ tree -a<br>.<br>├── .fusumarc.yml<br>└── slides<br>    └── title.md<br><br>1 directory, 2 files</pre><p>When npx fusuma startis executed, it is output as follows.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3F6uex8DZw284VYs9biZ8g.png" /></figure><p>Default theme is bespoke-theme-nebula.</p><p>And only .fusumarc.jsand slides/are necessary files at the time of execution.</p><p>The sample repository is as follows.</p><p><a href="https://github.com/hiroppy/fusuma-sample">hiroppy/fusuma-sample</a></p><h3>Tasks</h3><p>Fusuma supports the following tasks.</p><ul><li>init: generate the configuration file(.fusumarc.js)</li><li>start: run with webpack-dev-server</li><li>build: build with webpack4</li><li>deploy: upload the prebuilt files to gh-pages</li><li>pdf: convert prebuilt files from HTML to pdf</li></ul><h3>Next Step</h3><p>Add support for reveal.js 😏</p><p>If you interested in Fusuma, please see this repository😍</p><p><a href="https://github.com/hiroppy/fusuma">hiroppy/fusuma</a></p><p>Cheers!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=10d54775f255" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[sweetpack: helps eliminate time to suffer from webpack and babel]]></title>
            <link>https://medium.com/@about_hiroppy/sweetpack-helps-eliminate-time-to-suffer-from-webpack-and-babel-d814c7bf2163?source=rss-498cb1f7b82d------2</link>
            <guid isPermaLink="false">https://medium.com/p/d814c7bf2163</guid>
            <category><![CDATA[nodejs]]></category>
            <category><![CDATA[babel]]></category>
            <category><![CDATA[webpack]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[frontend]]></category>
            <dc:creator><![CDATA[hiroppy]]></dc:creator>
            <pubDate>Mon, 11 Sep 2017 15:14:56 GMT</pubDate>
            <atom:updated>2017-09-11T15:14:56.148Z</atom:updated>
            <content:encoded><![CDATA[<p><a href="https://github.com/abouthiroppy/sweetpack">abouthiroppy/sweetpack</a></p><pre>$ npm i sweetpack --save-dev</pre><h3>What’s sweetpack?</h3><p>sweetpack helps you build your environment of webpack and babel.<br>sweetpack hides all common settings of webpack and babel, you are not taking the time to write the configuration.</p><blockquote>Every time I make a simple application I am tired of writing similar configuration files.</blockquote><p>This was a motivation for my development.</p><h3>Goal</h3><p>webpack can do anything so I think it is very difficult to abstract.<br>So, the goal is to help you build<strong> a simple application</strong> at first.<br>Also, the target is web.</p><h3>What can sweetpack do?</h3><p>sweetpack supports the following.</p><ul><li>uses reactby the option(default: false)</li><li>uses flow by the option(default: false)</li><li>uses css-modules by the option(default: false)</li><li>uses postcss-loader by the option(default: false)</li><li>uses a template engine of html(by html-webpack-plugin)</li><li>can load .env</li><li>webpack-dev-server is activated and enabled <a href="https://webpack.js.org/concepts/hot-module-replacement/">HMR</a> by default at development</li><li>uses react-hot-loader@next at development(default: false)</li><li>attaches hash to the filename when production</li><li>splits files by extension when production(default: false)</li><li>performs code optimization when production</li></ul><h3>.sweetpack.yml</h3><p>sweetpach provides the config file.</p><p>The default settings are as follows.</p><pre>entry: src/index.js<br>output: dist<br>js:<br>  flow: false<br>  react: false<br>css:<br>  modules: false<br>  postcss: false<br>html:<br>  filename: null<br>  template: null<br>dev:<br>  port: 8080<br>  dashboard: true<br>prod:<br>  extract: false</pre><p>If the configuration file can not be found, the above default setting is reflected.</p><p>This file can be generated with init.</p><h3>Plugins Included</h3><p>The list of used plugins is <a href="https://github.com/abouthiroppy/sweetpack#activated-plugins">here</a>.</p><h3>Example</h3><p>An example of the smallest configuration.</p><p><em>package.json</em></p><pre>{<br>  &quot;scripts&quot;: {<br>    &quot;start&quot;: &quot;sweetpack watch&quot;,<br>    &quot;build&quot;: &quot;cross-env NODE_ENV=production sweetpack build&quot;<br>  }<br>}</pre><p><em>.sweetpack.yml</em></p><pre>entry: ./lib/index.js<br>output: dist/bundle.js</pre><p><em>Directory structure</em></p><pre>dist<br>├── lib<br>│   └── index.js<br>└── package.json</pre><pre>1 directory, 2 files</pre><p>If you run npm start, You can develop using webpack-dev-server and webpack-dashboard during development.</p><p>And you run npm run build , dist/ is created.</p><pre>dist<br>├── bundle.2ea3ca43d449dd5fdc16.js<br>└── index.html</pre><pre>0 directories, 2 files</pre><p>html and js are automatically created and the hash is added to the file name.(also optimized)</p><p>Of course, css-loader and file-loader are included, so you can use css, png, gif, etc.</p><p><strong>It is very easy to build development environment and production environment</strong>🤓</p><p>An example of turning on all settings</p><p><a href="https://github.com/abouthiroppy/sweetpack/tree/master/samples/all">https://github.com/abouthiroppy/sweetpack/tree/master/samples/all</a></p><h3>feedback is very very welcome :)</h3><p>If you are interested, please use sweetpack🙏</p><p><a href="https://github.com/abouthiroppy/sweetpack">https://github.com/abouthiroppy/sweetpack</a></p><p>Hope you enjoy it!!</p><p>Cheers.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d814c7bf2163" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Scuba(CSS framework)]]></title>
            <link>https://medium.com/@about_hiroppy/scuba-css-framework-8b922c11ca08?source=rss-498cb1f7b82d------2</link>
            <guid isPermaLink="false">https://medium.com/p/8b922c11ca08</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[framework]]></category>
            <category><![CDATA[css]]></category>
            <dc:creator><![CDATA[hiroppy]]></dc:creator>
            <pubDate>Thu, 15 Dec 2016 12:18:30 GMT</pubDate>
            <atom:updated>2016-12-15T12:21:03.265Z</atom:updated>
            <content:encoded><![CDATA[<h3>Scuba(CSS Framework)</h3><p>Hi :)</p><p>I have released 0.1.0 of the CSS Framework that built by React called Scuba.</p><p>I started development from 11/28.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gGekXmu6Tq1mdTHFSXNbZA.png" /></figure><p><a href="https://abouthiroppy.github.io/scuba/#/"><em>https://abouthiroppy.github.io/scuba</em></a></p><p>The reason I came up with this was because the other day, when I wanted to revamped my web site, I came to realize it is very difficult to decide on how to allocate colors.</p><p>I wanted CSS Framework which allocates colors to some degree, and went about developing it.</p><p>Scuba’s goal is simple: to standardize the colors on a page, and allocate colors. Scuba’s feature is a set of five themes providing two sub-colors. These are reflected within components called Containers. The user only needs to decide on the background color. (Of course, the theme and sub-colors can be changed!) If there is any part you want to change, you can do so like React, overwriting it with objects in the style.</p><p>Please take a look at the official site. (<a href="https://abouthiroppy.github.io/scuba/#/"><em>https://abouthiroppy.github.io/scuba</em></a><em>)</em></p><p>There, everything below the body is contained within a Container. A change in color is reflected within the whole Container. Try entering a hexadecimal number to choose a background color that you think matches the page.</p><p>If you are interested, please try using Scuba😘</p><p>We are also waiting for Pull-Request or Issue!</p><p>Hope you enjoy it 😋</p><p>Thanks!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8b922c11ca08" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>