rescript-lang / create-rescript-app Goto Github PK
View Code? Open in Web Editor NEWnpm create rescript-app
Home Page: https://www.npmjs.com/package/create-rescript-app
npm create rescript-app
Home Page: https://www.npmjs.com/package/create-rescript-app
If you decide to write the project in ReScript you can find the inquirer
bindings useful https://github.com/Nicolas1st/net-cli-rock-paper-scissors/blob/main/apps/client/src/UI.res
Of the 5 templates
basicRepo = "https://github.com/rescript-lang/rescript-project-template.git"
defaultRepo = "https://github.com/mahezsh/rescript-template-default.git"
nextJsRepo = "https://github.com/ryyppy/rescript-nextjs-template.git"
graphqlRepo = "https://github.com/mahezsh/rescript-template-graphql.git"
sbRepo = "https://github.com/mahezsh/rescript-template-storybook.git"
only basic and nextJs are currently working.
@mahezsh What happened to the three templates under https://github.com/mahezsh?
Hi @mahezsh,
We will be removing the built-in templates ("rescript init") from the ReScript compiler in version 11 as they are completely outdated, see rescript-lang/rescript-compiler#5682.
We would like to keep such functionality (creation of new projects from templates) decoupled from the compiler in the future.
I like the simple approach taken in your create-rescript-app project. Would it be possible to transfer it to the rescript-lang organization so that we can continue maintaining it there, and also give the ReScript team access to the create-rescript-app npm package?
$ bun create rescript-app
Error: Command failed: npm view rescript versions --json
│ 'npm' is not recognized as an internal or external command,
│ operable program or batch file.
│
│
└ Project creation failed.
■ Canceled
This is a command directly from the website...
Currently (as of v1.4.0) providing these two:
What other templates could/should we provide (while not going overboard with this and still keeping things minimalistic)?
How/where should the templates be stored to enforce consistency and avoid breakage?
Should we provide "experimental" templates for trying out things like JSX4?
This could be a neat thing - configure gentype automatically whenever adding to an existing project with TS already installed.
We could:
"module"
and "moduleResolution"
in gentype via tsconfig.json
allowJs
is not true
in tsconfig.json
and explain why it's neededGoing for a "1 command to get setup" approach.
cc @cometkim
I've cloned an empty project from github, containing only readme and licence. Running npm init rescript-app
created a nested directory. In this case I'd like to have an option to put everything in the current directory.
Works:
yarn create rescript-app my-app -b
Does not work:
yarn create rescript-app my-app --basic
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.