Skip to content

Added integration tests for TypeScript, React, and Vuejs #7965

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
src/core/reference.js
node_modules/
test/integrations/**/node_modules/
dist/**
src/core/reference.js
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,7 @@ coverage/
lib/p5-test.js
release/
parameterData.json
yarn.lock
yarn.lock
test/integrations/typescript/node_modules/
test/integrations/react/node_modules/
test/integrations/vuejs/node_modules/
12 changes: 8 additions & 4 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ module.exports = grunt => {
// Configure style consistency checking for this file, the source, and the tests.
eslint: {
options: {
format: 'unix'
format: 'unix',
quiet: true
},
build: {
src: [
Expand All @@ -60,9 +61,12 @@ module.exports = grunt => {
fix: {
// src: is calculated below...
options: {
rules: {
'no-undef': 0,
'no-unused-vars': 0
overrideConfig: {
ignorePatterns: ['node_modules/**/*'],
rules: {
'no-undef': 0,
'no-unused-vars': 0
}
},
fix: true
}
Expand Down
20 changes: 20 additions & 0 deletions build/rollup.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import { nodeResolve } from '@rollup/plugin-node-resolve';
import commonjs from '@rollup/plugin-commonjs';
import babel from '@rollup/plugin-babel';

export default {
input: 'src/app.js', // or whatever path you found in Step 1
output: {
file: 'dist/app.js', // This is the generated ESM output
format: 'esm',
sourcemap: true
},
plugins: [
nodeResolve(),
commonjs(),
babel({
babelHelpers: 'bundled',
exclude: 'node_modules/**'
})
]
};
Loading