Skip to content

Commit

Permalink
feat: add support for developing on windows (#276)
Browse files Browse the repository at this point in the history
  • Loading branch information
aherschel authored and dpilch committed Dec 6, 2021
1 parent a5ff8bf commit 985f576
Show file tree
Hide file tree
Showing 10 changed files with 265 additions and 11 deletions.
221 changes: 221 additions & 0 deletions package-lock.json

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

13 changes: 10 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,16 @@
"lint": "eslint . --ext .js,.jsx,.ts,.tsx",
"lint:fix": "eslint . --ext .js,.jsx,.ts,.tsx --fix",
"integ": "npm run integ:setup && npm run integ:test",
"integ:setup": "./scripts/integ-setup.sh",
"integ:templates": "./scripts/integ-templates.sh",
"integ:setup": "run-script-os",
"integ:setup:default": "./scripts/integ-setup.sh",
"integ:setup:win32": "scripts\\integ-setup.bat",
"integ:templates": "run-script-os",
"integ:templates:default": "./scripts/integ-templates.sh",
"integ:templates:win32": "scripts\\integ-templates.bat",
"integ:templates:watch": "nodemon --watch packages/test-generator/integration-test-templates/ --watch packages/test-generator/lib -e tsx,ts,js,json --exec 'npm run integ:templates'",
"integ:test": "./scripts/integ-test.sh",
"integ:test": "run-script-os",
"integ:test:default": "./scripts/integ-test.sh",
"integ:test:win32": "scripts\\integ-test.bat",
"integ:clean": "npx rimraf packages/integration-test",
"iconset": "lerna run iconset"
},
Expand All @@ -49,6 +55,7 @@
"nodemon": "^2.0.14",
"prettier": "2.3.2",
"rimraf": "^3.0.2",
"run-script-os": "^1.1.6",
"ts-jest": "^27.0.3",
"ts-node": "^8.10.1",
"typescript": "^4.3.5"
Expand Down
2 changes: 0 additions & 2 deletions packages/codegen-ui-react/package-lock.json

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

Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
See the License for the specific language governing permissions and
limitations under the License.
*/
import path from 'path';
import { MockOutputManager, MockTemplateRenderer } from './__utils__/mock-classes';

describe('StudioTemplateRenderer', () => {
Expand All @@ -31,6 +32,6 @@ describe('StudioTemplateRenderer', () => {
new MockTemplateRenderer(component, outputManager, {}).renderComponentToFilesystem(componentText)(fileName)(
outputPath,
);
expect(outputManager.writeComponent).toHaveBeenCalledWith(componentText, `${outputPath}/${fileName}`);
expect(outputManager.writeComponent).toHaveBeenCalledWith(componentText, path.join(outputPath, fileName));
});
});
2 changes: 0 additions & 2 deletions packages/codegen-ui/package-lock.json

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

2 changes: 0 additions & 2 deletions packages/test-generator/package-lock.json

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

Loading

0 comments on commit 985f576

Please sign in to comment.