Archive for 3月, 2015

 

node , express, typescript , grunt 環境修復メモ

3月 31st, 2015

# express とりあえず http://expressjs.com/starter/generator.html $ express myapp $ cd myapp $ npm install package.json を置き換えて npm installでとりあえず # typescript $ npm install tsd $ tsd init tsd.jsonを置き換え https://github.com/DefinitelyTyped/tsd $ tsd reinstall –save –overwrite # grunt http://gruntjs.com/getting-started Gruntfile.jsを置き換え # あと scssとか http://bootflat.github.io/

Read full article | コメントは受け付けていません。

git 消えたファイルを復帰出来るのか?

3月 31st, 2015

ファイルが全部消えました・・・ ・cloneして、いろいろ設定してある程度ベース開発が出来たところで、 必要なファイルをすべて git add したけど なんか?と思い git pull してみました。。。 addしたファイルが全部消えました・・・ ・他で、ほぼ空で最初のコミットがされていてその状態がHEADとなって、その状態になりました。 通常だと、addしたファイルは当然残るのですが、まだ一度もcommitしていないと headの状態になるだけのようで・・・ add してないファイルだけ生き残っています・・・ $ git reflog 94c508c HEAD@{0}: initial pull initial pullの文字が。 .gitの中にはいろいろファイルがあるのでもしかしたら生き残りがいるかもと 調べるとaddしたファイルは復帰出来る可能性が・・・ $ git fsck –lost-found dangling blob ec7fa6ddc2bf0f237e52d8b9d4050443547cfba2 dangling blob f01f8be35c60be0887fe9982426e68493ac9b45a –lost-found または –fullも同じ内容でした .git/lost-found/other に入っているファイルのようですね これは復帰出来るらしく git unpack-file ec7fa6ddc2bf0f237e52d8b9d4050443547cfba2 で .merge_file_q1LV3t のようなファイルに展開されました。あまり意味ないような・・・ とりあえず、作ったファイルと、設定ファイルの内容は確保出来ました。 しかし、配置、ファイル名はまだ戻っていません・・・ tree objectがあると git read-tree […]

Read full article | コメントは受け付けていません。

iOS , unity | iphonesimulator not found unity

3月 23rd, 2015

久しぶりにシミュレータで動かそうとしたらエラーで。 http://stackoverflow.com/questions/25088252/xcode-error-creating-lldb-target この辺かと思ったら少し違う? Base SDK iphonesimulator sdk not found まったくわからあない http://forum.unity3d.com/threads/ios8-xcode6-compatibility.249533/page-2#post-1769753 とりあえず4.6.x ?で5.0は大丈夫そう?

Read full article | コメントは受け付けていません。

grunt で監視して typescriptを自動コンパイル

3月 16th, 2015

https://www.npmjs.com/package/grunt-typescript $ npm install grunt-typescript –save referenceも各ファイルに書かずに済んで良い感じです Gruntfiles.js module.exports = function(grunt) { grunt.initConfig({ cssmin: { minify: { files: { } } }, typescript: { base: { src: ['src/typescript/**/*.ts'], dest: ‘src/javascript’, options: { module: ‘commonjs’, target: ‘es5′, basePath: ‘src/typescript’, references: [ 'typings/tsd.d.ts' ], watch: ‘src/typescript’ } } } } grunt.loadNpmTasks(‘grunt-typescript’); }; 監視開始 $ grunt typescript Running […]

Read full article | コメントは受け付けていません。

typescript : tsd 定義ファイル管理

3月 16th, 2015

tsdで定義ファイルを管理します。 バージョンの確認が必要ですね $ sudo npm install -g tsd $ tsd init $ tsd query node -v all >> tsd 0.5.7 – node/node-0.10.d.ts : : 2015-03-15 14:36 – node/node-0.11.d.ts : : 2015-03-15 14:36 – node/node-0.8.8.d.ts : : 2015-03-15 14:36 – node/node.d.ts : : 2015-03-15 14:36 $ node -v v0.10.33 $ tsd query node -v ‘=0.10′ >> […]

Read full article | コメントは受け付けていません。

vim : cent os . vim 7.4 +lua

3月 8th, 2015

エラーが出たら何か入れる $ sudo yum install ncurses-devel $ sudo yum install mercurial http://www.vim.org/mercurial.php $ hg clone https://vim.googlecode.com/hg/ vim $ cd vim $ ./configure –enable-multibyte –with-features=huge –disable-selinux –enable-luainterp=yes –enable-perlinterp=yes –enable-rubyinterp=yes –enable-pythoninterp=yes なんかperl_endとかエラーが出るのでとりあえず・・・ –enable-perlinterp を外しました。

Read full article | コメントは受け付けていません。

nodejs : version指定してインストール

3月 8th, 2015

$ npm install -g typescript@1.4.1 typescript確認 $ tsc -v message TS6029: Version 1.4.1.0

Read full article | コメントは受け付けていません。

Typescriptを使ってみる。 javascript

3月 7th, 2015

http://www.typescriptlang.org/ visual studioでも利用出来るようですね $ sudo npm install -g typescript Password: /usr/local/bin/tsc -> /usr/local/lib/node_modules/typescript/bin/tsc typescript@1.4.1 /usr/local/lib/node_modules/typescript # とりあえずhandbook http://www.typescriptlang.org/Handbook handbookを一通り読みながら動かしてみた印象は・・・ わかりやすい。 tsと変換後のjsを比較出来るので勉強になりますね 他ライブラリ等利用するには定義ファイルが必要 https://github.com/borisyankov/DefinitelyTyped メジャーな物はあるそうなので良いのかな?と でもメンテナンスされてないと使えなくなるからそのあたりは問題かなと # angularjs https://angularjs.org/ meanスタックと言うのでフロントはgoogleのangularjsで良いようなので http://jp.techcrunch.com/2015/03/06/20150305microsoft-and-google-collaborate-on-typescript-hell-has-not-frozen-over-yet/ でtypescriptで良いようなので 2.x http://mean.io/#!/ とりあえず、meanスタックを使ってみる http://meanjs.org/ どっちが良いの? https://nodejs.org/ http://expressjs.com/ http://vuejs.org/

Read full article | コメントは受け付けていません。

vim : macvim を更新するluaを有効にしてインストール

3月 3rd, 2015

luaを有効にするため port からインストールしました。 sudo port install vim +python27 +ruby20 +lua +huge こんなので適当に

Read full article | コメントは受け付けていません。