2019-04-20 15:36:31 +02:00
|
|
|
_:
|
2019-04-29 09:01:51 +02:00
|
|
|
clean: "rimraf dist"
|
2019-05-31 14:52:19 +02:00
|
|
|
build: "npm run clean && rollup -c"
|
2019-04-20 15:36:31 +02:00
|
|
|
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-05-31 14:52:19 +02:00
|
|
|
start: "rollup -c -w"
|
2019-05-31 16:33:01 +02:00
|
|
|
_types:
|
|
|
|
pattern:
|
|
|
|
netlify: "echo \"Not configured yet\""
|
2020-04-04 17:11:30 +02:00
|
|
|
test: "BABEL_ENV=production ../../node_modules/.bin/_mocha tests/*.test.js --require @babel/register"
|
|
|
|
testci: "BABEL_ENV=production ./node_modules/.bin/_mocha tests/*.test.js --require @babel/register"
|
2019-04-20 19:23:22 +02:00
|
|
|
create-freesewing-pattern:
|
2019-05-02 21:17:18 +02:00
|
|
|
clean: "!"
|
|
|
|
nodebuild: "!"
|
|
|
|
modulebuild: "!"
|
|
|
|
build: "!"
|
2019-04-20 19:23:22 +02:00
|
|
|
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-05-03 13:23:40 +02:00
|
|
|
# react-scripts doesn't handle .mjs files correctly
|
|
|
|
modulebuild: '!'
|
2019-05-29 08:08:26 +02:00
|
|
|
clean: "rimraf Blockquote && rimraf Draft && rimraf DraftConfigurator && rimraf Emblem && rimraf Example && rimraf Footer && rimraf Icon && rimraf Logo && rimraf Navbar && rimraf Ogol && rimraf Robot && rimraf SampleConfigurator && rimraf withGist && rimraf withLanguage && rimraf Workbench"
|
2019-05-30 15:47:18 +02:00
|
|
|
build: "npm run clean && rollup -c"
|
2019-05-03 19:54:46 +02:00
|
|
|
watch: "BABEL_ENV=production rollup -c -w -o dist/index.js -f cjs"
|
2019-04-20 15:36:31 +02:00
|
|
|
core:
|
2019-05-31 16:33:01 +02:00
|
|
|
build: "npm run clean && rollup -c && rollup -c rollup.tests.js"
|
|
|
|
testonly: "BABEL_ENV=production mocha tests/*.test.js"
|
|
|
|
test: "BABEL_ENV=production nyc -x node_modules -x tests/fixtures -x bin-pack mocha tests/*.test.js"
|
|
|
|
report: "BABEL_ENV=production nyc report --reporter=html"
|
|
|
|
coverage: "BABEL_ENV=production nyc npm test && nyc report --reporter=text-lcov > coverage.lcov && ./node_modules/.bin/codecov"
|
2019-05-03 13:47:29 +02:00
|
|
|
i18n:
|
|
|
|
# react-scripts doesn't handle .mjs files correctly
|
|
|
|
modulebuild: '!'
|
2019-05-02 12:40:03 +02:00
|
|
|
pattern-info:
|
2020-04-04 11:19:45 +02:00
|
|
|
prebuild: "node src/prebuild.js"
|
|
|
|
plugin-theme:
|
|
|
|
prebuild: "npx node-sass --output-style compressed -r src/scss -o css && echo 'export default `' > src/bundle.css.js && cat css/*.css >> src/bundle.css.js && echo '`;' >> src/bundle.css.js"
|
2019-05-03 13:35:02 +02:00
|
|
|
utils:
|
|
|
|
# react-scripts doesn't handle .mjs files correctly
|
|
|
|
modulebuild: '!'
|
2019-04-20 15:36:31 +02:00
|
|
|
|