
Security News
TypeScript is Porting Its Compiler to Go for 10x Faster Builds
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
edge-boilerplate
Advanced tools
Edge Boilerplate is a template for modern web applications. Part of the Edge Platform.
Edge Boilerplate is a template for modern web applications. Part of the Edge Platform.
npm install
or yarn install
Copy the file .env-dev
to .env
before running any npm
scripts.
Execute: npm run dev
To exit the development server press Ctrl+C
.
This is the ideal for fast-paced development cycles as everything is rebuild as needed and in most cases hot-injected into the running application.
The UI components can be viewed with the included Storybook: Run npm run storybook
and visit http://localhost:1449
.
The UI components can be viewed with the included Styleguidist: Run npm run styleguide
and visit http://localhost:1559
.
In any phase of your development you can bundle the files for a deployment to production. This essentially contains these steps:
TODO
hooks/
: Extensions for some more internal features like the Webpack-based build system.src/
: This holds all application code.bin/
: Contains the binary web serverbuild/
: Generated during development and production build. Contains the bundled application files for both, server and client.docs/
: Generated documentation e.g. Storybook production build for deployment to e.g. Github Pages.node_modules/
: Contains all local NPM package dependencies..cache/
: Contains the entries of the Webpack loader cache to improve rebuild times.The project folder contains the file postcss.config.js
. This includes only edge-postcss
in the as-delivered state. Any extensions are possible. Of course, the standard set of edge-postcss
can also be completely replaced here, for example with postcss-next
.
The . babelrc
file to be found in the project folder is a normally customizable Babel configuration. The pre-configured Babel environments starting with edge-
are relevant for the build processes through Edge. On delivery state, the preset package babel-preset-edge
is configured in different ways. All entries can be changed and extended at will. Of course, one should be careful here, because the current Webpack-based build process expects some special features, such as support for dynamic imports. As a rule, however, extensions should not be a problem, e.g. to add functionalities such as decorators.
The Edge Platform uses Browserslist to optimize builds for the configured set of browsers. The default configuration differs between development
and production
. This is mainly done to optimize build times during development and thus allow faster development cycles.
More modern browsers usually offer better support for the latest standards. Edge uses this to send these browsers less sophisticated rewritten code. As a positive side-effect, this also leads to better error messages during development, because the code the browser sees is closer to the code originally developed.
The configuration affects both, the Babel transpiler and the PostCSS
prefixing.
Edge provides some sensible defaults here. It is of course possible to customize the file browserslist
however you like. It should not really have any effect on the core functionalities of the Edge platform.
To configure the Jest test runner use the jest.config.js
, which is located in the main directory like the other config files. In the state of delivery edge-jest
will be imported and directly exported without any changes. Here it is possible to make adjustments in the form of overrides and additions to the imported config.
The standard configuration includes the following core features:
fetch()
requests being made in tests.TODO
TODO
Apache License Version 2.0, January 2004
Copyright 2017-2018
Sebastian Software GmbH
FAQs
Edge Boilerplate is a template for modern web applications. Part of the Edge Platform.
The npm package edge-boilerplate receives a total of 1 weekly downloads. As such, edge-boilerplate popularity was classified as not popular.
We found that edge-boilerplate demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
Research
Security News
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.