https://github.com/thegetty/acnlpatterntool
Animal Crossing: New Leaf Pattern Tool
https://github.com/thegetty/acnlpatterntool
Last synced: 3 months ago
JSON representation
Animal Crossing: New Leaf Pattern Tool
- Host: GitHub
- URL: https://github.com/thegetty/acnlpatterntool
- Owner: thegetty
- License: wtfpl
- Created: 2020-04-09T21:25:25.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2024-01-16T22:31:49.000Z (over 1 year ago)
- Last Synced: 2024-05-13T05:50:58.538Z (about 1 year ago)
- Language: JavaScript
- Size: 12.9 MB
- Stars: 4
- Watchers: 8
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# ACNLPatternTool
An application to edit Animal Crossing pattern designs.
## Installation
At the root of the project directory:
```sh
# submodule setup
git submodule update --init --recursive
cd zxing-js-library
yarn # need this to bypass sharp missing binaries
cd ..# main repo setup
npm install
npm run build:submodule # build the submodule
```## Available Scripts
### `docker-compose exec frontend npm run dev`
Runs the application in development mode. Automatically reloads with changes.
Open [https://localhost:3000](https://localhost:3000) to view it in the
browser.### `docker-compose exec frontend npm run build -- `
Builds the submodules, app, and then outputs to a `build` directory at the
repository root. Can build the the project in development mode or production
mode. By default builds in the mode specified by the `.env`, but can otherwise
override with a command line option. Use `--help` option to view options.### `docker-compose exec frontend npm run build:app -- `
Builds the app and outputs to a `build` directory at the repository root. Can
build the the project in development mode or production mode. By default builds
in the mode specified by the `.env`, but can otherwise override with a command
line option. Use `--help` option to view options.### `npm run build:submodule`
Builds the submodules and outputs to a `build` directory at the repository
root. Can build the the project in development mode or production mode. By
default builds in the mode specified by the `.env`, but can otherwise override
with a command line option.### `docker-compose exec frontend npm run clean`
Cleans the submodule and app build directories. Recursively removes files
located in the build directories.### `docker-compose exec frontend npm run clean:app`
Cleans the app build directory. Recursively removes files located in the build
directory.### `npm run clean:submodule`
Cleans the submodule build directory. Recursively removes files located in the build
directory.## Deploying the app to netlify:
### setup Netlify (first time only)
1. login to netlify from the commandline `npx netlify login`
2. link the folder to netlify `npx netlify link`### build the app (every time)
1. `docker-compose exec frontend npm run build production`
### deploy the built app to netlify
To install netlify (npm -i -g netlify-cli --unsafe-param=true)
1. `netlify deploy --dir=build --prod`