grant / dotf Goto Github PK
View Code? Open in Web Editor NEWdotf - Manage custom dotfiles.
License: MIT License
dotf - Manage custom dotfiles.
License: MIT License
Thanks to the most recent PR, we have .d.ts
files.
We need to publish dotf
.
CC @PopGoesTheWza (please create a GitHub issue for every task)
npm test is failed.
npm test
> [email protected] test /Users/prprhyt/gitdir/dotf
> ava
2 passed
2 failed
read
Rejected promise returned by test. Reason:
Error {
code: 'EACCES',
errno: -13,
path: '/Users/prprhyt/.myrc3',
syscall: 'open',
message: 'EACCES: permission denied, open \'/Users/prprhyt/.myrc3\'',
}
write
/Users/prprhyt/gitdir/dotf/test.js:19
18: parseInt(777, 8)).toString(8)) {
19: t.fail();
20: }
Test failed via `t.fail()`
npm ERR! Test failed. See above for more details.
It looks like to set wrong permission in 87d53f7#diff-168726dbe96b3ce427e7fedce31bb0bcR36.
fs.chmodSync(fullpath, 600);
It seems to be incorrect.
I think 0600 is correct.
fs.chmodSync's 2nd args is derived from C lang chmod function in sys/stat.h.
int chmod(const char *pathname, mode_t mode);
See:
I expect to limit dot file permissions to only the owner after this file was created.
See google/clasp#387 .
Expected Behavior
$ ls -g .clasprc.json -rw------- 1 staff 583 11 11 23:30 .clasprc.json
Actual Behavior
$ ls -g .clasprc.json -rw-r--r-- 1 staff 583 11 11 23:30 .clasprc.json
In order to ease contribution and releases of this component
The npm does not contain neither the lib/index.js nor the lib/index.d.ts
$ git clone https://github.com/grant/dotf.git
$ cd dotf
$ npm test
> [email protected] test /Users/prprhyt/gitdir/dotf
> ava
3 passed
1 failed
read
Rejected promise returned by test. Reason:
Error {
code: 'ENOENT',
errno: -2,
path: '/Users/prprhyt/.myrc',
syscall: 'open',
message: 'ENOENT: no such file or directory, open \'/Users/prprhyt/.myrc\'',
}
npm ERR! Test failed. See above for more details.
Ava test code run in parallel and test cases access same file(.myrc, myignore).
I think that this is the cause of that error.
I think to solve this problem by changing filename each test or using test.serial.
node -v
): v10.8.0Which lock file is valid?
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.