K.J. Valencik
378dcc8e8a
chore(cli): Suggest using create-neon instead
...
Resolves https://github.com/neon-bindings/neon/issues/696
2021-05-05 10:42:53 -04:00
K.J. Valencik
c1eaaf0d77
feat: Allow additional arguments to be passed to cargo build
...
`neon build -- --features my-feature` will pass everything after `--` to cargo
2020-11-12 12:47:00 -05:00
Andre Staltz
c0b2a85334
support nodejs-mobile on Android
2020-10-15 13:38:07 +03:00
Amila Welihinda
cb826b7cb6
fix: drop ts-dict, remove any types, bump deps
2020-08-02 15:52:26 -07:00
Amila Welihinda
df1a598299
migrate to esmodule interop
2020-08-02 15:52:26 -07:00
Amila Welihinda
8b0bf9ce30
drop unused deps
2020-08-02 15:52:26 -07:00
Amila Welihinda
3c1de72890
bump all deps
2020-08-02 15:52:26 -07:00
Amila Welihinda
69c75cecf3
drop ts-dict for Record
2020-08-02 15:52:26 -07:00
Amila Welihinda
c9158d70d8
fix(cli): use rimraf prevent TOUTOC
2020-07-17 11:48:35 -07:00
Amila Welihinda
63c059f53a
fix: use rimraf for removing dir
2020-07-11 08:45:41 -07:00
Amila Welihinda
ad8f98b5a8
fix: change methods to sync
2020-07-03 17:56:19 -07:00
Amila Welihinda
f3294d1b2e
fix: do not unlink if file does not exist
2020-07-03 13:04:24 -07:00
Amila Welihinda
463e0d8dc2
fix: upgrade to typescript@3.9.6
2020-07-03 11:38:58 -07:00
Usagi Ito
17b905b5f6
Fix #406
...
- Fix `neon new` could not be comple in Windows
- Update packages
2020-06-28 11:33:48 -07:00
Amila Welihinda
41de779db5
fix get node version edge case
2020-03-13 10:13:13 -07:00
Amila Welihinda
d5591b6fb9
fix code style issues
2020-02-28 10:54:43 -08:00
Amila Welihinda
a6652342e0
Merge branch 'master' into node-version-cli-cache-bust-fix
2020-02-21 16:04:49 -08:00
Igor Artamonov
8946d3e23b
Fix ERR_CHILD_PROCESS_STDIO_MAXBUFFER error
2019-10-21 15:07:03 -04:00
Igor Artamonov
be22d9fb38
Fix ERR_CHILD_PROCESS_STDIO_MAXBUFFER error
2019-10-19 21:22:49 -04:00
David Herman
b79dac33fe
Correct the relative path logic for neon new --neon=path/to/neon
2019-09-27 10:40:13 -07:00
David Herman
6f4bbcc072
Add --no-default-features flag to neon new.
2019-09-27 10:40:13 -07:00
David Herman
0b193e8de1
Fix build errors:
...
- Move `extern "C"` definitions into neon-sys
- Enable dynamic symbol loading in macOS via neon-build so it happens even for `cargo build` in test/dynamic crate
- Remove dynamic symbol loading flag from `neon build` command since it's now in neon-build
- Use trybuild instead of compiletest for static tests to avoid stability issues
- No longer require Rust nightly since trybuild works for Rust stable
- Temporarily disable the package test until we publish a new version of neon-sys
2019-09-27 10:40:13 -07:00
Dave Herman
4628576fce
Merge pull request #439 from neon-bindings/cli-dev-flags
...
CLI dev flags
2019-09-15 07:10:29 -07:00
K.J. Valencik
0afea95ca4
Support workspaces.
...
Implements https://github.com/neon-bindings/neon/issues/297
2019-09-14 13:58:59 -04:00
David Herman
b52ef9b064
Use JSON.stringify to escape strings for use in the handlebars templates.
2019-09-13 15:50:23 -07:00
David Herman
fd6dfe33eb
Based on suggestions from @kjv's review:
...
- `--neon` generates absolute paths if and only if the argument is absolute
- For local paths, prefixes the `neon-cli` dependency with `"file:"`
2019-09-13 13:26:35 -07:00
David Herman
655ceceeda
Bugfix: two separate paths in the context data shared with the handlebars template (one for each Neon library in the generated Cargo.toml).
2019-09-12 15:55:52 -07:00
David Herman
7b22ef500f
Add support for neon new --features=n-api to allow enabling experimental Neon feature flags.
2019-09-12 15:39:33 -07:00
David Herman
71aab9b23f
Add support for neon new --neon=<path/to/neon> and neon new --neon=<semver>.
2019-09-12 14:53:56 -07:00
stoically
5cdf1450d7
Support CARGO_BUILD_TARGET env
2019-05-15 16:08:14 +02:00
Amila Welihinda
db0a79dd49
write null to build settings if no build settings exist
2019-01-18 14:02:37 -08:00
Amila Welihinda
c9f7054c2d
cache bust neon build if node version changes
2019-01-17 16:25:08 -08:00
David Herman
81101f326a
Make the CLI actually recognized -r and --release instead of -d and --debug.
2018-07-10 19:42:33 -07:00
David Herman
c613b379ba
Default to release builds; take Rust toolchain in the Cargo syntax (e.g., neon +nightly build).
2018-07-10 16:48:32 -07:00
David Herman
f4aa053b75
Eliminate NEON_NODE_ABI environment variable and neon build --node_module_version command-line parameter.
2018-07-10 16:09:52 -07:00
Dave Herman
62a6ad0ed2
don't delete the current build settings in the artifacts cache just because of a build failure! fixes #242
2017-11-12 09:47:19 -08:00
Ingvar Stepanyan
b5536db62c
Fix "not all code paths return a value" in cli.ts
...
Fixes #272
2017-11-12 06:32:09 -08:00
Florian Keller
b5c8ab96a3
Better error identification
2017-10-22 09:29:51 -07:00
Florian Keller
b1c390b20c
Add error message for missing Rust
2017-10-22 09:29:51 -07:00
Robbie Pitts
8da36eaa06
Escape quotes in certain neon new input values
2017-09-26 11:59:40 -07:00
Dave Herman
093683f6d2
Consolidate all tests under a single top-level test directory.
2017-09-20 23:48:03 -07:00