Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/doinkythederp/assemblyscript-template
Template for AssemblyScript projects
https://github.com/doinkythederp/assemblyscript-template
Last synced: 19 days ago
JSON representation
Template for AssemblyScript projects
- Host: GitHub
- URL: https://github.com/doinkythederp/assemblyscript-template
- Owner: doinkythederp
- License: isc
- Created: 2022-07-06T04:23:26.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-07-06T05:10:32.000Z (over 2 years ago)
- Last Synced: 2023-03-04T22:49:31.631Z (over 1 year ago)
- Language: TypeScript
- Size: 37.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# assemblyscript-template
This project was bootstrapped with [doinkythederp/assemblyscript-template](https://github.com/doinkythederp/assemblyscript-template).
## Project layout
```sh
.
│ # AssemblyScript config file
├── asconfig.json
│ # build output directory
├── build/
│ # Jest Test Runner config file
├── jest.config.cjs
│ # Node.js package manifest and package manager lockfile
├── package.json
├── pnpm-lock.yaml
│ # Source code for build and test scripts
├── scripts/
│ # Your project's source code
├── src
│ │ # Type declarations to make TypeScript
│ │ # play well with AssemblyScript
│ ├── env.d.ts
│ │ # Your project's entry point
│ └── index.ts
│ # Jest unit tests
├── tests
│ │ # Jest runs files that end in ".test.ts"
│ ├── *.test.ts
│ │ # TypeScript config to make type-checked
│ │ # unit tests possible
│ └── tsconfig.json
│ # TypeScript config for in-editor errors
│ # and code completion
├── tsconfig.json
│ # Prettier Code Formatter config file
└── .prettierrc.json
```## Build and test scripts
You can use the following npm scripts in this directory:
### `pnpm build`
Build the app for debug or release. You can modify `asconfig.json` to change build settings, and/or add or remove the `--release` flag to configure the build target.
```sh
pnpm build
pnpm build --release
```Run `pnpm build --help` for a list of all command line options.
### `pnpm run test`
Build the app for debug and run Jest unit tests (located in `tests/`). You can configure Jest using `jest.config.cjs`, and/or skip the build step by adding or removing the `--no-build` flag.
```sh
pnpm test
pnpm run test --no-build
```Run `pnpm run test --help` for a list of all command line options.