diff --git a/.babelrc b/.babelrc new file mode 100644 index 00000000..bff4c9dd --- /dev/null +++ b/.babelrc @@ -0,0 +1,16 @@ +{ + "env": { + "test": { + "plugins": ["istanbul"] + } + }, + "plugins": ["transform-runtime"], + "presets": [ + ["env", { + "targets": { + "node": "current" + } + }] + ], + "sourceMaps": "inline" +} diff --git a/package.json b/package.json index 66b19375..6a820dd6 100755 --- a/package.json +++ b/package.json @@ -28,7 +28,20 @@ "type": "git", "url": "" }, + "scripts": { + "build": "./node_modules/.bin/webpack --bail", + "start": "./node_modules/.bin/webpack-dev-server --progress", + "eslint": "./node_modules/.bin/eslint ." + }, "devDependencies": { + "babel-core": "^6.18.2", + "babel-loader": "^6.2.8", + "babel-plugin-transform-runtime": "^6.15.0", + "babel-preset-env": "^0.0.9", + "babel-register": "^6.18.0", + "css-loader": "^0.26.0", + "extract-text-webpack-plugin": "2.0.0-beta.4", + "file-loader": "^0.9.0", "grunt": "~0.4.5", "grunt-chmod": "~1.1.1", "grunt-contrib-clean": "~1.0.0", @@ -42,6 +55,14 @@ "grunt-exec": "~0.4.6", "grunt-inline-alt": "~0.3.10", "grunt-jsdoc": "^1.1.0", - "ink-docstrap": "^1.1.4" + "html-webpack-plugin": "^2.24.1", + "ink-docstrap": "^1.1.4", + "style-loader": "^0.13.1", + "webpack": "2.1.0-beta.27", + "webpack-dev-server": "2.1.0-beta.12" + }, + "dependencies": { + "estraverse": "^4.2.0", + "json-loader": "^0.5.4" } } diff --git a/src/browser.js b/src/browser.js new file mode 100644 index 00000000..b63d8bf4 --- /dev/null +++ b/src/browser.js @@ -0,0 +1,2 @@ +import './css'; +import './js'; diff --git a/src/css/fonts/glyphicons-halflings-regular.eot b/src/css/fonts/glyphicons-halflings-regular.eot new file mode 100644 index 00000000..b93a4953 Binary files /dev/null and b/src/css/fonts/glyphicons-halflings-regular.eot differ diff --git a/src/css/fonts/glyphicons-halflings-regular.svg b/src/css/fonts/glyphicons-halflings-regular.svg new file mode 100644 index 00000000..94fb5490 --- /dev/null +++ b/src/css/fonts/glyphicons-halflings-regular.svg @@ -0,0 +1,288 @@ + + + \ No newline at end of file diff --git a/src/css/fonts/glyphicons-halflings-regular.ttf b/src/css/fonts/glyphicons-halflings-regular.ttf new file mode 100644 index 00000000..1413fc60 Binary files /dev/null and b/src/css/fonts/glyphicons-halflings-regular.ttf differ diff --git a/src/css/fonts/glyphicons-halflings-regular.woff b/src/css/fonts/glyphicons-halflings-regular.woff new file mode 100644 index 00000000..9e612858 Binary files /dev/null and b/src/css/fonts/glyphicons-halflings-regular.woff differ diff --git a/src/css/fonts/glyphicons-halflings-regular.woff2 b/src/css/fonts/glyphicons-halflings-regular.woff2 new file mode 100644 index 00000000..64539b54 Binary files /dev/null and b/src/css/fonts/glyphicons-halflings-regular.woff2 differ diff --git a/src/css/index.js b/src/css/index.js new file mode 100644 index 00000000..88f3f0d1 --- /dev/null +++ b/src/css/index.js @@ -0,0 +1,9 @@ +import './lib/bootstrap-colorpicker.css'; +import './lib/prettify.css'; +import './lib/bootstrap3.min.css'; +import './lib/bootstrap-switch.css'; +import './lib/jquery.splitter.css'; +import './structure/overrides.css'; +import './structure/layout.css'; +import './structure/utils.css'; +import './themes/classic.css'; diff --git a/src/html/index.html b/src/html/index.html index b6979c8c..2692dc44 100755 --- a/src/html/index.html +++ b/src/html/index.html @@ -273,7 +273,7 @@
Compile time: <%= grunt.template.today("dd/mm/yyyy HH:MM:ss") %> UTC
+Compile time: <%- htmlWebpackPlugin.options.compileTime %> UTC
© Crown Copyright 2016.
Licenced under the Apache Licence, Version 2.0.
Click here for an example.
If you're a nerd like me, you might find statistics really fun! Here's some about the CyberChef code base:
-<%= codebase_stats %>-
A simple, intuitive web app for analysing and decoding data without having to deal with complex tools or programming languages. CyberChef encourages both technical and non-technical people to explore data formats, encryption and compression.
@@ -388,7 +379,5 @@