-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
20999: Updated WASM test packages for security (#188)
- Added additional local development setup
- Loading branch information
1 parent
83c708d
commit 7e7786d
Showing
7 changed files
with
1,699 additions
and
299 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 @@ | ||
AMALGAM_WASM_DIR=../../.out/build |
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,26 @@ | ||
# Logs | ||
logs | ||
*.log | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
pnpm-debug.log* | ||
lerna-debug.log* | ||
|
||
|
||
# NPM | ||
*.tgz | ||
|
||
node_modules | ||
lib | ||
*.local | ||
|
||
# Editor directories and files | ||
.vscode/* | ||
!.vscode/extensions.json | ||
.idea | ||
.DS_Store | ||
|
||
|
||
# Scratch files | ||
scratch/* |
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,15 +1,23 @@ | ||
# Getting Started | ||
|
||
Install dependencies | ||
## Install dependencies | ||
|
||
npm install | ||
```bash | ||
npm install | ||
``` | ||
|
||
## Define environment variables | ||
|
||
Define the environment variable `AMALGAM_WASM_DIR` to the directory where the following files exist: | ||
|
||
- amalgam-st.wasm | ||
- amalgam-st.cjs | ||
- amalgam-st.data | ||
|
||
Run tests | ||
On your personal machine, you may find it easier to copy [.env.sample](./.env.sample) to `.env`. | ||
|
||
## Run tests | ||
|
||
npm run test | ||
```bash | ||
npm run 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
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,5 @@ | ||
import { config } from "dotenv"; | ||
|
||
export default async () => { | ||
config(); | ||
}; |
Oops, something went wrong.