diff --git a/.babelrc b/.babelrc new file mode 100644 index 0000000..eaf3238 --- /dev/null +++ b/.babelrc @@ -0,0 +1,3 @@ +{ + "presets": ["es2015", "stage-0"] +} diff --git a/package.json b/package.json new file mode 100644 index 0000000..a1366c3 --- /dev/null +++ b/package.json @@ -0,0 +1,32 @@ +{ + "name": "acf-code-editor", + "version": "1.0.0", + "description": "An ACF Field type plugin for a stricter wysiwyg field.", + "main": "index.js", + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1", + "build-js": "./node_modules/browserify/bin/cmd.js src/main.js -o js/custom-js.js -t [ babelify --presets [ es2015 stage-0 ] ]", + "watch-js": "./node_modules/watchify/bin/cmd.js src/main.js -o js/custom-js.js -t [ babelify --presets [ es2015 stage-0 ] ] -v" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/shortlist-digital/acf-code-editor.git" + }, + "author": "", + "license": "ISC", + "bugs": { + "url": "https://github.com/shortlist-digital/acf-code-editor/issues" + }, + "homepage": "https://github.com/shortlist-digital/acf-code-editor#readme", + "devDependencies": { + "babel-cli": "6.3.*", + "babel-preset-es2015": "^6.3.13", + "babel-preset-stage-0": "^6.3.13", + "babelify": "^7.2.0", + "browserify": "^13.0.0" + }, + "dependencies": { + "codemirror": "^5.15.2", + "watchify": "^3.7.0" + } +}