GithubHelp home page GithubHelp logo

Comments (11)

anikethsaha avatar anikethsaha commented on August 15, 2024 1

On it 👍

Update:
Will try to resolve it 😄

from just.

kenotron avatar kenotron commented on August 15, 2024 1

@anikethsaha - also I just want to mention that you're a rock star :)

from just.

kenotron avatar kenotron commented on August 15, 2024

This should be a pretty straight forward fix - would you want to contrib, @moltar ?

from just.

anikethsaha avatar anikethsaha commented on August 15, 2024

@kenotron It is copying everything from the template but not the jest config file. not sure why. Should I add the jest config to package.json ?

PS: Or I guess it's by adding .hbs so that at least it will copy using this method.

from just.

kenotron avatar kenotron commented on August 15, 2024

The templating is not as mature at this moment - but yeah I would have expected it to copy jest.config.js as well...

from just.

anikethsaha avatar anikethsaha commented on August 15, 2024

No man....this package rocks....and a big thanks to you for your awesome work! 👍

PS : for time being I will add jest config to package.json. Then we can refactor the templating maybe we can use a third party library like yeoman for generating the template

from just.

kenotron avatar kenotron commented on August 15, 2024

@anikethsaha / @moltar - would you mind telling me how you generated the single-lib app?

I've tried (on a Mac), and it works:

oasis:workspace ken$ npm init just
✔ What type of repo to create? › Basic library
✔ What is the name of the repo to create? … testsingle
[1:15:28 PM] ■ Initializing the repo in /Users/ken/workspace/testsingle

> [email protected] install /Users/ken/workspace/testsingle/node_modules/fsevents
> node install

node-pre-gyp WARN Using request for node-pre-gyp https download 
[fsevents] Success: "/Users/ken/workspace/testsingle/node_modules/fsevents/lib/binding/Release/node-v64-darwin-x64/fse.node" is installed via remote
npm notice created a lockfile as package-lock.json. You should commit this file.
added 681 packages from 469 contributors and audited 875237 packages in 13.221s
found 0 vulnerabilities

[1:15:42 PM] ■ All Set!
[1:15:42 PM] ■ 
# testsingle

testsingle is a package created and managed with the create-just utility.

## Next Steps

Now that you have created this repository, go ahead and run the following to get started:

    npm install
    npm start


oasis:workspace ken$ cd testsingle
oasis:testsingle ken$ ls
README.md		just-task.js		package-lock.json	src
jest.config.js		node_modules		package.json		tsconfig.json
oasis:testsingle ken$ npm t

> [email protected] test /Users/ken/workspace/testsingle
> npx just test

[1:16:09 PM] ■ started 'test'
[1:16:09 PM] ■ started 'clean'
[1:16:09 PM] ■ Removing [lib, temp, dist, coverage, lib-commonjs]
[1:16:09 PM] ■ finished 'clean' in 0s
[1:16:09 PM] ■ started 'jest'
[1:16:09 PM] ■ Running Jest
[1:16:09 PM] ■ /Users/ken/.nvm/versions/node/v10.15.1/bin/node "/Users/ken/workspace/testsingle/node_modules/jest/bin/jest.js" --config "/Users/ken/workspace/testsingle/jest.config.js" --passWithNoTests --colors
 PASS  src/__tests__/hello.spec.ts
  hello
    ✓ says hello to a name (3ms)

Test Suites: 1 passed, 1 total
Tests:       1 passed, 1 total
Snapshots:   0 total
Time:        1.573s
Ran all test suites.
[1:16:12 PM] ■ finished 'jest' in 2.22s
[1:16:12 PM] ■ finished 'test' in 2.24s

from just.

anikethsaha avatar anikethsaha commented on August 15, 2024

Its the same command on windows ! that's it

from just.

moltar avatar moltar commented on August 15, 2024
❯ cd /tmp

/tmp
❯ npm init just
npx: installed 1 in 2.178s
✔ What type of repo to create? › Basic library
✔ What is the name of the repo to create? … foobarbaz
[9:22:36 AM] ■ Initializing the repo in /private/tmp/foobarbaz

> [email protected] install /private/tmp/foobarbaz/node_modules/fsevents
> node install

node-pre-gyp WARN Using request for node-pre-gyp https download
[fsevents] Success: "/private/tmp/foobarbaz/node_modules/fsevents/lib/binding/Release/node-v64-darwin-x64/fse.node" is installed via remote
added 678 packages from 469 contributors and audited 875235 packages in 19.46s
found 0 vulnerabilities

[9:22:58 AM] ■ All Set!
[9:22:58 AM] ■
# foobarbaz

foobarbaz is a package created and managed with the create-just utility.

## Next Steps

Now that you have created this repository, go ahead and run the following to get started:

    npm install
    npm start



/tmp 32s
❯ cd foobarbaz

/tmp/foobarbaz master
❯ ll
total 464
-rw-r--r--    1 roman  wheel   227B  2 Jul 09:22 README.md
-rw-r--r--    1 roman  staff    96B 26 Oct  1985 just-task.js
drwxr-xr-x  499 roman  wheel    16K  2 Jul 09:22 node_modules
-rw-r--r--    1 roman  wheel   214K  2 Jul 09:22 package-lock.json
-rw-r--r--    1 roman  wheel   723B  2 Jul 09:22 package.json
drwxr-xr-x    5 roman  wheel   160B  2 Jul 09:22 src
-rw-r--r--    1 roman  staff   523B 26 Oct  1985 tsconfig.json

/tmp/foobarbaz master
❯ npm t

> [email protected] test /private/tmp/foobarbaz
> npx just test

[9:23:12 AM] ■ started 'test'
[9:23:12 AM] ■ started 'clean'
[9:23:12 AM] ■ Removing [lib, temp, dist, coverage, lib-commonjs]
[9:23:12 AM] ■ finished 'clean' in 0.01s
[9:23:12 AM] ■ started 'jest'
[9:23:12 AM] ▲ no jest configuration found, skipping jest
[9:23:12 AM] ■ finished 'jest' in 0s
[9:23:12 AM] ■ finished 'test' in 0.02s

from just.

kenotron avatar kenotron commented on August 15, 2024

I'll have to take a look at this a bit more today, thanks for bearing with me...

from just.

kenotron avatar kenotron commented on August 15, 2024

I think I fixed this one!

from just.

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.