1
0
Fork 0

chore: Add plugin tests to configure script

This commit is contained in:
Joost De Cock 2021-11-21 16:08:07 +01:00
parent a146ee0924
commit c28b0339fc
25 changed files with 26 additions and 24 deletions

View file

@ -12,6 +12,8 @@ _types:
netlify: 'echo "Not configured yet"'
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'
plugin:
test: 'BABEL_ENV=production ../../node_modules/.bin/_mocha tests/*.test.js --require @babel/register'
create-freesewing-pattern:
clean: '!'
nodebuild: '!'

View file

@ -30,7 +30,7 @@
"clean": "rimraf dist",
"build": "rollup -c",
"lernabuild": "rollup -c",
"test": "BABEL_ENV=production ../../node_modules/.bin/mocha tests/*.test.js --require @babel/register",
"test": "BABEL_ENV=production ../../node_modules/.bin/_mocha tests/*.test.js --require @babel/register",
"pubtest": "npm publish --registry http://localhost:6662",
"pubforce": "npm publish",
"symlink": "mkdir -p ./node_modules/@freesewing && cd ./node_modules/@freesewing && ln -s -f ../../../* . && cd -",

View file

@ -30,7 +30,7 @@
"clean": "rimraf dist",
"build": "rollup -c",
"lernabuild": "rollup -c",
"test": "BABEL_ENV=production ../../node_modules/.bin/mocha tests/*.test.js --require @babel/register",
"test": "BABEL_ENV=production ../../node_modules/.bin/_mocha tests/*.test.js --require @babel/register",
"pubtest": "npm publish --registry http://localhost:6662",
"pubforce": "npm publish",
"symlink": "mkdir -p ./node_modules/@freesewing && cd ./node_modules/@freesewing && ln -s -f ../../../* . && cd -",

View file

@ -31,7 +31,7 @@
"clean": "rimraf dist",
"build": "rollup -c",
"lernabuild": "rollup -c",
"test": "BABEL_ENV=production ../../node_modules/.bin/mocha tests/*.test.js --require @babel/register",
"test": "BABEL_ENV=production ../../node_modules/.bin/_mocha tests/*.test.js --require @babel/register",
"pubtest": "npm publish --registry http://localhost:6662",
"pubforce": "npm publish",
"symlink": "mkdir -p ./node_modules/@freesewing && cd ./node_modules/@freesewing && ln -s -f ../../../* . && cd -",

View file

@ -30,7 +30,7 @@
"clean": "rimraf dist",
"build": "rollup -c",
"lernabuild": "rollup -c",
"test": "BABEL_ENV=production ../../node_modules/.bin/mocha tests/*.test.js --require @babel/register",
"test": "BABEL_ENV=production ../../node_modules/.bin/_mocha tests/*.test.js --require @babel/register",
"pubtest": "npm publish --registry http://localhost:6662",
"pubforce": "npm publish",
"symlink": "mkdir -p ./node_modules/@freesewing && cd ./node_modules/@freesewing && ln -s -f ../../../* . && cd -",

View file

@ -30,7 +30,7 @@
"clean": "rimraf dist",
"build": "rollup -c",
"lernabuild": "rollup -c",
"test": "BABEL_ENV=production ../../node_modules/.bin/mocha tests/*.test.js --require @babel/register",
"test": "BABEL_ENV=production ../../node_modules/.bin/_mocha tests/*.test.js --require @babel/register",
"pubtest": "npm publish --registry http://localhost:6662",
"pubforce": "npm publish",
"symlink": "mkdir -p ./node_modules/@freesewing && cd ./node_modules/@freesewing && ln -s -f ../../../* . && cd -",

View file

@ -30,7 +30,7 @@
"clean": "rimraf dist",
"build": "rollup -c",
"lernabuild": "rollup -c",
"test": "BABEL_ENV=production ../../node_modules/.bin/mocha tests/*.test.js --require @babel/register",
"test": "BABEL_ENV=production ../../node_modules/.bin/_mocha tests/*.test.js --require @babel/register",
"pubtest": "npm publish --registry http://localhost:6662",
"pubforce": "npm publish",
"symlink": "mkdir -p ./node_modules/@freesewing && cd ./node_modules/@freesewing && ln -s -f ../../../* . && cd -",

View file

@ -30,7 +30,7 @@
"clean": "rimraf dist",
"build": "rollup -c",
"lernabuild": "rollup -c",
"test": "BABEL_ENV=production ../../node_modules/.bin/mocha tests/*.test.js --require @babel/register",
"test": "BABEL_ENV=production ../../node_modules/.bin/_mocha tests/*.test.js --require @babel/register",
"pubtest": "npm publish --registry http://localhost:6662",
"pubforce": "npm publish",
"symlink": "mkdir -p ./node_modules/@freesewing && cd ./node_modules/@freesewing && ln -s -f ../../../* . && cd -",

View file

@ -30,7 +30,7 @@
"clean": "rimraf dist",
"build": "rollup -c",
"lernabuild": "rollup -c",
"test": "BABEL_ENV=production ../../node_modules/.bin/mocha tests/*.test.js --require @babel/register",
"test": "BABEL_ENV=production ../../node_modules/.bin/_mocha tests/*.test.js --require @babel/register",
"pubtest": "npm publish --registry http://localhost:6662",
"pubforce": "npm publish",
"symlink": "mkdir -p ./node_modules/@freesewing && cd ./node_modules/@freesewing && ln -s -f ../../../* . && cd -",

View file

@ -30,7 +30,7 @@
"clean": "rimraf dist",
"build": "rollup -c",
"lernabuild": "rollup -c",
"test": "echo \"plugin-flip: No tests configured. Perhaps you'd like to do this?\" && exit 0",
"test": "BABEL_ENV=production ../../node_modules/.bin/_mocha tests/*.test.js --require @babel/register",
"pubtest": "npm publish --registry http://localhost:6662",
"pubforce": "npm publish",
"symlink": "mkdir -p ./node_modules/@freesewing && cd ./node_modules/@freesewing && ln -s -f ../../../* . && cd -",

View file

@ -30,7 +30,7 @@
"clean": "rimraf dist",
"build": "rollup -c",
"lernabuild": "rollup -c",
"test": "echo \"plugin-gore: No tests configured. Perhaps you'd like to do this?\" && exit 0",
"test": "BABEL_ENV=production ../../node_modules/.bin/_mocha tests/*.test.js --require @babel/register",
"pubtest": "npm publish --registry http://localhost:6662",
"pubforce": "npm publish",
"symlink": "mkdir -p ./node_modules/@freesewing && cd ./node_modules/@freesewing && ln -s -f ../../../* . && cd -",

View file

@ -30,7 +30,7 @@
"clean": "rimraf dist",
"build": "rollup -c",
"lernabuild": "rollup -c",
"test": "echo \"plugin-grainline: No tests configured. Perhaps you'd like to do this?\" && exit 0",
"test": "BABEL_ENV=production ../../node_modules/.bin/_mocha tests/*.test.js --require @babel/register",
"pubtest": "npm publish --registry http://localhost:6662",
"pubforce": "npm publish",
"symlink": "mkdir -p ./node_modules/@freesewing && cd ./node_modules/@freesewing && ln -s -f ../../../* . && cd -",

View file

@ -30,7 +30,7 @@
"clean": "rimraf dist",
"build": "rollup -c",
"lernabuild": "rollup -c",
"test": "echo \"plugin-i18n: No tests configured. Perhaps you'd like to do this?\" && exit 0",
"test": "BABEL_ENV=production ../../node_modules/.bin/_mocha tests/*.test.js --require @babel/register",
"pubtest": "npm publish --registry http://localhost:6662",
"pubforce": "npm publish",
"symlink": "mkdir -p ./node_modules/@freesewing && cd ./node_modules/@freesewing && ln -s -f ../../../* . && cd -",

View file

@ -30,7 +30,7 @@
"clean": "rimraf dist",
"build": "rollup -c",
"lernabuild": "rollup -c",
"test": "echo \"plugin-logo: No tests configured. Perhaps you'd like to do this?\" && exit 0",
"test": "BABEL_ENV=production ../../node_modules/.bin/_mocha tests/*.test.js --require @babel/register",
"pubtest": "npm publish --registry http://localhost:6662",
"pubforce": "npm publish",
"symlink": "mkdir -p ./node_modules/@freesewing && cd ./node_modules/@freesewing && ln -s -f ../../../* . && cd -",

View file

@ -30,7 +30,7 @@
"clean": "rimraf dist",
"build": "rollup -c",
"lernabuild": "rollup -c",
"test": "echo \"plugin-measurements: No tests configured. Perhaps you'd like to do this?\" && exit 0",
"test": "BABEL_ENV=production ../../node_modules/.bin/_mocha tests/*.test.js --require @babel/register",
"pubtest": "npm publish --registry http://localhost:6662",
"pubforce": "npm publish",
"symlink": "mkdir -p ./node_modules/@freesewing && cd ./node_modules/@freesewing && ln -s -f ../../../* . && cd -",

View file

@ -30,7 +30,7 @@
"clean": "rimraf dist",
"build": "rollup -c",
"lernabuild": "rollup -c",
"test": "echo \"plugin-mirror: No tests configured. Perhaps you'd like to do this?\" && exit 0",
"test": "BABEL_ENV=production ../../node_modules/.bin/_mocha tests/*.test.js --require @babel/register",
"pubtest": "npm publish --registry http://localhost:6662",
"pubforce": "npm publish",
"symlink": "mkdir -p ./node_modules/@freesewing && cd ./node_modules/@freesewing && ln -s -f ../../../* . && cd -",

View file

@ -30,7 +30,7 @@
"clean": "rimraf dist",
"build": "rollup -c",
"lernabuild": "rollup -c",
"test": "echo \"plugin-notches: No tests configured. Perhaps you'd like to do this?\" && exit 0",
"test": "BABEL_ENV=production ../../node_modules/.bin/_mocha tests/*.test.js --require @babel/register",
"pubtest": "npm publish --registry http://localhost:6662",
"pubforce": "npm publish",
"symlink": "mkdir -p ./node_modules/@freesewing && cd ./node_modules/@freesewing && ln -s -f ../../../* . && cd -",

View file

@ -30,7 +30,7 @@
"clean": "rimraf dist",
"build": "rollup -c",
"lernabuild": "rollup -c",
"test": "echo \"plugin-round: No tests configured. Perhaps you'd like to do this?\" && exit 0",
"test": "BABEL_ENV=production ../../node_modules/.bin/_mocha tests/*.test.js --require @babel/register",
"pubtest": "npm publish --registry http://localhost:6662",
"pubforce": "npm publish",
"symlink": "mkdir -p ./node_modules/@freesewing && cd ./node_modules/@freesewing && ln -s -f ../../../* . && cd -",

View file

@ -30,7 +30,7 @@
"clean": "rimraf dist",
"build": "rollup -c",
"lernabuild": "rollup -c",
"test": "echo \"plugin-scalebox: No tests configured. Perhaps you'd like to do this?\" && exit 0",
"test": "BABEL_ENV=production ../../node_modules/.bin/_mocha tests/*.test.js --require @babel/register",
"pubtest": "npm publish --registry http://localhost:6662",
"pubforce": "npm publish",
"symlink": "mkdir -p ./node_modules/@freesewing && cd ./node_modules/@freesewing && ln -s -f ../../../* . && cd -",

View file

@ -30,7 +30,7 @@
"clean": "rimraf dist",
"build": "rollup -c",
"lernabuild": "rollup -c",
"test": "echo \"plugin-sprinkle: No tests configured. Perhaps you'd like to do this?\" && exit 0",
"test": "BABEL_ENV=production ../../node_modules/.bin/_mocha tests/*.test.js --require @babel/register",
"pubtest": "npm publish --registry http://localhost:6662",
"pubforce": "npm publish",
"symlink": "mkdir -p ./node_modules/@freesewing && cd ./node_modules/@freesewing && ln -s -f ../../../* . && cd -",

View file

@ -30,7 +30,7 @@
"clean": "rimraf dist",
"build": "rollup -c",
"lernabuild": "rollup -c",
"test": "echo \"plugin-svgattr: No tests configured. Perhaps you'd like to do this?\" && exit 0",
"test": "BABEL_ENV=production ../../node_modules/.bin/_mocha tests/*.test.js --require @babel/register",
"pubtest": "npm publish --registry http://localhost:6662",
"pubforce": "npm publish",
"symlink": "mkdir -p ./node_modules/@freesewing && cd ./node_modules/@freesewing && ln -s -f ../../../* . && cd -",

View file

@ -30,7 +30,7 @@
"clean": "rimraf dist",
"build": "rollup -c",
"lernabuild": "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 && rollup -c",
"test": "echo \"plugin-theme: No tests configured. Perhaps you'd like to do this?\" && exit 0",
"test": "BABEL_ENV=production ../../node_modules/.bin/_mocha tests/*.test.js --require @babel/register",
"pubtest": "npm publish --registry http://localhost:6662",
"pubforce": "npm publish",
"symlink": "mkdir -p ./node_modules/@freesewing && cd ./node_modules/@freesewing && ln -s -f ../../../* . && cd -",

View file

@ -30,7 +30,7 @@
"clean": "rimraf dist",
"build": "rollup -c",
"lernabuild": "rollup -c",
"test": "BABEL_ENV=production ../../node_modules/.bin/mocha tests/*.test.js --require @babel/register",
"test": "BABEL_ENV=production ../../node_modules/.bin/_mocha tests/*.test.js --require @babel/register",
"pubtest": "npm publish --registry http://localhost:6662",
"pubforce": "npm publish",
"symlink": "mkdir -p ./node_modules/@freesewing && cd ./node_modules/@freesewing && ln -s -f ../../../* . && cd -",

View file

@ -30,7 +30,7 @@
"clean": "rimraf dist",
"build": "rollup -c",
"lernabuild": "rollup -c",
"test": "echo \"plugin-validate: No tests configured. Perhaps you'd like to do this?\" && exit 0",
"test": "BABEL_ENV=production ../../node_modules/.bin/_mocha tests/*.test.js --require @babel/register",
"pubtest": "npm publish --registry http://localhost:6662",
"pubforce": "npm publish",
"symlink": "mkdir -p ./node_modules/@freesewing && cd ./node_modules/@freesewing && ln -s -f ../../../* . && cd -",

View file

@ -30,7 +30,7 @@
"clean": "rimraf dist",
"build": "rollup -c",
"lernabuild": "rollup -c",
"test": "echo \"plugin-versionfree-svg: No tests configured. Perhaps you'd like to do this?\" && exit 0",
"test": "BABEL_ENV=production ../../node_modules/.bin/_mocha tests/*.test.js --require @babel/register",
"pubtest": "npm publish --registry http://localhost:6662",
"pubforce": "npm publish",
"symlink": "mkdir -p ./node_modules/@freesewing && cd ./node_modules/@freesewing && ln -s -f ../../../* . && cd -",