Skip to content
This repository has been archived by the owner on Jul 27, 2024. It is now read-only.

Commit

Permalink
feat: init the project
Browse files Browse the repository at this point in the history
  • Loading branch information
fourdim committed Jul 27, 2023
0 parents commit 6bd5451
Show file tree
Hide file tree
Showing 16 changed files with 1,838 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Build Package

on: push

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Install Rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
target: wasm32-unknown-unknown

- name: Install wasm-pack
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh

- name: Install icu4x-datagen
run: cargo install icu_datagen

- name: Generate data
run: sh icu-datagen.sh

- name: Build
run: wasm-pack build --target web --release

- name: Modify package.json
run: echo "$(jq '.files[3] |= "snippets/intl-segementer-polyfill-rs-81e6e01b0213c7d1/inline0.js"' pkg/package.json)" > pkg/package.json
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/target
**/*.rs.bk
bin/
pkg/
wasm-pack.log

node_modules/
data/
Loading

0 comments on commit 6bd5451

Please sign in to comment.