2019-04-20 15:36:31 +02:00
|
|
|
_:
|
2019-04-29 09:01:51 +02:00
|
|
|
clean: "rimraf dist"
|
|
|
|
nodebuild: "BABEL_ENV=production rollup -c -o dist/index.js -f cjs"
|
|
|
|
modulebuild: "BABEL_ENV=production rollup -c -o dist/index.mjs -f es"
|
2019-04-20 15:36:31 +02:00
|
|
|
build: "npm run clean && npm run nodebuild && npm run modulebuild"
|
|
|
|
test: "echo \"{{name}}: No tests configured. Perhaps you'd like to do this?\" && exit 0"
|
|
|
|
pubtest: "npm publish --registry http://localhost:6662"
|
2019-05-02 12:40:03 +02:00
|
|
|
pubforce: "npm publish"
|
|
|
|
symlink: "mkdir -p ./node_modules/@freesewing && cd ./node_modules/@freesewing && ln -s -f ../../../* . && cd -"
|
2019-04-19 17:31:44 +02:00
|
|
|
_types:
|
2019-04-20 15:36:31 +02:00
|
|
|
patterns:
|
|
|
|
plugins:
|
2019-04-20 19:23:22 +02:00
|
|
|
create-freesewing-pattern:
|
2019-04-29 09:01:51 +02:00
|
|
|
mkdist: "mkdir -p dist"
|
|
|
|
copyfiles: "cp -R index.js package.json README.md lib template dist/"
|
2019-04-20 19:23:22 +02:00
|
|
|
build: "npm run clean && npm run mkdist && npm run copyfiles"
|
|
|
|
test: "ava -v && standard *.js lib/*.js"
|
|
|
|
css-theme:
|
2019-04-29 09:01:51 +02:00
|
|
|
build: "npx node-sass --output-style compressed src/theme.scss dist/theme.css"
|
|
|
|
watch: "npx node-sass --watch --output-style compressed src/theme.scss dist/theme.css"
|
2019-04-19 17:31:44 +02:00
|
|
|
components:
|
2019-04-20 15:36:31 +02:00
|
|
|
test: "echo \"{{name}}: No tests configured. Perhaps you'd like to do this?\" && exit 0"
|
2019-04-21 15:31:08 +02:00
|
|
|
storybook: "start-storybook -p 6663"
|
2019-04-20 15:36:31 +02:00
|
|
|
core:
|
2019-04-20 19:23:22 +02:00
|
|
|
test: "BABEL_ENV=production nyc mocha tests/*.test.js"
|
|
|
|
report: "BABEL_ENV=production nyc report --reporter=html mocha --compilers js:babel-core/register tests/*.test.js"
|
|
|
|
coverage: "BABEL_ENV=production nyc npm test && nyc report --reporter=text-lcov > coverage.lcov && ./node_modules/.bin/codecov"
|
2019-05-02 12:40:03 +02:00
|
|
|
pattern-info:
|
|
|
|
prebuild: "node src/prebuild.js"
|
2019-04-20 15:36:31 +02:00
|
|
|
|