Skip to content

Commit

Permalink
chore(example): fix example build task
Browse files Browse the repository at this point in the history
  • Loading branch information
plumdumpling committed Aug 7, 2023
1 parent d4ebcc7 commit 67aed1b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,16 +70,16 @@
"posttest": "nyc report --reporter=text --reporter=lcov --reporter=html",
"start": "npm run server",
"unit-test": "mocha --exit --require ts-node/register --require ./test/test_helper.ts \"test/**/*@(.ts|.tsx)\"",
"server": "npm run prepare:example && light-server -s example/dist -p 8000 -w 'src/*.tsx,src/*.ts,example/src/*.tsx,example/src/*.ts # npm run js:example' -w 'src/*.css,example/src/*.css # npm run css # reloadcss' -w 'example/src/*.html # npm run copy:assets # reload'",
"prepare:example": "rimraf example/dist && mkdirp example/dist && npm run copy:assets && npm run js:example && npm run css",
"server": "npm run prepare:example && npm run js:example && light-server -s example/dist -p 8000 -w 'src/*.tsx,src/*.ts,example/src/*.tsx,example/src/*.ts # npm run js:example' -w 'src/*.css,example/src/*.css # npm run css # reloadcss' -w 'example/src/*.html # npm run copy:assets # reload'",
"prepare:example": "rimraf example/dist && mkdirp example/dist && npm run copy:assets && npm run css",
"copy:assets": "copyfiles -f example/src/*.html example/dist && copyfiles -f example/src/*.svg example/dist",
"css": "nodecat example/src/app.css src/geosuggest.css > example/dist/app.css",
"js:example": "rollup -c rollup.example.config.mjs",
"js:prettier:ci": "prettier --config ./.prettierrc.yml --ignore-path ./.prettierignore --list-different \"**/**.{ts,tsx}\"",
"js:prettier:fix": "prettier --config ./.prettierrc.yml --ignore-path ./.prettierignore --write \"**/**.{ts,tsx}\"",
"build:module": "rimraf module && cross-env NODE_ENV=production rollup -c rollup.module.config.mjs && copyfiles -f src/geosuggest.css module/",
"build:browser": "rimraf dist && rollup -c rollup.browser.config.mjs && cross-env NODE_ENV=production rollup -c rollup.browser.config.mjs",
"build:example": "cross-env NODE_ENV=production rollup -c rollup.example.config.mjs",
"build:example": "npm run prepare:example && cross-env NODE_ENV=production rollup -c rollup.example.config.mjs",
"release:patch": "npm version patch -m \"chore(release): version %s\"",
"release:minor": "npm version minor -m \"chore(release): version %s\"",
"release:major": "npm version major -m \"chore(release): version %s\"",
Expand Down

0 comments on commit 67aed1b

Please sign in to comment.