Comments (11)
On it 👍
Update:
Will try to resolve it 😄
from just.
@anikethsaha - also I just want to mention that you're a rock star :)
from just.
This should be a pretty straight forward fix - would you want to contrib, @moltar ?
from just.
@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.
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.
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.
@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.
Its the same command on windows ! that's it
from just.
❯ 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.
I'll have to take a look at this a bit more today, thanks for bearing with me...
from just.
I think I fixed this one!
from just.
Related Issues (20)
- i18n support?
- Add Task for watch/dev mode - Checks for file changes in directories and runs scripts
- Logging page is missing output HOT 2
- just prints stderr to screen even if the command executes successfully HOT 2
- feat: add a new way of specifying which command(s) to run, and in what order
- semver is missing from the webpackDevServer task
- Parallel Webpack builds fail to report errors HOT 1
- a vulnerability CVE-2020-28469 is introduced in just-task HOT 2
- tscRunner: unable to use build mode with other arguments
- just-task config.ts should support ESM configs HOT 4
- just-scripts pulls in a dependency that is being marked as "Malicious component found" by component governance HOT 2
- [bug] option function type definition is different from yargs
- security vulnerabilities in marked package HOT 5
- This repo is missing important files HOT 1
- Dependency Dashboard
- Action Required: Fix Renovate Configuration
- Can we use tsx instead of ts-node?
- Reporting a vulnerability HOT 1
- feat: enable tscTask promise interaction so it can fail gracefully
- Should @types be dependencies rather than devDepdencies?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from just.