Deleted articles cannot be recovered. Draft of this article would be also deleted. Are you sure you want to delete this article?
var Ether = (function() { /** * コンストラクタでethereumjs-txとethtereumjs-utilを読み込み */ var Ether = function(require) { if(!(this instanceof Ether)) { return new Ether(require); } this.Util = require('ethereumjs-util'); this.Tx = require('ethereumjs-tx'); } Ether.prototype.setChain = function(chain){ switch(chain){ case 'mainnet': return {'node':'https://mainnet.infura.io/[infura.ioのAPI KEY]','api':'https:
はじめまして。sekinoca です。 今回は React を使って作成した Web ページを TravisCI を使って GitHub Pages に自動デプロイする方法を紹介します。 少し丁寧に説明しすぎた感があるので適宜読み飛ばしてください。 ソースコード 今回の使用するソースコードは以下になってます。 https://github.com/sekinoca/sekinoca.github.io 使ったもの React Redux React Redux Webpack Webpack-serve Material-UI TravisCI リポジトリの作成 Repository name に <username>.github.io と入力し、Public リポジトリとして作成してください。 * <username> の部分は自分の GitHub ユーザー名に置き換えてください。 W
追記: webpack-serve は非推奨になり、 webpack-dev-server の開発が再開しました。ここは webpack-dev-server を使っておきましょう。 とりあえず動かしたい場合は https://qiita.com/ma2saka/items/eb4190a009da9649583c に最低限の設定方法を書いたのでそちらを参照する。 webpack-serve は webpack で開発しながら動的にビルド走らせてサーバで動作確認するためのものと認識している。「ファイルを監視して webpack を適切に実行してブラウザをリロードする」が主な役割。 ただ「本番系では手前にリバースプロキシがいてURLの書き換えやってる」とか「APIサーバが別にいてそっちへのアクセスはモックしたい」とかいろいろ都合があるもので、そのあたりはアドオンとしてカスタマイズする流れにな
本日、Parcel v1.9.0がリリースされました Parcel v1.9.0 is out! 🚀 🌳 Tree Shaking + scope hoisting for both ES6 and CommonJS modules! 👀 Up to 2x faster file watcher 💵 Cache resolved file names 🔎 Extended resolver for SASS, LESS, and Stylus 🚨 Improved browser error reporter 📝 Read more: https://t.co/6IXWVOkMRC pic.twitter.com/LcdVsKt0RK — Parcel (@parceljs) 2018年6月14日 元記事) 📦 Parcel v1.9.0 — Tree Shaking, 2
概要 nextjs + typescriptをdockerとkubernetesを用いて動かすため、minikubeを使ってローカル環境で諸々を試していてhmrが効かないということに遭遇したので、その対処方法を備忘録としてメモ。 環境 os x 10.11.6 nextjs 6.1.1 minikube v0.28.2 virtualbox 5.2.16 何をしていたか nextjs + typescriptのアプリケーションを公式を参考に最低限動作させた yarn dev起動し、簡単にhmr導入できるなーと感動していた Dockerfileを作って↑をimage化 docker runでも動くことを確認 minikube、kubectl、helmを入れて諸々ゴニョゴニョ minikubeのhypervisorとしてはvirtualboxを使う helmのdeploymentでホストディレ
🚨 /my/project/src/index.pug: Cannot destructure property `parser` of 'undefined' or 'null'. at Object.MakeTranspileAsset (/my/project/node_modules/parcel-plugin-typescript/build/frontend/assets/classes/transpile.js:7:24) at new module.exports (/my/project/node_modules/parcel-plugin-typescript/build/frontend/assets/forked.js:6:43) at Parser.getAsset (/my/project/node_modules/parcel-bundler/src/Par
Rails アプリを Capistrano でデプロイするとき deploy:assets:precompile タスクでフロントまわりのビルドが走ります。 デプロイ先のサーバーが低スペックだと、そのビルドに時間がかかってデプロイがなかなか終わりません。その上、サーバーの負荷も上昇し、サービスも不安定になってしまいます。 そこでプリコンパイルだけローカルで行うようにする例がこちらです。 unless ENV["REMOTE_BUILD"] == "1" # 元のタスクの内容は消しておく(重要) Rake::Task["deploy:assets:precompile"].clear # 新しく定義 # cap production deploy:assets:precompile desc "ローカルで assets:precompile してコピー" task "deploy:asset
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く