Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,20 @@ module.exports = function( grunt ) {
baseDir: "./docs"
}
}
},
browserify: {
options: {
browserifyOptions: { debug: false },
transform: [
[ 'babelify', { "presets": [ '@babel/preset-env', '@babel/preset-react' ] } ],
[ 'sassify' ]
],
},
dist: {
files: {
'dist/components/background.js': 'src/components/background/index.js'
}
}
}
} );

Expand All @@ -154,6 +168,7 @@ module.exports = function( grunt ) {
grunt.loadNpmTasks( 'grunt-browser-sync' );
grunt.loadNpmTasks( 'grunt-wp-i18n' );
grunt.loadNpmTasks( 'grunt-wp-readme-to-markdown' );
grunt.loadNpmTasks( 'grunt-browserify' );

// 4. Where we tell Grunt what to do when we type "grunt" into the terminal.
grunt.registerTask( 'i18n', [ 'addtextdomain', 'makepot' ] );
Expand Down
802 changes: 801 additions & 1 deletion dist/blocks.build.js

Large diffs are not rendered by default.

35,632 changes: 35,614 additions & 18 deletions dist/blocks.editor.build.css

Large diffs are not rendered by default.

36,795 changes: 36,778 additions & 17 deletions dist/blocks.style.build.css

Large diffs are not rendered by default.

Loading