2019-04-20 15:36:31 +02:00
|
|
|
_:
|
2022-06-14 23:30:00 +02:00
|
|
|
build: 'node build.js'
|
|
|
|
cibuild_step1: 'node build.js'
|
2020-08-08 17:20:08 +02:00
|
|
|
clean: 'rimraf dist'
|
2022-06-14 23:30:00 +02:00
|
|
|
mbuild: 'NO_MINIFY=1 node build.js'
|
2020-08-08 17:20:08 +02:00
|
|
|
symlink: 'mkdir -p ./node_modules/@freesewing && cd ./node_modules/@freesewing && ln -s -f ../../../* . && cd -'
|
2022-06-14 23:30:00 +02:00
|
|
|
test: ¬ests 'echo "{{name}}: No tests configured. Perhaps you''d like to do this?" && exit 0'
|
|
|
|
vbuild: 'VERBOSE=1 node build.js'
|
2019-05-31 16:33:01 +02:00
|
|
|
_types:
|
|
|
|
pattern:
|
2022-06-14 23:30:00 +02:00
|
|
|
prettier: "npx prettier --write 'src/*.js' 'config/*.js'"
|
2022-02-19 10:07:43 +01:00
|
|
|
test: &test 'BABEL_ENV=production npx mocha tests/*.test.mjs --require @babel/register'
|
2022-02-19 10:43:22 +01:00
|
|
|
testci: &testci "BABEL_ENV=production npx mocha tests/*.test.mjs --require @babel/register --reporter ../../tests/reporters/terse.js"
|
2021-11-21 16:08:07 +01:00
|
|
|
plugin:
|
2022-06-14 23:30:00 +02:00
|
|
|
prettier: "npx prettier --write 'src/*.js' 'tests/*.mjs'"
|
2022-02-19 09:48:23 +01:00
|
|
|
test: *test
|
|
|
|
testci: *testci
|
2019-04-20 19:23:22 +02:00
|
|
|
create-freesewing-pattern:
|
2022-06-14 23:30:00 +02:00
|
|
|
build: '!'
|
|
|
|
cibuild_step1: '!'
|
2020-08-08 17:20:08 +02:00
|
|
|
clean: '!'
|
2022-06-14 23:30:00 +02:00
|
|
|
mbuild: '!'
|
2020-08-08 17:20:08 +02:00
|
|
|
modulebuild: '!'
|
2022-06-14 23:30:00 +02:00
|
|
|
nodebuild: '!'
|
|
|
|
test: '!'
|
|
|
|
testci: '!'
|
|
|
|
vbuild: '!'
|
2019-04-20 19:23:22 +02:00
|
|
|
css-theme:
|
2020-08-08 17:20:08 +02:00
|
|
|
build: 'npx node-sass --output-style compressed src/theme.scss dist/theme.css'
|
2022-06-14 23:30:00 +02:00
|
|
|
cibuild_step1: 'npx node-sass --output-style compressed src/theme.scss dist/theme.css'
|
2020-08-08 17:20:08 +02:00
|
|
|
watch: 'npx node-sass --watch --output-style compressed src/theme.scss dist/theme.css'
|
2019-04-19 17:31:44 +02:00
|
|
|
components:
|
2022-06-14 23:30:00 +02:00
|
|
|
clean: 'rimraf Blockquote && rimraf Draft && rimraf DraftConfigurator && rimraf Emblem && rimraf Example && rimraf Footer && rimraf Icon && rimraf Legend && rimraf LineDrawing && rimraf Logo && rimraf Navbar && rimraf Ogol && rimraf Robot && rimraf SampleConfigurator && rimraf Spinner && rimraf withGist && rimraf withLanguage && rimraf withStorage && rimraf Workbench'
|
2020-08-08 17:20:08 +02:00
|
|
|
storybook: 'start-storybook -p 6663'
|
2022-06-14 23:30:00 +02:00
|
|
|
test: *notests
|
2019-04-20 15:36:31 +02:00
|
|
|
core:
|
2022-06-14 23:30:00 +02:00
|
|
|
coverage: 'BABEL_ENV=production nyc npm test && nyc report --reporter=text-lcov > coverage.lcov && ./node_modules/.bin/codecov'
|
|
|
|
report: 'BABEL_ENV=production nyc report --reporter=html'
|
2022-02-19 10:07:43 +01:00
|
|
|
test: 'BABEL_ENV=production nyc -x node_modules -x tests/fixtures -x bin-pack npx mocha tests/*.test.js'
|
2022-02-19 10:43:22 +01:00
|
|
|
testci: "BABEL_ENV=production npx mocha tests/*.test.js --require @babel/register --reporter ../../tests/reporters/terse.js"
|
2022-06-14 23:30:00 +02:00
|
|
|
testonly: 'BABEL_ENV=production npx mocha tests/*.test.js'
|
2019-05-03 13:47:29 +02:00
|
|
|
i18n:
|
|
|
|
# react-scripts doesn't handle .mjs files correctly
|
|
|
|
modulebuild: '!'
|
2022-06-14 23:30:00 +02:00
|
|
|
prebuild: 'node src/prebuild.mjs'
|
2022-02-19 09:48:23 +01:00
|
|
|
test: *test
|
|
|
|
testci: *testci
|
2019-05-02 12:40:03 +02:00
|
|
|
pattern-info:
|
2021-12-31 14:24:18 +01:00
|
|
|
cibuild_step1: '!'
|
2022-06-14 23:30:00 +02:00
|
|
|
cibuild_step2: 'node src/prebuild.js && node build.js'
|
2020-08-08 17:20:08 +02:00
|
|
|
prebuild: 'node src/prebuild.js'
|
2019-05-03 13:35:02 +02:00
|
|
|
utils:
|
2022-06-14 23:30:00 +02:00
|
|
|
clean: "rimraf backend && rimraf camelCase && rimraf capitalize && rimraf cloneObject && rimraf convertSize && rimraf defaultGist && rimraf defaultSa && rimraf formatImperial && rimraf formatMm && rimraf isDegMeasurement && rimraf measurementAsMm && rimraf measurementDiffers && rimraf neckstimate && rimraf optionDefault && rimraf optionType && rimraf roundMm && rimraf roundMmDown && rimraf roundMmUp && rimraf sliderStep && rimraf smallestImperialStep && rimraf storage && rimraf tiler && rimraf validateEmail && rimraf validateTld"
|
2019-05-03 13:35:02 +02:00
|
|
|
# react-scripts doesn't handle .mjs files correctly
|
|
|
|
modulebuild: '!'
|