Giter Site home page Giter Site logo

resattributes's Introduction

NPM version

Generates or appends ReasonML and Rescript .gitattributes.

npx resattributes

Gets you:

# Tell github that .re and .rei files are Reason, sometimes recognized as C/C++
*.re linguist-language=Reason 
*.rei linguist-language=Reason
*.res linguist-language=ReScript
*.resi linguist-language=ReScript

image

See also:

bsconfig.json

resgitignore

mlxre

[Share on Twitter...](https://twitter.com/share?text=Quickly+generate+a+bsconfig.json+file+ for+reasonml+and+rescript+projects!+https://github.com/idkjs/bsconfig.json) Inspired by benawad/tsconfig.json

Share on Twitter...

resattributes's People

Contributors

idkjs avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

resattributes's Issues

first line is wrapped in double quotes

Running npx resattributes produces this:

"# Tell github that .re and .rei files are Reason, sometimes recognized as C/C++"
*.re linguist-language=Reason 
*.rei linguist-language=Reason
*.res linguist-language=ReScript
*.resi linguist-language=ReScript

instead of

# Tell github that .re and .rei files are Reason, sometimes recognized as C/C++
*.re linguist-language=Reason 
*.rei linguist-language=Reason
*.res linguist-language=ReScript
*.resi linguist-language=ReScript

Somehow the index.sh is escaped in the tarball that was released:

#!/usr/bin/env sh
echo "\"# Tell github that .re and .rei files are Reason, sometimes recognized as C/C++"\" >> ${PWD}/.gitattributes
echo "*.re linguist-language=Reason " >> ${PWD}/.gitattributes
echo "*.rei linguist-language=Reason" >> ${PWD}/.gitattributes
echo "*.res linguist-language=ReScript" >> ${PWD}/.gitattributes
echo "*.resi linguist-language=ReScript" >> ${PWD}/.gitattributes

I tried replicating this using yarn pack but could not.

I think we need another release after feb1cdd ๐Ÿค”

Thanks for making this :)

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.