Skip to content

Commit 8a861bd

Browse files
committed
chore: move remaining browserified libraries to rollup
1 parent 0252f00 commit 8a861bd

File tree

6 files changed

+167
-3257
lines changed

6 files changed

+167
-3257
lines changed

.ncurc.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
reject:
22
# Now ESM with multiple exports, but we rely on the default export.
3+
# Also, delay@5 cannot be parsed by the esprima version used by requirejs
34
- delay
45
# Now ESM and depends on top-level await.
56
- tempfile

gruntfile.js

Lines changed: 0 additions & 73 deletions
Original file line numberDiff line numberDiff line change
@@ -105,78 +105,6 @@ module.exports = function (grunt) {
105105
// Project configuration.
106106
grunt.initConfig({
107107
pkg: grunt.file.readJSON('package.json'),
108-
browserify: {
109-
mimeTypes: {
110-
files: {
111-
'src/browserified/mime-types/index.js': [
112-
'./node_modules/mime-types/index.js',
113-
],
114-
},
115-
options: {
116-
browserifyOptions: {
117-
standalone: 'mimeTypes',
118-
},
119-
},
120-
},
121-
superagent: {
122-
files: {
123-
'src/browserified/superagent/index.js': [
124-
'./node_modules/superagent/lib/client.js',
125-
],
126-
},
127-
options: {
128-
browserifyOptions: {
129-
standalone: 'superagent',
130-
},
131-
},
132-
},
133-
twig: {
134-
files: {
135-
'src/browserified/twig/twig.js': ['./node_modules/twig/twig.min.js'],
136-
},
137-
options: {
138-
browserifyOptions: {
139-
standalone: 'Twig',
140-
},
141-
},
142-
},
143-
bioParsers: {
144-
files: {
145-
'src/browserified/bioParsers/index.js': [
146-
'./node_modules/bio-parsers/parsers/index.js',
147-
],
148-
},
149-
options: {
150-
browserifyOptions: {
151-
standalone: 'bioParsers',
152-
},
153-
},
154-
},
155-
RxnRenderer: {
156-
files: {
157-
'src/browserified/RxnRenderer/index.js': [
158-
'./node_modules/rxn-renderer/lib/index.js',
159-
],
160-
},
161-
options: {
162-
browserifyOptions: {
163-
standalone: 'RxnRenderer',
164-
},
165-
},
166-
},
167-
MFParser: {
168-
files: {
169-
'src/browserified/MFParser/index.js': [
170-
'./node_modules/mf-parser/src/index.js',
171-
],
172-
},
173-
options: {
174-
browserifyOptions: {
175-
standalone: 'MFParser',
176-
},
177-
},
178-
},
179-
},
180108
babel: {
181109
transpile: {
182110
options: {
@@ -538,7 +466,6 @@ module.exports = function (grunt) {
538466
grunt.loadNpmTasks('grunt-contrib-requirejs');
539467
grunt.loadNpmTasks('grunt-contrib-copy');
540468
grunt.loadNpmTasks('grunt-contrib-clean');
541-
grunt.loadNpmTasks('grunt-browserify');
542469

543470
grunt.registerTask('manifest:generate', function () {
544471
var files = recursivelyLookupDirectory('build', true);

0 commit comments

Comments
 (0)