Git Product home page Git Product logo

tictactoe's Introduction

# Nano React App Default Javascript Template The default template project for [nano-react-app](https://github.com/adrianmcli/nano-react-app). - `npm start` โ€” This will spawn a development server with a default port of `1234`. - `npm run build` โ€” This will output a production build in the `dist` directory. ## Custom port You can use the `-p` flag to specify a port for development. To do this, you can either run `npm start` with an additional flag: ``` npm start -- -p 3000 ``` Or edit the `start` script directly: ``` parcel index.html -p 3000 ``` ## Adding styles You can use CSS files with simple ES2015 `import` statements anywhere in your Javascript: ```js import "./index.css"; ``` ## Babel transforms The Babel preset [babel-preset-nano-react-app](https://github.com/nano-react-app/babel-preset-nano-react-app) is used to support the same transforms that Create React App supports. The Babel configuration lives inside `package.json` and will override an external `.babelrc` file, so if you want to use `.babelrc` remember to delete the `babel` property inside `package.json`. ## Deploy to GitHub Pages You can also deploy your project using GitHub pages. First install the `gh-pages` [package](https://github.com/tschaub/gh-pages): `npm i -D gh-pages` With Parcel's `--public-url` flag, use the following scripts for deployment: ``` "scripts": { "start": "parcel index.html", "build": "parcel build index.html --public-url '.'", "predeploy": "rm -rf dist && parcel build index.html --public-url '.'", "deploy": "gh-pages -d dist" }, ``` Then follow the normal procedure in GitHub Pages and select the `gh-pages` branch. # TicTacToe

tictactoe's People

Contributors

kjcarter-design avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.