Skip to content
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

feat(console): Implements new Console engine #242

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
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
1 change: 0 additions & 1 deletion .npmrc

This file was deleted.

43 changes: 0 additions & 43 deletions .pnp.cjs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 0 additions & 5 deletions .prettierignore

This file was deleted.

7 changes: 0 additions & 7 deletions .prettierrc.yml

This file was deleted.

6 changes: 4 additions & 2 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
"visualstudioexptteam.vscodeintellicode",
"github.vscode-codeql",
"github.vscode-pull-request-github",
"donjayamanne.git-extension-pack"
"donjayamanne.git-extension-pack",
"arcanis.vscode-zipfs",
"esbenp.prettier-vscode"
]
}
}
4 changes: 3 additions & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@
"type": "node",
"request": "launch",
"args": [
"${relativeFile}"
//"${relativeFile}"
"packages/questionable-console/src/s.ts",
"init"
],
"runtimeArgs": [
"--nolazy",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
"ts-node": "^10.7.0"
},
"engines": {
"node": "14.x - 18.x"
"node": "14.x - 16.x"
},
"homepage": "https://usds.github.io/questionable",
"keywords": [
Expand Down
1 change: 0 additions & 1 deletion packages/questionable-build/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@
"eslint-plugin-yaml": "^0.5.0",
"prettier": "^2.6.2",
"prettier-plugin-organize-imports": "^2.3.4",
"pretty-quick": "^3.1.3",
"rimraf": "^3.0.2",
"rollup": "^2.70.2",
"rollup-plugin-copy": "^3.4.0",
Expand Down
61 changes: 61 additions & 0 deletions packages/questionable-build/packages_still_in_dist.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
"ts-json-schema-generator": "^1.0.0",
"semantic-ui-css": "^2.4.1",
"storybook-readme": "^5.0.9",
"react-docgen-typescript-loader": "^3.7.2",
"gh-pages": "^3.2.3",
"babel-loader": "^8.2.4",
"babel-preset-react-app": "^10.0.1",
"@types/react": "^17.0.43",
"@types/react-dom": "^17.0.14",
"@types/react-jsonschema-form": "^1.7.8",
"@types/file-saver": "^2.0.5",
"@types/gtag.js": "^0.0.10",
"@types/jest": "^27.4.1",
"@types/lodash": "^4.14.180",
"@types/luxon": "^2.3.1",
"@testing-library/jest-dom": "^5.16.3",
"@testing-library/react": "^12.1.4",
"@testing-library/user-event": "^13.5.0",
"@types/jest": "^27.4.1",
"@storybook/addon-actions": "^6.4.19",
"@storybook/addon-docs": "^6.4.19",
"@storybook/addon-essentials": "^6.4.19",
"@storybook/addon-knobs": "^6.4.0",
"@storybook/addon-links": "^6.4.19",
"@storybook/node-logger": "^6.4.19",
"@storybook/react": "^6.4.19",
"@storybook/storybook-deployer": "^2.8.11",
"@fortawesome/fontawesome-free": "^6.1.1",
"@mdx-js/react": "^2.1.0",
"@rjsf/semantic-ui": "^4.1.1",
"@rollup/plugin-commonjs": "^21.0.3",
"@rollup/plugin-node-resolve": "^13.1.3",
"@babel/core": "^7.17.8",
"@babel/plugin-transform-runtime": "^7.17.0",
"@babel/preset-env": "^7.16.11",
"jest": "^27.5.1",
"rollup": "^2.70.1",
"rollup-plugin-copy": "^3.4.0",
"rollup-plugin-dts": "^4.2.0",
"rollup-plugin-peer-deps-external": "^2.2.4",
"rollup-plugin-terser": "^7.0.2",
"rollup-plugin-ts": "^2.0.5",
"ts-jest": "^27.1.4",
"eslint-plugin-jest": "^26.1.3",
"eslint-plugin-jsx-a11y": "^6.5.1",
"eslint-plugin-react": "^7.29.4",
"eslint-plugin-react-hooks": "^4.3.0",
"eslint-plugin-testing-library": "^5.1.0",
"lodash": "^4.17.21",
"luxon": "^2.3.1",
"react": "^17.0.2",
"react-async": "^10.0.1",
"react-dom": "^17.0.2",
"react-scripts": "5.0.0",
"@trussworks/react-uswds": "^2.8.0",
"bluebird": "^3.7.2",
"cross-env": "7.0.3",

yarn add -D --cached @swc/core @swc/helpers @types/node @typescript-eslint/eslint-plugin @typescript-eslint/parser eslint eslint-config-airbnb-base eslint-config-prettier eslint-plugin-align-assignments eslint-plugin-align-import eslint-plugin-flowtype eslint-plugin-import eslint-plugin-json-files eslint-plugin-prettier eslint-plugin-sonarjs eslint-plugin-sort-keys-fix eslint-plugin-typescript-sort-keys eslint-plugin-yaml prettier prettier-plugin-organize-imports rimraf ts-node rollup rollup-plugin-copy rollup-plugin-dts rollup-plugin-peer-deps-external rollup-plugin-terser rollup-plugin-ts ts-json-schema-generator @babel/core @babel/plugin-transform-runtime @babel/preset-env @rollup/plugin-commonjs @rollup/plugin-node-resolve @swc/core @swc/helpers

@babel/core @babel/plugin-syntax-dynamic-import @babel/plugin-transform-runtime @babel/preset-env @babel/runtime
14 changes: 3 additions & 11 deletions packages/questionable-build/src/parseSchema.ts
Original file line number Diff line number Diff line change
@@ -1,19 +1,11 @@
import fs from 'fs';

const { log, error } = console;

export const parseSchema = (input = './dist/survey.json', output = './src/schema/survey.ts') => {
try {
log({ input, output });
const rawdata = fs.readFileSync(input, 'utf-8');
const rawdata = fs.readFileSync(input);

const schema = `// This files is code generated. Do not edit.
const schema = `// This files is code generated. Do not edit.
/* eslint-disable */
export const survey = ${rawdata};`;

fs.writeFileSync(output, schema);
} catch (e) {
error(e);
log('Failed to make survey');
}
fs.writeFileSync(output, schema);
};
Loading