Skip to content

Titles with ' generates roc.config with syntax error #187

Description

@tjamet

To reproduce this issue, run, with roc@next:

$> roc new my-test
? Select a template rocjs/roc-template-web-app-react
ℹ Will use next as default version
✔ Downloading template
? Project name my-test
? Project description A Roc project
? Author Me
? license MIT
? Port 3000
? <title> me's project
✔ Project created

  To get started:

    cd my-test
    npm install
    npm run dev

    It will open your default browser when ready.
    You can change this by setting 'dev.browsersync.options.open' to 'false' in roc.config.js

Then you will have:

$> cat my-test/roc.config.js
module.exports = {
  settings: {
    runtime: {
      applicationName: 'me's project',
      port: 3000,
      serve: ['public', 'build/client'],
      favicon: 'favicon.png',
    },
    build: {
      reducers: 'src/redux/reducers.js',
      routes: 'src/routes/index.js',
    },
    dev: {
      browsersync: {
        options: {
          open: true,
        },
      },
    },
  },
};

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions