Skip to content

Commit

Permalink
move bindings_generator/ to tool/generator/ (#138)
Browse files Browse the repository at this point in the history
  • Loading branch information
devoncarew authored Jan 11, 2024
1 parent bd89f7c commit dd4bb85
Show file tree
Hide file tree
Showing 22 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ jobs:
run: dart pub get
- name: Install Node dependencies
run: npm install
working-directory: bindings_generator
working-directory: tool/generator
- name: Run the generator
run: dart tool/update_bindings.dart
- name: Analyze code
Expand Down
6 changes: 3 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
doc/api/
pubspec.lock

bindings_generator/*.js
bindings_generator/*.js.*
bindings_generator/node_modules/
tool/generator/*.js
tool/generator/*.js.*
tool/generator/node_modules/
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,5 @@ Based on:
- @webref/css [6.10.0](https://www.npmjs.com/package/@webref/css/v/6.10.0)
<!-- END updated by tool/update_bindings.dart. Do not modify by hand -->

For instructions on re-generating the DOM bindings, see
[bindings_generator/README.md](bindings_generator/README.md).
For instructions on re-generating the DOM bindings, see the
[generator docs](tool/generator/README.md).
2 changes: 1 addition & 1 deletion test/type_union_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

import 'package:test/test.dart';

import '../bindings_generator/type_union.dart';
import '../tool/generator/type_union.dart';

void main() {
test('Non-JS types', () {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions tool/update_bindings.dart
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ $_usage''');
// Run app with `node`.
await _runProc(
'node',
['main.mjs', '../lib/src'],
['main.mjs', '../../lib/src'],
workingDirectory: _bindingsGeneratorPath,
);

Expand All @@ -93,7 +93,7 @@ $_usage''');

// Update readme.
final readmeFile = File(
p.normalize(p.join(_bindingsGeneratorPath, '..', 'README.md')),
p.normalize(p.join(_bindingsGeneratorPath, '..', '..', 'README.md')),
);

final sourceContent = readmeFile.readAsStringSync();
Expand Down Expand Up @@ -129,7 +129,7 @@ String _packageLockVersion(String package) {
return webRefIdl['version'] as String;
}

const _bindingsGeneratorPath = 'bindings_generator';
final _bindingsGeneratorPath = p.join('tool', 'generator');

const _webRefIdl = '@webref/idl';
const _webRefCss = '@webref/css';
Expand Down

0 comments on commit dd4bb85

Please sign in to comment.