teambit / bit-javascript Goto Github PK
View Code? Open in Web Editor NEWA javascript driver for bit
Home Page: https://bit.dev
License: Other
A javascript driver for bit
Home Page: https://bit.dev
License: Other
clone material ui project
run get dependencies on the src/index file
this is code for the project:
// material-ui/src/utils/keyboardFocus.js
import addEventListener from '../utils/addEventListener’;
// material-ui/src/utils/addEventListener.js
// @flow
import addEventListener from 'dom-helpers/events/on';
import removeEventListener from 'dom-helpers/events/off';
export default function(node: Node, event: string, handler: EventHandler, capture?: boolean) {
addEventListener(node, event, handler, capture);
return {
remove() {
removeEventListener(node, event, handler, capture);
},
};
}
part of the tree is:
"src/utils/keyboardFocus.js": {
"packages": {},
"files": [],
"linkFiles": [
{
"file": "src/utils/addEventListener.js",
"dependencies": [
{
"file": "node_modules/dom-helpers/events/on.js",
"importSpecifiers": [
{
"mainFile": {
"isDefault": true,
"name": "addEventListener"
},
"linkFile": {
"isDefault": true,
"name": "addEventListener"
}
}
]
}
]
}
]
},
It identify addEventListener as link file while it's clearly not.
Good Evening,
Just wanted to call out that I needed to pull this manually to try to use the bit IS.
System Info:
OS Name Microsoft Windows 10 Pro
Version 10.0.17763 Build 17763
Other OS Description Not Available
OS Manufacturer Microsoft Corporation
System Name DESKTOP-BPM4SSS
System Manufacturer Micro-Star International Co., Ltd.
System Model GX780R/GT780R/GT780DXR/GT783R
System Type x64-based PC
System SKU To be filled by O.E.M.
Processor Intel(R) Core(TM) i7-2720QM CPU @ 2.20GHz, 2201 Mhz, 4 Core(s), 8 Logical Processor(s)
BIOS Version/Date American Megatrends Inc. E1761IMS V3.0H, 11/18/2011
SMBIOS Version 2.7
Embedded Controller Version 255.255
BIOS Mode Legacy
BaseBoard Manufacturer Micro-Star International Co., Ltd.
BaseBoard Product MS-1761
BaseBoard Version To be filled by O.E.M.
Platform Role Mobile
Secure Boot State Unsupported
PCR7 Configuration Binding Not Possible
Windows Directory C:\WINDOWS
System Directory C:\WINDOWS\system32
Boot Device \Device\HarddiskVolume1
Locale United States
Hardware Abstraction Layer Version = "10.0.17763.194"
User Name ***
Time Zone Central Standard Time
Installed Physical Memory (RAM) 16.0 GB
Total Physical Memory 16.0 GB
Available Physical Memory 9.10 GB
Total Virtual Memory 18.9 GB
Available Virtual Memory 11.4 GB
Page File Space 2.88 GB
Page File C:\pagefile.sys
Kernel DMA Protection Off
Virtualization-based security Running
Virtualization-based security Required Security Properties
Virtualization-based security Available Security Properties Base Virtualization Support, DMA Protection
Virtualization-based security Services Configured
Virtualization-based security Services Running
Device Encryption Support Reasons for failed automatic device encryption: TPM is not usable, PCR7 binding is not supported, Hardware Security Test Interface failed and device is not InstantGo, Un-allowed DMA capable bus/device(s) detected, TPM is not usable
A hypervisor has been detected. Features required for Hyper-V will not be displayed.
Node MSI Installer Version: node-v10.15.1-x64
Maybe it's included in 11? ¯_(ツ)_/¯
clone https://github.com/teambit/bit
run get dependencies on src/app.js
bit-javascript should provide bit with a list of files to ignore:
STR
touch a.js b.js c.js
//a.js
var c = require('./c');
import b from './b';
you will get only c as dependency.
If you switch the imports order to be:
//a.js
import b from './b';
var c = require('./c');
It will identify b only.
There is a popular package called rewire used for unit testing.
Currently, we don't recognize files required by rewire as dependencies
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.