2.1.1 • Published 4 months ago

create-application-template v2.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

Dynamic JSON Badge Dynamic JSON Badge Static Badge

Create Application Template

This project aims to provide a configured application template for you to build upon.

All configuration is fully visable and under your control to augment as you see fit.

The template is a typescript enabled React application with a test suite and code linting.

See the template running live here.

installation

first install globally

npm install -g create-application-template

then create your project

npx create-application-template --name={my-project}

usage

webpack is used for code bundling and the development server

run development server and test suite (on http://localhost:3333 by default)

npm run dev

build static bundle

npm run build

tsconfig

focused on type checking; babel is used for transpiling

pre-commit

scripts in .husky/pre-commit are run on commits for quality control

add or remove scripts you'd like run before code is commited

test suite

to create a test follow this file naming format: *.{spec,test}.{ts,tsx}

run the test suite stand alone like so

npm run test

code linting

linting rules are in .eslintrc.js; install the ESLint pluggin if using vscode

npm run lint

css linting rules are in .stylelintrc.js; install the Stylelint pluggin if using vscode

npm run stylelint

styles

styling is done using the style-components module, but straight CSS is supported

after instillation it is recommended to proceed using styled-components or CSS, but not both

if you proceed with styled-components:

  • remove the single .css example in /src/styles/
  • that's it!

if you prefer CSS:

  • alter .stylintrc.js and .husky/pre-commit per the files' notes
  • remove .ts files from /src/styles/ or "recreate" them in .css

environmental settings

access environmental variables in code like so

console.log(process.env.PORT)

NODE_ENV settings

automatically set to production for build; develop for dev server

.env variables

add new or alter existing environmental variables via the .env file

the following variables exist in the default configuration and can be altered

develop (dev server)

# optional
PORT={port number}
INLINE_SIZE_LIMIT={default is 10000}

production (build)

# optional
INLINE_SIZE_LIMIT={default is 10000}
2.1.1

4 months ago

2.0.0

5 months ago

1.6.1

5 months ago

1.6.0

5 months ago

1.5.1

6 months ago

1.5.0

7 months ago

1.4.0

7 months ago

1.3.2

7 months ago

1.3.1

8 months ago

1.3.0

8 months ago

1.2.4

8 months ago

1.2.3

8 months ago

1.2.2

8 months ago

1.2.1

8 months ago

1.2.0

9 months ago

1.1.1

9 months ago

1.1.0

9 months ago

1.0.5

9 months ago

1.0.2

9 months ago

1.0.4

9 months ago

1.0.3

9 months ago

1.0.1

10 months ago

1.0.0

10 months ago

0.11.0

10 months ago

0.10.2

11 months ago

0.10.3

10 months ago

0.10.1

11 months ago

0.10.0

12 months ago

0.9.2

12 months ago

0.9.0

1 year ago

0.9.1

12 months ago

0.8.1

1 year ago

0.8.0

1 year ago

0.7.4

1 year ago

0.7.3

1 year ago

0.7.2

1 year ago

0.7.1

1 year ago

0.7.0

1 year ago

0.6.6

1 year ago

0.6.5

1 year ago

0.6.4

1 year ago

0.6.3

1 year ago

0.6.2

1 year ago

0.6.1

1 year ago

0.6.0

1 year ago

0.5.1

1 year ago

0.5.0

1 year ago

0.4.1

1 year ago

0.4.0

1 year ago

0.3.3

1 year ago

0.3.2

1 year ago

0.3.1

1 year ago

0.3.0

1 year ago