GithubHelp home page GithubHelp logo

Comments (12)

torounit avatar torounit commented on June 19, 2024

sass版にはnormalize 同梱しないとか・・・?

from basis.

inc2734 avatar inc2734 commented on June 19, 2024
$ git clone [email protected]:inc2734/basis.git
$ git checkout -b develop
$ git pull origin develop
$ npm install
$ gulp

とやると普通にビルドできたのですが、僕の再現手法が間違っているか、前の issue であったような npm のバージョンの問題ですか?

from basis.

torounit avatar torounit commented on June 19, 2024

npm 経由でとってくると、normalizeをとってくるときにばぐるっぽいです

from basis.

inc2734 avatar inc2734 commented on June 19, 2024

[email protected][email protected]
npm install "git://github.com/inc2734/basis.git#develop"
でインストールできましたが、コマンドあってますかね…?

あ、これでとってきたのを使おうと(コンパイルしようと)したらバグるってことですかね

from basis.

torounit avatar torounit commented on June 19, 2024

説明が悪いですね。

npm install "git://github.com/inc2734/basis.git#develop"

でとってきた basis に対して、

@import "../node_modules/sass-basis/src/scss/basis"

等とした場合、その Sass を普通にコンパイルした場合、node_modules からとってきている、normalize.scss が見つからん!というエラーを吐きます。

ユーザー側で、普通に gulp 等で、sass をコンパイルすると、sass-module-importer 等をインストールして設定してもらえれば解決するんですが、それはどうなのよ・・・・。というはなしです。

from basis.

inc2734 avatar inc2734 commented on June 19, 2024

あーなるほど理解しました。sass-module-importer がないと @import "inuit-normalize"; では勝手に node_modules の中から normalize をインポートできないわけですね。だからといって相対パスに書き直すと、2系と3系でパスが変わるから NG と。npm install したときに自動ビルド走るので、その中で npm 経由の normalize をコピーするようにすれば行けそうな気がしますが、すごくめんどくさそうなので最初から含めたほうがよくね?ということですね…。

from basis.

inc2734 avatar inc2734 commented on June 19, 2024

a43f8eb で僕の環境ではビルドできましたが、@torounit さんの環境でもビルドできますか?

from basis.

torounit avatar torounit commented on June 19, 2024

git clone してきた場合、問題なかったです。

package.jsonに書いて実行した場合、npm install 時
node 5.5, npm 3.7 ではビルドできました。
ですが、 node 4.2.3 npm 2.14.7 だとエラーこきます。(たいした情報は無い) その後、もう一度 npm install するとビルドできます。。。

from basis.

inc2734 avatar inc2734 commented on June 19, 2024

おぉ、今度は2系でダメですか…。もう一度やるとビルドできるのであればもうこれでマージしちゃおうかな。。

from basis.

torounit avatar torounit commented on June 19, 2024

それ怒られる奴!

from basis.

inc2734 avatar inc2734 commented on June 19, 2024

(TT) 良い方法だと思ったんですけどね…。 安全なのは同梱ですかねー。Foundation や Bootstrap も同梱してるようですし。

from basis.

torounit avatar torounit commented on June 19, 2024

いや、これは!とは思ったんですがね。まぁ、バージョンが上がれば消滅する問題っぽいので、それまでは同梱してもいいのかなーとは。やり方自体は散々やったのでいつでも復活させらさますしw

from basis.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.