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

Add client side scripting support #6

Open
iisisrael opened this issue May 18, 2020 · 0 comments
Open

Add client side scripting support #6

iisisrael opened this issue May 18, 2020 · 0 comments

Comments

@iisisrael
Copy link
Contributor

  • Add TypeScript configuration to webpack.config.js
    • Not sure how this should be implemented using Encore, but a standard webpack config might look something like:
module.exports = {
    module: {
        rules: [
            {
                test: /\.ts$/,
                loader: 'ts-loader'
            }
        ]
    }
}
  • Add Mocha test suite
    • Add jsdom, jsdom-global, mocha, and sinon as dev dependencies in package.json
    • Add test build and run scripts in package.json - again, not sure how this should work with Encore, but with a standard webpack implementation this might look something like:
"scripts": {
    "buildtest": "./node_modules/webpack/bin/webpack.js --progress --config webpack.test.config.js",
    "test": "npm run buildtest && mocha ./testjs/tests"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant