Giter Club home page Giter Club logo

scuri-code's Introduction

scuri-code README

Release scuri code .github/workflows/test-scuri-code.yml

Like Scuri code? Want to 💸support it?

Features

Allows running SCURI (github) from the comfort of your beloved VS Code.

demo

Commands

SCuri Create Spec

Will generate a .spec file for the .ts file that is currently opened in the VS Code window

demo

SCuri Create Spec (overwrite)

Will generate a .spec file for the .ts file that is currently opened in the VS Code window overwriting existing spec if any.

Scuri Update

Will update the existing .spec file for the .ts file that is currently opened in the VS Code window

demo

Scuri Install Dependencies

Will run npm install --save-dev scuri @angular-devkit/schematics-cli in the current working folder root to install requirements

Requirements

It needs to install npm packages scuri and @angular-devkit/schematics-cli and typescript. Just run the Scuri Install Dependencies command from the command pallette F1/Ctrl + Shift + p or any other command and it will do the trick

Dependency Versions

All scuri, @angular-devkit/schematics-cli, and typescript versions are configurable via the config: scuri-code.scuri-version,scuri-code.angular-schematics-version, scuri-code.typescript-version.

Known Issues

  • not showing progress on commands Create or Update

Support scuri code

Via the github sponsors or

Buy Me A Coffee

scuri-code's People

Contributors

dependabot[bot] avatar gparlakov avatar

Stargazers

 avatar

Watchers

 avatar

scuri-code's Issues

Path issue (when not in Angular project?)

This might not be an issue since SCuri and SCuri-code assume user is working in an Angular workspace context. Still, for the record:

Seems that when scuri-code gets used out if angular workspace context (for example in the scuri repo for the example app components) we can not seem to get the folder correct :

Notice the CWD and the --name argument respectively finish and start with the same folder (scuri)

c:\Users\gparl\projects\scuri>c:\Users\gparl\AppData\Roaming\Code\User\globalStorage\gparlakov.scuri-code\deps\node_modules\.bin\schematics 
..\..\AppData\Roaming\Code\User\globalStorage\gparlakov.scuri-code\deps\node_modules\scuri\src\collection.json:spec 
--name scuri/example/angular-5-app/src/main.ts  --debug false --debug false
            The file scuri/example/angular-5-app/src/main.ts is missing or empty.
 (ERROR LINE)
            Params: name: scuri/example/angular-5-app/src/main.ts update: false
Nothing to be done.

Code restart required after installation?

After installing plugin Create spec command was failing with schematics not found error. I followed the path and saw that ~/.config/Code/User/globalStorage/gparlakov.scuri-code/deps was empty. After closing and reopening Code folder has stuff and command was working.

Sorry, I didn't take the time to test if it replicates.

Code version info:

Version: 1.62.3
Commit: ccbaa2d27e38e5afa3e5c21c1c7bef4657064247
Date: 2021-11-17T08:00:36.721Z
Electron: 13.5.2
Chrome: 91.0.4472.164
Node.js: 14.16.0
V8: 9.1.269.39-electron.0
OS: Linux x64 5.4.0-90-generic

Figure out why tests don't run

There is an error message when npm test is run - looks like webpack/ts/something else misses the test files and does not compile them...

Show notification on error

Example - Scuri create (overwrite) seems to fail when changes are in the git staging (before committing them) but the error remains hidden in the SCuri log

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.