Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Template enhancements #29

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions template/.gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
node_modules
/build
/*.log
*.lock

package-lock.json
*.lock
10 changes: 5 additions & 5 deletions template/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,19 @@

``` bash
# install dependencies
npm install
{{ pkg-install }}

# serve with hot reload at localhost:8080
npm run dev
{{ pkg-run }} dev

# build for production with minification
npm run build
{{ pkg-run }} build

# test the production build locally
npm run serve
{{ pkg-run }} serve

# run tests with jest and preact-render-spy
npm run test
{{ pkg-run }} test
```

For detailed explanation on how things work, checkout the [CLI Readme](https://github.com/developit/preact-cli/blob/master/README.md).
2 changes: 1 addition & 1 deletion template/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"private": true,
"name": "{{ name }}",
"version": "0.0.0",
"license": "MIT",
"license": "{{ license }}",
"scripts": {
"start": "per-env",
"start:production": "npm run -s serve",
Expand Down