Skip to content

Commit

Permalink
chore: move deno.ns into packages folder (#63)
Browse files Browse the repository at this point in the history
  • Loading branch information
dsherret authored Dec 22, 2021
1 parent 817105f commit ab47722
Show file tree
Hide file tree
Showing 152 changed files with 735 additions and 267 deletions.
2 changes: 1 addition & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1 +1 @@
lib/deno.ns.lib.d.ts linguist-generated=true
packages/deno.ns/lib/deno.ns.lib.d.ts linguist-generated=true
12 changes: 6 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- uses: actions/checkout@v2
with:
submodules: true
- run: (cd thirdparty/deno; git submodule update --init --depth=1 test_util/std)
- run: (cd packages/deno.ns/third_party/deno; git submodule update --init --depth=1 test_util/std)
shell: bash
- uses: actions/setup-node@v2
with:
Expand All @@ -33,14 +33,14 @@ jobs:
- run: deno fmt --config deno.json --check
if: matrix.os == 'ubuntu-latest'
- run: npm ci --ignore-scripts
- run: npm run --silent test
- run: npm run --silent prepare
- run: tools/missing.ts || echo "Some items are missing"
- run: npm run --silent test --workspaces
- run: npm run --silent prepare --workspaces
- run: cd packages/deno.ns && tools/missing.ts || echo "Some items are missing"
if: matrix.os == 'ubuntu-latest'
- run: tools/untested.sh
- run: cd packages/deno.ns && tools/untested.sh
if: matrix.os == 'ubuntu-latest'
- name: npm publish
if: matrix.os == 'ubuntu-latest' && startsWith(github.ref, 'refs/tags/') && github.repository == 'denoland/deno.ns'
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npm publish
run: cd packages/deno.ns && npm publish
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,3 @@ node_modules
dist
lib.deno.d.ts
lib.deno.unstable.d.ts
unit
4 changes: 2 additions & 2 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[submodule "thirdparty/deno"]
path = thirdparty/deno
[submodule "packages/deno.ns/third_party/deno"]
path = packages/deno.ns/third_party/deno
url = https://github.com/denoland/deno
18 changes: 9 additions & 9 deletions .vscode/project.code-workspace
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@
"path": "../"
},
{
"name": "src",
"path": "../src/"
"name": "deno.ns",
"path": "../packages/deno.ns/src/"
},
{
"name": "tools",
"path": "../tools"
"name": "deno.ns-tools",
"path": "../packages/deno.ns/tools"
},
{
"name": "thirdparty",
"path": "../thirdparty"
"name": "third_party",
"path": "../packages/deno.ns/third_party"
}
],
"settings": {
Expand All @@ -24,9 +24,9 @@
"**/.hg": true,
"**/CVS": true,
"**/.DS_Store": true,
"src/": true,
"tools/": true,
"thirdparty/": true
"packages/deno.ns/src/": true,
"packages/deno.ns/tools/": true,
"packages/deno.ns/third_party/": true
}
}
}
46 changes: 3 additions & 43 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,47 +1,7 @@
# `deno.ns`

[`Deno` namespace](https://doc.deno.land/builtin/stable) shim for Node.js.
Deno shims for Node.js

See [PROGRESS.md](PROGRESS.md)
## Packages

## Usage

```js
const {
alert,
Blob,
confirm,
crypto,
Deno,
fetch,
File,
FormData,
Headers,
prompt,
Request,
Response,
} = require("deno.ns");
```

or `node --require=deno.ns/global <denoBundleOutput>`,

or https://github.com/wojpawlik/deno2node#shimming.

## Contributing

Right now, you can help by [enabling a test file](tools/working_test_files.txt),
making tests pass, and [skipping unsatisfiable tests](tools/skip_tests.cjs).

Please set up [pre-commit hook](tools/hooks/pre-commit):

```sh
$ git config core.hooksPath tools/hooks
```

## Acknowledgements

Special thanks to the [@fromdeno](https://github.com/fromdeno) organization for
starting this project and for their contributions—specifically
[@wojpawlik](https://github.com/wojpawlik),
[@MKRhere](https://github.com/MKRhere), and
[@trgwii](https://github.com/trgwii).
- [deno.ns](packages/deno.ns) - Deno namespace shim.
24 changes: 12 additions & 12 deletions deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
"files": {
"exclude": [
"node_modules",
"dist",
"thirdparty",
"unit",
"src/deno/stable/lib.deno.d.ts",
"src/deno/unstable/lib.deno.unstable.d.ts",
"lib"
"packages/deno.ns/node_modules",
"packages/deno.ns/dist",
"packages/deno.ns/src/deno/stable/lib.deno.d.ts",
"packages/deno.ns/src/deno/unstable/lib.deno.unstable.d.ts",
"packages/deno.ns/lib",
"packages/deno.ns/third_party"
]
},
"rules": {
Expand All @@ -19,12 +19,12 @@
"files": {
"exclude": [
"node_modules",
"dist",
"thirdparty",
"unit",
"src/deno/stable/lib.deno.d.ts",
"src/deno/unstable/lib.deno.unstable.d.ts",
"lib"
"packages/deno.ns/node_modules",
"packages/deno.ns/dist",
"packages/deno.ns/src/deno/stable/lib.deno.d.ts",
"packages/deno.ns/src/deno/unstable/lib.deno.unstable.d.ts",
"packages/deno.ns/lib",
"packages/deno.ns/third_party"
]
}
}
Expand Down
103 changes: 61 additions & 42 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit ab47722

Please sign in to comment.