-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
19 changed files
with
2,981 additions
and
632 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
end_of_line = lf | ||
|
||
indent_style = space | ||
indent_size = 2 | ||
|
||
trim_trailing_whitespace = true | ||
insert_final_newline = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
name: Run tests | ||
on: [push] | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: 14.x | ||
check-latest: true | ||
- run: npm install | ||
- run: npm test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
node_modules | ||
vmod.d.ts | ||
vmod.js |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,36 @@ | ||
{ | ||
"name": "vmod", | ||
"version": "1.0.3", | ||
"version": "1.1.0", | ||
"description": "Virtual module for node.js", | ||
"main": "vmod.js", | ||
"typings": "vmod.d.ts", | ||
"scripts": { | ||
"release": "buble --objectAssign='Object.assign' ./src/vmod.js -o ./vmod.js && buble ./src/vmod.test.js -o ./vmod.test.js && buble ./src/_test-file.js -o ./_test-file.js && mocha ./*.test.js", | ||
"test": "mocha ./src/*.test.js" | ||
"prepare": "rollup -c ./rollup.config.ts", | ||
"test": "cross-env TS_NODE_PROJECT=tsconfig.build.json mocha -r ts-node/register ./src/vmod.test.ts" | ||
}, | ||
"files": [ | ||
"vmod.js", | ||
"vmod.d.ts" | ||
], | ||
"author": "Iskren Slavov <[email protected]>", | ||
"license": "BSD-2-Clause", | ||
"dependencies": { | ||
"oget": "^1.0.9", | ||
"oget": "^1.1.3", | ||
"require-like": "^0.1.2", | ||
"shortid": "^2.2.8" | ||
"shortid": "^2.2.16" | ||
}, | ||
"devDependencies": { | ||
"buble": "^0.17.0", | ||
"chai": "^4.1.2", | ||
"chalk": "^2.3.0", | ||
"mocha": "^4.0.1" | ||
"@types/chai": "^4.2.14", | ||
"@types/mocha": "^8.2.0", | ||
"@types/node": "^14.14.22", | ||
"@types/shortid": "0.0.29", | ||
"@wessberg/rollup-plugin-ts": "^1.3.8", | ||
"chai": "^4.2.0", | ||
"cross-env": "^7.0.3", | ||
"mocha": "^8.2.1", | ||
"rollup": "^2.38.1", | ||
"ts-node": "^9.1.1", | ||
"typescript": "^4.1.3" | ||
}, | ||
"keywords": [ | ||
"virtual", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import ts from '@wessberg/rollup-plugin-ts'; | ||
|
||
export default { | ||
input: './src/vmod.ts', | ||
output: { | ||
file: 'vmod.js', | ||
format: 'cjs', | ||
exports: 'default', | ||
strict: false, | ||
interop: false | ||
}, | ||
external: [ | ||
'oget', | ||
'vm', | ||
'shortid', | ||
'path', | ||
'require-like' | ||
], | ||
plugins: [ | ||
ts({ | ||
tsconfig: `${__dirname}/tsconfig.build.json` | ||
}) | ||
] | ||
}; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
declare module 'require-like' { | ||
function requireLike(path: string, uncached?: boolean): { | ||
[key: string]: any | ||
}; | ||
|
||
export default requireLike; | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.