Coder Social home page Coder Social logo

solid-scripts's Introduction

Solid Scripts

DEPRECATED

Has been replaced by SolidStart

Commandline Scripts used to power create-solid

For Solid 1.x use 0.57 or greater For Solid 0.x use 0.56

solid-scripts's People

Contributors

anton7r avatar dependabot[bot] avatar jager567 avatar jfgodoy avatar kmmbvnr avatar phungleson avatar ryansolid avatar whu-works avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

solid-scripts's Issues

index.js file in dos format (?)

I have a problem running the scripts after a yarn install on an app created with npm init solid ts-app my-app on OS X

When first created, the app runs without problem on yarn start, however if I delete the node_modules folder (to simulate a fresh repo clone) and run yarn to install packages I get

yarn run v1.17.3
$ solid-scripts start
env: node\r: No such file or directory
error Command failed with exit code 127.

My guess was that for some reason the index.js in the solid-scripts module had the wrong line ending format, so I performed dos2unix node_modules/solid-scripts/index.js, and yarn start ran without issue.

What I don't understand is the different behavior when the app is freshly created than when yarn install is used.

DevDependencies inside Dependencies

Hi,
I created the typescript starter project and saw that things like typescript and @types are inside the dependencies inside package.json.
Is this by choice as solid is only supposed to generate the final files? I saw similar organisation inside this repo too.

I can create a PR to move stuff to devDependencies so that the project follows the universal standard. It will also allow people who are starting out with JS ecosystem to have a consistent feel.

Support optional chaining and nullish coalescing operators

I'm using TypeScript, which supports the ?. (optional chaining) and ?? (nullish coalescing) operators.

Unfortunately, I can't use these with solid-scripts, because Babel isn't configured to deal with them. The result is that TypeScript checking passes, but the Babel build fails. The workaround is to avoid these operators.

This can be fixed with the following plugins:

npm audit vulnerabilities

Some of these don't seem too bad, but some of them seem potentially concerning. Looks like upgrading would fix.


                       === npm audit security report ===                        


                                 Manual Review                                  
             Some vulnerabilities require your attention to resolve             
                                                                                
          Visit https://go.npm.me/audit-guide for additional guidance           


  High            Prototype Pollution                                           

  Package         immer                                                         

  Patched in      >=8.0.1                                                       

  Dependency of   solid-scripts [dev]                                           

  Path            solid-scripts > react-dev-utils > immer                       

  More info       https://npmjs.com/advisories/1603                             


  Moderate        Regular Expression Denial of Service                          

  Package         browserslist                                                  

  Patched in      >=4.16.5                                                      

  Dependency of   solid-scripts [dev]                                           

  Path            solid-scripts > react-dev-utils > browserslist                

  More info       https://npmjs.com/advisories/1747                             


  Moderate        Regular expression denial of service                          

  Package         glob-parent                                                   

  Patched in      >=5.1.2                                                       

  Dependency of   solid-scripts [dev]                                           

  Path            solid-scripts > react-dev-utils >                             
                  fork-ts-checker-webpack-plugin > chokidar > glob-parent       

  More info       https://npmjs.com/advisories/1751                             


  Moderate        Regular expression denial of service                          

  Package         glob-parent                                                   

  Patched in      >=5.1.2                                                       

  Dependency of   solid-scripts [dev]                                           

  Path            solid-scripts > webpack > watchpack > watchpack-chokidar2 >   
                  chokidar > glob-parent                                        

  More info       https://npmjs.com/advisories/1751                             


  Moderate        Regular expression denial of service                          

  Package         glob-parent                                                   

  Patched in      >=5.1.2                                                       

  Dependency of   solid-scripts [dev]                                           

  Path            solid-scripts > webpack-dev-server > chokidar > glob-parent   

  More info       https://npmjs.com/advisories/1751                             


  Moderate        Regular expression denial of service                          

  Package         glob-parent                                                   

  Patched in      >=5.1.2                                                       

  Dependency of   solid-scripts [dev]                                           

  Path            solid-scripts > react-dev-utils > globby > fast-glob >        
                  glob-parent                                                   

  More info       https://npmjs.com/advisories/1751                             


  High            Denial of Service                                             

  Package         css-what                                                      

  Patched in      >=5.0.1                                                       

  Dependency of   solid-scripts [dev]                                           

  Path            solid-scripts > optimize-css-assets-webpack-plugin > cssnano  
                  > cssnano-preset-default > postcss-svgo > svgo > css-select   
                  > css-what                                                    

  More info       https://npmjs.com/advisories/1754                             


  High            Regular Expression Denial of Service                          

  Package         normalize-url                                                 

  Patched in      >=4.5.1 <5.0.0 || >=5.3.1 <6.0.0 || >=6.0.1                   

  Dependency of   solid-scripts [dev]                                           

  Path            solid-scripts > extract-css-chunks-webpack-plugin >           
                  normalize-url                                                 

  More info       https://npmjs.com/advisories/1755                             


  High            Regular Expression Denial of Service                          

  Package         normalize-url                                                 

  Patched in      >=4.5.1 <5.0.0 || >=5.3.1 <6.0.0 || >=6.0.1                   

  Dependency of   solid-scripts [dev]                                           

  Path            solid-scripts > optimize-css-assets-webpack-plugin > cssnano  
                  > cssnano-preset-default > postcss-normalize-url >            
                  normalize-url                                                 

  More info       https://npmjs.com/advisories/1755                             

found 9 vulnerabilities (5 moderate, 4 high) in 1809 scanned packages
  9 vulnerabilities require manual review. See the full report for details.

eject script

create-react-app like eject functionality would definitely be really nice to have.

so i will start working on it.

environment variables

I figured out how to add environment variables to my project by adding a .env file in the root folder, but the variables require to start with REACT_APP_. was this overlooked?

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.