@standardnotes/markdown-basic 1.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,32 @@
1
+ /*
2
+ object-assign
3
+ (c) Sindre Sorhus
4
+ @license MIT
5
+ */
6
+
7
+ /** @license React v0.19.1
8
+ * scheduler.production.min.js
9
+ *
10
+ * Copyright (c) Facebook, Inc. and its affiliates.
11
+ *
12
+ * This source code is licensed under the MIT license found in the
13
+ * LICENSE file in the root directory of this source tree.
14
+ */
15
+
16
+ /** @license React v16.14.0
17
+ * react-dom.production.min.js
18
+ *
19
+ * Copyright (c) Facebook, Inc. and its affiliates.
20
+ *
21
+ * This source code is licensed under the MIT license found in the
22
+ * LICENSE file in the root directory of this source tree.
23
+ */
24
+
25
+ /** @license React v16.14.0
26
+ * react.production.min.js
27
+ *
28
+ * Copyright (c) Facebook, Inc. and its affiliates.
29
+ *
30
+ * This source code is licensed under the MIT license found in the
31
+ * LICENSE file in the root directory of this source tree.
32
+ */
@@ -0,0 +1,7 @@
1
+ <html>
2
+ <link rel="stylesheet" type="text/css" href="dist.css">
3
+ <title>Simple Markdown Editor</title>
4
+ <body>
5
+ <script type="text/javascript" src="dist.js"></script>
6
+ </body>
7
+ </html>
@@ -0,0 +1,10 @@
1
+ {
2
+ "identifier": "org.standardnotes.markdown-basic-local",
3
+ "name": "Markdown Basic - Local",
4
+ "content_type": "SN|Component",
5
+ "area": "editor-editor",
6
+ "version": "1.0.0",
7
+ "description": "Write Markdown in private",
8
+ "url": "http://localhost:8004/dist/index.html",
9
+ "thumbnail_url": "http://localhost:8004/dist/favicon.png"
10
+ }
package/favicon.ico ADDED
Binary file
package/package.json ADDED
@@ -0,0 +1,64 @@
1
+ {
2
+ "name": "@standardnotes/markdown-basic",
3
+ "publishConfig": {
4
+ "access": "public"
5
+ },
6
+ "version": "1.6.1",
7
+ "main": "dist/dist.js",
8
+ "author": "Standard Notes Retired",
9
+ "scripts": {
10
+ "lint": "eslint --cache --ext .jsx,.js --format=node_modules/eslint-formatter-pretty .",
11
+ "lint:fix": "eslint --cache --ext .jsx,.js --format=node_modules/eslint-formatter-pretty .",
12
+ "build": "webpack",
13
+ "start": "webpack-dev-server --devtool eval --progress --port 8001 --hot --content-base app",
14
+ "changelog": "conventional-changelog -p angular -i CHANGELOG.md -s -r 1",
15
+ "test": "echo \"Error: no test specified\" && exit 0"
16
+ },
17
+ "sn": {
18
+ "name": "Basic Markdown",
19
+ "content_type": "SN|Component",
20
+ "area": "editor-editor",
21
+ "spellcheckControl": true,
22
+ "note_type": "markdown",
23
+ "main": "dist/index.html",
24
+ "file_type": "txt"
25
+ },
26
+ "devDependencies": {
27
+ "@babel/cli": "^7.10.5",
28
+ "@babel/core": "^7.11.1",
29
+ "@babel/eslint-parser": "^7.13.4",
30
+ "@babel/plugin-proposal-class-properties": "^7.10.4",
31
+ "@babel/plugin-transform-runtime": "^7.11.0",
32
+ "@babel/preset-env": "^7.11.0",
33
+ "@babel/preset-react": "^7.10.4",
34
+ "@babel/preset-stage-0": "^7.8.3",
35
+ "@babel/register": "^7.10.5",
36
+ "@babel/runtime": "^7.11.2",
37
+ "@standardnotes/component-relay": "standardnotes/component-relay#839ff5db9bc92db9d42cad8d202ddc4df729597d",
38
+ "@standardnotes/eslint-config-extensions": "^1.0.0",
39
+ "babel-loader": "^8.1.0",
40
+ "copy-webpack-plugin": "*",
41
+ "css-loader": "~4.2.1",
42
+ "eslint": "*",
43
+ "eslint-formatter-pretty": "^4.0.0",
44
+ "eslint-plugin-compat": "^3.9.0",
45
+ "eslint-plugin-import": "^2.22.1",
46
+ "eslint-plugin-promise": "^4.3.1",
47
+ "eslint-plugin-react": "^7.22.0",
48
+ "highlight.js": "^10.1.2",
49
+ "markdown-it": "^11.0.0",
50
+ "markdown-it-footnote": "^3.0.2",
51
+ "markdown-it-highlightjs": "^3.2.0",
52
+ "markdown-it-task-lists": "^2.1.1",
53
+ "mini-css-extract-plugin": "^0.10.0",
54
+ "node-sass": "*",
55
+ "react": "16.x",
56
+ "react-dom": "16.x",
57
+ "sass-loader": "^13.1.0",
58
+ "sn-stylekit": "2.1.0",
59
+ "style-loader": "~1.2.1",
60
+ "webpack": "*",
61
+ "webpack-cli": "*",
62
+ "webpack-dev-server": "*"
63
+ }
64
+ }
@@ -0,0 +1,68 @@
1
+ const path = require('path')
2
+ const CopyWebpackPlugin = require('copy-webpack-plugin')
3
+ const MiniCssExtractPlugin = require('mini-css-extract-plugin')
4
+
5
+ module.exports = {
6
+ mode: 'production',
7
+ performance: {
8
+ hints: false,
9
+ },
10
+ devtool: 'cheap-source-map',
11
+ entry: [path.resolve(__dirname, 'app/main.js'), path.resolve(__dirname, 'app/stylesheets/main.scss')],
12
+ output: {
13
+ path: path.resolve(__dirname, 'dist'),
14
+ publicPath: '/',
15
+ filename: './dist.js',
16
+ },
17
+ module: {
18
+ rules: [
19
+ {
20
+ test: /\.css$/,
21
+ include: path.resolve(__dirname, 'app'),
22
+ use: ['style-loader', 'css-loader'],
23
+ },
24
+ {
25
+ test: /\.scss$/,
26
+ exclude: /node_modules/,
27
+ use: [
28
+ {
29
+ loader: MiniCssExtractPlugin.loader,
30
+ options: {
31
+ publicPath: '../',
32
+ },
33
+ },
34
+ 'css-loader',
35
+ {
36
+ loader: 'sass-loader',
37
+ },
38
+ ],
39
+ },
40
+ {
41
+ test: /\.js[x]?$/,
42
+ include: [path.resolve(__dirname, 'app'), require.resolve('@standardnotes/component-relay/dist/dist.js')],
43
+ exclude: /node_modules/,
44
+ loader: 'babel-loader',
45
+ },
46
+ ],
47
+ },
48
+ resolve: {
49
+ extensions: ['.js', '.jsx', '.css', '.scss'],
50
+ alias: {
51
+ highlightjs_css: require.resolve('highlight.js/styles/atom-one-light.css'),
52
+ stylekit: require.resolve('sn-stylekit/dist/stylekit.css'),
53
+ },
54
+ },
55
+ plugins: [
56
+ new MiniCssExtractPlugin({
57
+ filename: './dist.css',
58
+ }),
59
+ new CopyWebpackPlugin({
60
+ patterns: [
61
+ {
62
+ from: './app/index.html',
63
+ to: 'index.html',
64
+ },
65
+ ],
66
+ }),
67
+ ],
68
+ }