build_timestamp

Creator: coderz1093

Last updated:

0 purchases

build_timestamp Image
build_timestamp Images

Languages

Categories

Add to Cart

Description:

build timestamp

Include the build_runner's timestamp in our source code.


Add build_timestasmp to pubspec.yaml.
name: my_pkg
version: 1.2.3
dev_dependencies:
build_runner: ^1.0.0
build_timestamp: ^0.1.0
copied to clipboard


Run a build.
> dart pub run build_runner build
copied to clipboard
lib/src/timestamp.dart will be generated with content:
// Generated code. Do not modify.
const packageMillisecondsSinceEpoch = <MILLISECONDS_SINCE_EPOCH>;
copied to clipboard


To change the path of the generated file, create a
build.yaml in the root of your
package. By changing the output option of this builder, the path can be
customized:
targets:
$default:
builders:
build_timestamp:
options:
output: lib/src/custom/path/to/timestamp.dart
copied to clipboard

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.