Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Metastasis committed Apr 4, 2021
1 parent 4056a1e commit a554b6f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
8 changes: 6 additions & 2 deletions samples/xlsx-import+svelte/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,24 @@ This is an example how to use `xlsx-import` in Svelte.

## Scripts

`npm run dev` - compiles and hot-reloads for development
`npm start` - compiles and hot-reloads for development

`npm run build` - compiles and minifies for production

`npm run test` - run cypress tests

`npm run validate` - perform some checks against codebase (types, unused css, etc.)

`npm run cy:open` - open cypress dashboard (server must be started before this command)

## Usage

```bash
# install dependencies
npm install

# start dev server
npm run dev
npm run start
```

Open the browser. Then click on "Download and parse invoice" button.
Expand Down
4 changes: 2 additions & 2 deletions samples/xlsx-import+svelte/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
"author": "Dmitriy <[email protected]>",
"scripts": {
"build": "rollup -c",
"dev": "rollup -c -w",
"start": "sirv public",
"start": "rollup -c -w",
"serve": "sirv public",
"validate": "svelte-check",
"format:code": "prettier --write \"**/*.{ts,svelte}\" --plugin-search-dir=. ./**/*.html",
"test": "npm run test:cy",
Expand Down
2 changes: 1 addition & 1 deletion samples/xlsx-import+svelte/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ function serve() {
return {
writeBundle() {
if (server) return;
server = require('child_process').spawn('npm', ['run', 'start', '--', '--dev'], {
server = require('child_process').spawn('npm', ['run', 'serve', '--', '--dev'], {
stdio: ['ignore', 'inherit', 'inherit'],
shell: true
});
Expand Down

0 comments on commit a554b6f

Please sign in to comment.