Skip to content

Commit

Permalink
initial version
Browse files Browse the repository at this point in the history
  • Loading branch information
alastaircoote committed Oct 21, 2015
0 parents commit 313e982
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
@@ -0,0 +1 @@
node_modules/*
3 changes: 3 additions & 0 deletions README.md
@@ -0,0 +1,3 @@
archieml-loader
===
A very quick and simple Webpack loader for ArchieML files.
8 changes: 8 additions & 0 deletions index.js
@@ -0,0 +1,8 @@
var archieml = require('archieml')

module.exports = function(content) {
this.cacheable && this.cacheable();
var aml = archieml.load(content);
this.value = [aml]
return "module.exports = " + JSON.stringify(aml, undefined, "\t") + ";";
};
14 changes: 14 additions & 0 deletions package.json
@@ -0,0 +1,14 @@
{
"name": "archieml-loader",
"version": "0.0.1",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "ISC",
"dependencies": {
"archieml": "^0.3.1"
}
}

0 comments on commit 313e982

Please sign in to comment.